@voxel51/voodo 0.2.0 → 1.1.0-popover.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 +77 -5
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +10 -4
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts +102 -0
- package/dist/components/Combobox/Combobox.d.ts.map +1 -0
- package/dist/components/Combobox/index.d.ts +2 -0
- package/dist/components/Combobox/index.d.ts.map +1 -0
- package/dist/components/Datepicker/DatepickerIconButton.d.ts +8 -3
- package/dist/components/Datepicker/DatepickerIconButton.d.ts.map +1 -1
- package/dist/components/Divider/Divider.d.ts +8 -3
- package/dist/components/Divider/Divider.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +1 -1
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +16 -7
- package/dist/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/Icons/Icon.d.ts +14 -5
- package/dist/components/Icons/Icon.d.ts.map +1 -1
- package/dist/components/Icons/IconBase.d.ts +15 -5
- package/dist/components/Icons/IconBase.d.ts.map +1 -1
- package/dist/components/Icons/icons.d.ts +4 -0
- package/dist/components/Icons/icons.d.ts.map +1 -1
- package/dist/components/Input/Input.d.ts +18 -8
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/LoadingDots/LoadingDots.d.ts +24 -0
- package/dist/components/LoadingDots/LoadingDots.d.ts.map +1 -0
- package/dist/components/LoadingDots/index.d.ts +2 -0
- package/dist/components/LoadingDots/index.d.ts.map +1 -0
- package/dist/components/Modal/Modal.d.ts +87 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Pill/Pill.d.ts +2 -2
- package/dist/components/Pill/Pill.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts +103 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.d.ts.map +1 -0
- package/dist/components/Radio/RadioGroup.d.ts +1 -1
- package/dist/components/Radio/RadioGroup.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +16 -7
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Sheet/Sheet.d.ts +62 -0
- package/dist/components/Sheet/Sheet.d.ts.map +1 -0
- package/dist/components/Sheet/index.d.ts +2 -0
- package/dist/components/Sheet/index.d.ts.map +1 -0
- package/dist/components/Slider/Slider.d.ts +3 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Slider/SliderBar.d.ts +1 -0
- package/dist/components/Slider/SliderBar.d.ts.map +1 -1
- package/dist/components/Slider/SliderKnob.d.ts +8 -2
- package/dist/components/Slider/SliderKnob.d.ts.map +1 -1
- package/dist/components/Table/Table.d.ts +3 -3
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Text/Text.d.ts +10 -4
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.d.ts +12 -5
- package/dist/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toggle/Toggle.d.ts +1 -1
- package/dist/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +13 -6
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/dist/components/Toolbar/context.d.ts +1 -1
- package/dist/components/Toolbar/context.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4441 -3643
- package/dist/index.js.map +1 -1
- package/dist/palette-B91vdbSd.js +479 -0
- package/dist/palette-B91vdbSd.js.map +1 -0
- package/dist/palette-dgN5vIc-.cjs +2 -0
- package/dist/palette-dgN5vIc-.cjs.map +1 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/tokens/index.d.ts +2 -1
- package/dist/theme/tokens/index.d.ts.map +1 -1
- package/dist/theme/tokens/palette.d.ts +9 -0
- package/dist/theme/tokens/palette.d.ts.map +1 -0
- package/dist/theme/useColorPalette.d.ts +51 -0
- package/dist/theme/useColorPalette.d.ts.map +1 -0
- package/dist/tokens.cjs +2 -0
- package/dist/tokens.cjs.map +1 -0
- package/dist/tokens.d.ts +6 -0
- package/dist/tokens.js +43 -0
- package/dist/tokens.js.map +1 -0
- package/dist/types/align.d.ts +12 -5
- package/dist/types/align.d.ts.map +1 -1
- package/dist/types/anchor.d.ts +20 -9
- package/dist/types/anchor.d.ts.map +1 -1
- package/dist/types/color.d.ts +334 -149
- package/dist/types/color.d.ts.map +1 -1
- package/dist/types/element.d.ts +24 -11
- package/dist/types/element.d.ts.map +1 -1
- package/dist/types/heading.d.ts +12 -5
- package/dist/types/heading.d.ts.map +1 -1
- package/dist/types/icons.d.ts +212 -105
- package/dist/types/icons.d.ts.map +1 -1
- package/dist/types/justify.d.ts +16 -7
- package/dist/types/justify.d.ts.map +1 -1
- package/dist/types/orientation.d.ts +8 -3
- package/dist/types/orientation.d.ts.map +1 -1
- package/dist/types/radius.d.ts +18 -8
- package/dist/types/radius.d.ts.map +1 -1
- package/dist/types/shadow.d.ts +16 -7
- package/dist/types/shadow.d.ts.map +1 -1
- package/dist/types/size.d.ts +14 -6
- package/dist/types/size.d.ts.map +1 -1
- package/dist/types/spacing.d.ts +16 -7
- package/dist/types/spacing.d.ts.map +1 -1
- package/dist/types/text.d.ts +22 -10
- package/dist/types/text.d.ts.map +1 -1
- package/dist/types/transition.d.ts +52 -23
- package/dist/types/transition.d.ts.map +1 -1
- package/dist/types/variant.d.ts +16 -7
- package/dist/types/variant.d.ts.map +1 -1
- package/dist/types/zIndex.d.ts +14 -6
- package/dist/types/zIndex.d.ts.map +1 -1
- package/dist/voodo.css +1 -1
- package/package.json +9 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,EAAE,EAEP,mBAAmB,EAIpB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAY,KAAK,SAAS,EAAc,MAAM,oBAAoB,CAAC;AAE1E,OAAO,EAML,MAAM,EACN,IAAI,EAIL,MAAM,SAAS,CAAC;AAMjB,KAAK,kBAAkB,GAAG,IAAI,CAC5B,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,WAAW,CACrB,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,EAAE,EAEP,mBAAmB,EAIpB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAY,KAAK,SAAS,EAAc,MAAM,oBAAoB,CAAC;AAE1E,OAAO,EAML,MAAM,EACN,IAAI,EAIL,MAAM,SAAS,CAAC;AAMjB,KAAK,kBAAkB,GAAG,IAAI,CAC5B,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,WAAW,CACrB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;CAQZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,EAAE,CAAC;AAExE,yBAAiB,SAAS,CAAC;IACzB,KAAY,IAAI,GAAG,OAAO,SAAS,CAAC,IAAI,CAAC;IACzC,KAAY,KAAK,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;IAC3C,KAAY,QAAQ,GAAG,OAAO,SAAS,CAAC,QAAQ,CAAC;IACjD,KAAY,MAAM,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;IAC7C,KAAY,GAAG,GAAG,OAAO,SAAS,CAAC,GAAG,CAAC;IACvC,KAAY,GAAG,GAAG,OAAO,SAAS,CAAC,GAAG,CAAC;IACvC,KAAY,MAAM,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;CAC9C;AAED;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;AAEvD,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IACpD,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAeD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,GAAI,2DAOxB;IACD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,KAAG,MA8BD,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAkIhC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface LoadingDotsProps extends HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
/** Optional label the dots trail, e.g. the query being resolved. */
|
|
4
|
+
text?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* An inline loading indicator: an optional label followed by an animated
|
|
8
|
+
* ellipsis. Where {@link Spinner} marks a region as busy, this marks a piece
|
|
9
|
+
* of text as still resolving — "Searching cats…" — and sizes and colors
|
|
10
|
+
* itself from the surrounding text.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Text color={TextColor.Tertiary}>
|
|
15
|
+
* <LoadingDots text={query} />
|
|
16
|
+
* </Text>
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @param text Label the dots follow.
|
|
20
|
+
* @param className `class` overrides to apply to the component.
|
|
21
|
+
* @param props Additional HTML properties to apply to the component.
|
|
22
|
+
*/
|
|
23
|
+
export declare const LoadingDots: FC<LoadingDotsProps>;
|
|
24
|
+
//# sourceMappingURL=LoadingDots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingDots.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingDots/LoadingDots.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAM3D,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,eAAe,CAAC;IACvE,oEAAoE;IACpE,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAa5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingDots/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Width of the modal panel. The panel is always full-width up to this cap so
|
|
4
|
+
* it degrades to the viewport on small screens.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ModalSize {
|
|
7
|
+
/** 400px — confirmations and single-field forms. */
|
|
8
|
+
Sm = "sm",
|
|
9
|
+
/** 600px — the default; forms and short reference content. */
|
|
10
|
+
Md = "md",
|
|
11
|
+
/** 800px — tables, side-by-side content. */
|
|
12
|
+
Lg = "lg",
|
|
13
|
+
/** 1000px — full editors. */
|
|
14
|
+
Xl = "xl"
|
|
15
|
+
}
|
|
16
|
+
export interface ModalProps {
|
|
17
|
+
/** Whether the modal is rendered. Modals are always controlled. */
|
|
18
|
+
open: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Invoked when the user dismisses the modal — the close button, the
|
|
21
|
+
* backdrop, or Escape. Pass a no-op to require an explicit action.
|
|
22
|
+
*/
|
|
23
|
+
onClose: () => void;
|
|
24
|
+
/** Heading rendered in the modal's title bar. */
|
|
25
|
+
title?: ReactNode;
|
|
26
|
+
/** Panel width. See {@link ModalSize}. Defaults to {@link ModalSize.Md}. */
|
|
27
|
+
size?: ModalSize;
|
|
28
|
+
/**
|
|
29
|
+
* Whether to render the title bar's close button. Defaults to `true` when
|
|
30
|
+
* a `title` is given. A modal with no title bar has no close button; give
|
|
31
|
+
* it a dismiss control of its own.
|
|
32
|
+
*/
|
|
33
|
+
showCloseButton?: boolean;
|
|
34
|
+
/** Pinned below the scrollable body — typically the action buttons. */
|
|
35
|
+
footer?: ReactNode;
|
|
36
|
+
/** `class` overrides for the panel. */
|
|
37
|
+
className?: string;
|
|
38
|
+
/** `class` overrides for the scrollable body. */
|
|
39
|
+
contentClassName?: string;
|
|
40
|
+
/** Accessible name when there is no visible `title`. */
|
|
41
|
+
"aria-label"?: string;
|
|
42
|
+
/** Modal content. */
|
|
43
|
+
children?: ReactNode;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A centered, focus-trapping overlay for content that interrupts the page.
|
|
47
|
+
*
|
|
48
|
+
* Built on HeadlessUI's `Dialog`, so focus is trapped while open, the page
|
|
49
|
+
* behind is inert, and Escape and backdrop clicks both route to `onClose`.
|
|
50
|
+
* Reach for {@link Drawer} instead when the content should sit alongside the
|
|
51
|
+
* page rather than over it.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```tsx
|
|
55
|
+
* const { open, setOpen } = useDisclosure({ defaultOpen: false });
|
|
56
|
+
*
|
|
57
|
+
* <Modal open={open} onClose={() => setOpen(false)} title="Rename dataset">
|
|
58
|
+
* <Input value={name} onChange={onChange} />
|
|
59
|
+
* </Modal>
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```tsx
|
|
64
|
+
* // Actions pinned below a long, scrolling body.
|
|
65
|
+
* <Modal
|
|
66
|
+
* open={open}
|
|
67
|
+
* onClose={close}
|
|
68
|
+
* title="Keyboard reference"
|
|
69
|
+
* size={ModalSize.Lg}
|
|
70
|
+
* footer={<Button onClick={close}>Done</Button>}
|
|
71
|
+
* >
|
|
72
|
+
* {rows}
|
|
73
|
+
* </Modal>
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* @param open Whether the modal is rendered.
|
|
77
|
+
* @param onClose Invoked on close button, backdrop click, or Escape.
|
|
78
|
+
* @param title Heading for the title bar.
|
|
79
|
+
* @param size Panel width. See {@link ModalSize}.
|
|
80
|
+
* @param showCloseButton Whether the title bar renders a close button.
|
|
81
|
+
* @param footer Content pinned below the scrollable body.
|
|
82
|
+
* @param className `class` overrides for the panel.
|
|
83
|
+
* @param contentClassName `class` overrides for the scrollable body.
|
|
84
|
+
* @param children Modal content.
|
|
85
|
+
*/
|
|
86
|
+
export declare const Modal: FC<ModalProps>;
|
|
87
|
+
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA0B3C;;;GAGG;AACH,oBAAY,SAAS;IACnB,oDAAoD;IACpD,EAAE,OAAO;IACT,8DAA8D;IAC9D,EAAE,OAAO;IACT,4CAA4C;IAC5C,EAAE,OAAO;IACT,6BAA6B;IAC7B,EAAE,OAAO;CACV;AASD,MAAM,WAAW,UAAU;IACzB,mEAAmE;IACnE,IAAI,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,iDAAiD;IACjD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,uEAAuE;IACvE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAyGhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC, HTMLAttributes } from 'react';
|
|
2
2
|
import { IconInput } from '../Icons';
|
|
3
3
|
import { BackgroundColor, Radius, SemanticColor, Shadow, Size, StatusColor, TextColor } from '../../types';
|
|
4
|
-
export type PillSize = Exclude<Size, Size.Lg | Size.Xl
|
|
5
|
-
export type PillColor = BackgroundColor | SemanticColor | StatusColor
|
|
4
|
+
export type PillSize = `${Exclude<Size, Size.Lg | Size.Xl>}`;
|
|
5
|
+
export type PillColor = `${BackgroundColor | SemanticColor | StatusColor}`;
|
|
6
6
|
export interface PillProps extends HTMLAttributes<HTMLSpanElement> {
|
|
7
7
|
size?: PillSize;
|
|
8
8
|
radius?: Radius;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pill.d.ts","sourceRoot":"","sources":["../../../src/components/Pill/Pill.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGhD,OAAO,EAGL,KAAK,SAAS,EAEf,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EACL,eAAe,EACf,MAAM,EACN,aAAa,EACb,MAAM,EACN,IAAI,EAEJ,WAAW,EACX,SAAS,EAEV,MAAM,SAAS,CAAC;AAGjB,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Pill.d.ts","sourceRoot":"","sources":["../../../src/components/Pill/Pill.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGhD,OAAO,EAGL,KAAK,SAAS,EAEf,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EACL,eAAe,EACf,MAAM,EACN,aAAa,EACb,MAAM,EACN,IAAI,EAEJ,WAAW,EACX,SAAS,EAEV,MAAM,SAAS,CAAC;AAGjB,MAAM,MAAM,QAAQ,GAAG,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;AAC7D,MAAM,MAAM,SAAS,GAAG,GAAG,eAAe,GAAG,aAAa,GAAG,WAAW,EAAE,CAAC;AAE3E,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,eAAe,CAAC;IAChE,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAQD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAyD9B,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { FC, HTMLAttributes, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { ZIndex } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Position of the popover panel relative to its trigger.
|
|
5
|
+
* Values follow the `<edge> <alignment>` convention used by HeadlessUI's
|
|
6
|
+
* floating UI — e.g. `BottomStart` opens the panel below the trigger,
|
|
7
|
+
* left-aligned with it.
|
|
8
|
+
*/
|
|
9
|
+
export declare enum PopoverAnchor {
|
|
10
|
+
/** Below the trigger, horizontally centered. */
|
|
11
|
+
Bottom = "bottom",
|
|
12
|
+
/** Below the trigger, aligned with its leading (start) edge. */
|
|
13
|
+
BottomStart = "bottom start",
|
|
14
|
+
/** Below the trigger, aligned with its trailing (end) edge. */
|
|
15
|
+
BottomEnd = "bottom end",
|
|
16
|
+
/** Above the trigger, horizontally centered. */
|
|
17
|
+
Top = "top",
|
|
18
|
+
/** Above the trigger, aligned with its leading (start) edge. */
|
|
19
|
+
TopStart = "top start",
|
|
20
|
+
/** Above the trigger, aligned with its trailing (end) edge. */
|
|
21
|
+
TopEnd = "top end"
|
|
22
|
+
}
|
|
23
|
+
/** What the panel's render function receives. */
|
|
24
|
+
export interface PopoverRenderProps {
|
|
25
|
+
/** Closes the panel — for a "Done" button or a committed edit. */
|
|
26
|
+
close: () => void;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Shared visual styles for the popover panel: the popover surface, radius,
|
|
30
|
+
* shadow, and focus outline reset, with a small content padding. Unlike
|
|
31
|
+
* {@link menuPanelStyles} there is no width cap — the content decides, or
|
|
32
|
+
* `panelClassName` does.
|
|
33
|
+
*/
|
|
34
|
+
export declare const popoverPanelStyles: () => string;
|
|
35
|
+
/**
|
|
36
|
+
* Props for {@link Popover}.
|
|
37
|
+
*/
|
|
38
|
+
export interface PopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
39
|
+
/**
|
|
40
|
+
* The element that opens the popover when clicked.
|
|
41
|
+
* Rendered inside a `PopoverButton` wrapper — any focusable element works.
|
|
42
|
+
*/
|
|
43
|
+
trigger: ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Panel content — arbitrary: forms, settings, rich pickers. A function
|
|
46
|
+
* receives {@link PopoverRenderProps} so the content can close the panel.
|
|
47
|
+
*/
|
|
48
|
+
children: ReactNode | ((props: PopoverRenderProps) => ReactElement);
|
|
49
|
+
/** Position of the panel relative to the trigger. */
|
|
50
|
+
anchor?: PopoverAnchor;
|
|
51
|
+
/**
|
|
52
|
+
* Renders the panel in a portal so it escapes overflow-hidden ancestors
|
|
53
|
+
* and stacks above complex layouts (modals, mosaic grids, scrollable
|
|
54
|
+
* regions). Defaults to `true`.
|
|
55
|
+
* @default true
|
|
56
|
+
*/
|
|
57
|
+
portal?: boolean;
|
|
58
|
+
/** Explicit z-index override for the panel. */
|
|
59
|
+
zIndex?: ZIndex;
|
|
60
|
+
/**
|
|
61
|
+
* If `true`, the trigger cannot open the panel. Also inferred automatically
|
|
62
|
+
* when the `trigger` element has `disabled` set on its props.
|
|
63
|
+
*/
|
|
64
|
+
disabled?: boolean;
|
|
65
|
+
/** `class` overrides for the panel (e.g. an explicit width). */
|
|
66
|
+
panelClassName?: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* A click-triggered popover for content that is NOT a menu: settings forms,
|
|
70
|
+
* filter builders, rich pickers. Where {@link Dropdown} closes on every item
|
|
71
|
+
* click (menu semantics), a popover stays open while its content is worked
|
|
72
|
+
* with, closing on Escape, on an outside click, or from the content itself
|
|
73
|
+
* via the render function's `close`.
|
|
74
|
+
*
|
|
75
|
+
* Built on HeadlessUI's `Popover`, providing focus management and ARIA
|
|
76
|
+
* semantics automatically. The panel wears the same surface as the menu
|
|
77
|
+
* panels, so dropdowns and popovers read as one family.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```tsx
|
|
81
|
+
* <Popover trigger={<DropdownTrigger>Search settings</DropdownTrigger>}>
|
|
82
|
+
* {({ close }) => (
|
|
83
|
+
* <Stack orientation={Orientation.Column} spacing={Spacing.Sm}>
|
|
84
|
+
* <Text variant={TextVariant.Label}>Similarity index</Text>
|
|
85
|
+
* <Select options={indexes} value={selected} onChange={pick} />
|
|
86
|
+
* <Button onClick={close}>Done</Button>
|
|
87
|
+
* </Stack>
|
|
88
|
+
* )}
|
|
89
|
+
* </Popover>
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* @param trigger The trigger element that opens the panel.
|
|
93
|
+
* @param children Panel content, or a function of {@link PopoverRenderProps}.
|
|
94
|
+
* @param anchor Position of the panel relative to the trigger. See {@link PopoverAnchor}.
|
|
95
|
+
* @param portal If `true`, renders the panel in a portal with a high z-index.
|
|
96
|
+
* @param zIndex Explicit z-index for the panel.
|
|
97
|
+
* @param disabled If `true`, the panel cannot be opened.
|
|
98
|
+
* @param panelClassName `class` overrides for the panel.
|
|
99
|
+
* @param className `class` overrides for the root wrapper.
|
|
100
|
+
* @param props Additional HTML properties for the root wrapper.
|
|
101
|
+
*/
|
|
102
|
+
export declare const Popover: FC<PopoverProps>;
|
|
103
|
+
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,EAAE,EACP,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,EAKL,MAAM,EAEP,MAAM,SAAS,CAAC;AAGjB;;;;;GAKG;AACH,oBAAY,aAAa;IACvB,gDAAgD;IAChD,MAAM,WAAW;IACjB,gEAAgE;IAChE,WAAW,iBAAiB;IAC5B,+DAA+D;IAC/D,SAAS,eAAe;IACxB,gDAAgD;IAChD,GAAG,QAAQ;IACX,gEAAgE;IAChE,QAAQ,cAAc;IACtB,+DAA+D;IAC/D,MAAM,YAAY;CACnB;AAED,iDAAiD;AACjD,MAAM,WAAW,kBAAkB;IACjC,kEAAkE;IAClE,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,QAAO,MAQnC,CAAC;AAEJ;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,IAAI,CACxC,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,CACX;IACC;;;OAGG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,kBAAkB,KAAK,YAAY,CAAC,CAAC;IACpE,qDAAqD;IACrD,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CA2CpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
|
@@ -6,7 +6,7 @@ export interface RadioOption {
|
|
|
6
6
|
label: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export type RadioGroupSize = Exclude<Size, Size.Xs
|
|
9
|
+
export type RadioGroupSize = `${Exclude<Size, Size.Xs>}`;
|
|
10
10
|
export interface RadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
11
11
|
className?: string;
|
|
12
12
|
defaultValue?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/RadioGroup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,cAAc,EAAW,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,OAAO,EAAS,UAAU,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/RadioGroup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,cAAc,EAAW,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,OAAO,EAAS,UAAU,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,cAAc,GAAG,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;AAEzD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,CACX;IACC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAuC1C,CAAC"}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Descriptor, ZIndex } from '../../types';
|
|
3
|
-
export declare
|
|
4
|
-
Bottom
|
|
5
|
-
BottomStart
|
|
6
|
-
BottomEnd
|
|
7
|
-
Top
|
|
8
|
-
TopStart
|
|
9
|
-
TopEnd
|
|
3
|
+
export declare const SelectAnchor: {
|
|
4
|
+
readonly Bottom: "bottom";
|
|
5
|
+
readonly BottomStart: "bottom start";
|
|
6
|
+
readonly BottomEnd: "bottom end";
|
|
7
|
+
readonly Top: "top";
|
|
8
|
+
readonly TopStart: "top start";
|
|
9
|
+
readonly TopEnd: "top end";
|
|
10
|
+
};
|
|
11
|
+
export type SelectAnchor = `${(typeof SelectAnchor)[keyof typeof SelectAnchor]}`;
|
|
12
|
+
export declare namespace SelectAnchor {
|
|
13
|
+
type Bottom = typeof SelectAnchor.Bottom;
|
|
14
|
+
type BottomStart = typeof SelectAnchor.BottomStart;
|
|
15
|
+
type BottomEnd = typeof SelectAnchor.BottomEnd;
|
|
16
|
+
type Top = typeof SelectAnchor.Top;
|
|
17
|
+
type TopStart = typeof SelectAnchor.TopStart;
|
|
18
|
+
type TopEnd = typeof SelectAnchor.TopEnd;
|
|
10
19
|
}
|
|
11
20
|
export interface SelectProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
12
21
|
anchor?: SelectAnchor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EACF,cAAc,EACd,SAAS,EAMV,MAAM,OAAO,CAAC;AAOf,OAAO,EAKL,UAAU,EAMV,MAAM,EAEP,MAAM,SAAS,CAAC;AAKjB,
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EACF,cAAc,EACd,SAAS,EAMV,MAAM,OAAO,CAAC;AAOf,OAAO,EAKL,UAAU,EAMV,MAAM,EAEP,MAAM,SAAS,CAAC;AAKjB,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC;AACX,MAAM,MAAM,YAAY,GACtB,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,EAAE,CAAC;AAExD,yBAAiB,YAAY,CAAC;IAC5B,KAAY,MAAM,GAAG,OAAO,YAAY,CAAC,MAAM,CAAC;IAChD,KAAY,WAAW,GAAG,OAAO,YAAY,CAAC,WAAW,CAAC;IAC1D,KAAY,SAAS,GAAG,OAAO,YAAY,CAAC,SAAS,CAAC;IACtD,KAAY,GAAG,GAAG,OAAO,YAAY,CAAC,GAAG,CAAC;IAC1C,KAAY,QAAQ,GAAG,OAAO,YAAY,CAAC,QAAQ,CAAC;IACpD,KAAY,MAAM,GAAG,OAAO,YAAY,CAAC,MAAM,CAAC;CACjD;AAED,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,CACX;IACC,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,KAAK,IAAI,CAAC;IACrD,OAAO,CAAC,EAAE,UAAU,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC,EAAE,CAAC;IAC/D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC3B;AAsBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuEG;AACH,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAgJlC,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
/** Edge the sheet slides in from. */
|
|
3
|
+
export declare enum SheetSide {
|
|
4
|
+
Left = "left",
|
|
5
|
+
Right = "right"
|
|
6
|
+
}
|
|
7
|
+
export interface SheetProps {
|
|
8
|
+
/** Whether the sheet is rendered. Sheets are always controlled. */
|
|
9
|
+
open: boolean;
|
|
10
|
+
/** Invoked on the close button, the backdrop, or Escape. */
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
/** Edge it slides in from. Defaults to {@link SheetSide.Right}. */
|
|
13
|
+
side?: SheetSide;
|
|
14
|
+
/** Heading rendered in the sheet's title bar. */
|
|
15
|
+
title?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Panel width in pixels. The sheet is full-width below this, so it takes
|
|
18
|
+
* the whole viewport on a phone. Defaults to 460.
|
|
19
|
+
*/
|
|
20
|
+
width?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Whether to render the title bar's close button. Defaults to `true` when
|
|
23
|
+
* a `title` is given.
|
|
24
|
+
*/
|
|
25
|
+
showCloseButton?: boolean;
|
|
26
|
+
/** `class` overrides for the panel. */
|
|
27
|
+
className?: string;
|
|
28
|
+
/** `class` overrides for the scrollable body. */
|
|
29
|
+
contentClassName?: string;
|
|
30
|
+
/** Accessible name when there is no visible `title`. */
|
|
31
|
+
"aria-label"?: string;
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A full-height overlay anchored to one side of the viewport.
|
|
36
|
+
*
|
|
37
|
+
* The side-panel counterpart to {@link Modal}: same focus trap and same
|
|
38
|
+
* dismiss routes, but the panel is pinned to an edge and slides in, which
|
|
39
|
+
* suits detail views that stay visually connected to the list behind them
|
|
40
|
+
* (a run, a sample, a task). Reach for {@link Drawer} instead when the
|
|
41
|
+
* content belongs inside the layout rather than over it, and {@link Modal}
|
|
42
|
+
* when the user must deal with it before continuing.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```tsx
|
|
46
|
+
* <Sheet open={!!run} onClose={clear} title={run?.queue}>
|
|
47
|
+
* <RunDetail run={run} />
|
|
48
|
+
* </Sheet>
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param open Whether the sheet is rendered.
|
|
52
|
+
* @param onClose Invoked on close button, backdrop click, or Escape.
|
|
53
|
+
* @param side Edge the sheet slides in from. See {@link SheetSide}.
|
|
54
|
+
* @param title Heading for the title bar.
|
|
55
|
+
* @param width Panel width in pixels; full-width below it.
|
|
56
|
+
* @param showCloseButton Whether the title bar renders a close button.
|
|
57
|
+
* @param className `class` overrides for the panel.
|
|
58
|
+
* @param contentClassName `class` overrides for the scrollable body.
|
|
59
|
+
* @param children Sheet content.
|
|
60
|
+
*/
|
|
61
|
+
export declare const Sheet: FC<SheetProps>;
|
|
62
|
+
//# sourceMappingURL=Sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/Sheet.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAsB3C,qCAAqC;AACrC,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAOD,MAAM,WAAW,UAAU;IACzB,mEAAmE;IACnE,IAAI,EAAE,OAAO,CAAC;IACd,4DAA4D;IAC5D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,mEAAmE;IACnE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,iDAAiD;IACjD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAmFhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -14,6 +14,7 @@ export interface SliderProps extends Omit<HTMLAttributes<HTMLDivElement>, "onCha
|
|
|
14
14
|
onChangeCommitted?: ChangeHandler;
|
|
15
15
|
showUnsetHint?: boolean;
|
|
16
16
|
step?: number;
|
|
17
|
+
keyboardStep?: number | false;
|
|
17
18
|
value?: number | number[];
|
|
18
19
|
}
|
|
19
20
|
export interface SingleValueSliderProps extends Omit<SliderProps, "multi" | "onChange" | "onChangeCommitted" | "value"> {
|
|
@@ -69,6 +70,8 @@ export interface MultiValueSliderProps extends Omit<SliderProps, "multi" | "onCh
|
|
|
69
70
|
* updates during a drag while committing only once on release. Emits the same
|
|
70
71
|
* value shape as `onChange`.
|
|
71
72
|
* @param step Numeric step size for slider increments.
|
|
73
|
+
* @param keyboardStep Arrow-key step for a focused knob; defaults to `step`,
|
|
74
|
+
* `false` disables key handling. Handled keys preventDefault and bubble.
|
|
72
75
|
* @param value The controlled value of the slider.
|
|
73
76
|
* If `multi` is `true`, this must be of the form `[low, high]`;
|
|
74
77
|
* otherwise, this must be a single numeric value.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,EAAE,EACF,cAAc,EACd,SAAS,EAIV,MAAM,OAAO,CAAC;AAYf,KAAK,aAAa,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;AAExD,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,CACX;IACC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAClD,WAAW,EACX,OAAO,GAAG,UAAU,GAAG,mBAAmB,GAAG,OAAO,CACrD;IACC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CACjD,WAAW,EACX,OAAO,GAAG,UAAU,GAAG,mBAAmB,GAAG,OAAO,CACrD;IACC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9C,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAYD
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,EAAE,EACF,cAAc,EACd,SAAS,EAIV,MAAM,OAAO,CAAC;AAYf,KAAK,aAAa,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;AAExD,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,CACX;IACC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAClD,WAAW,EACX,OAAO,GAAG,UAAU,GAAG,mBAAmB,GAAG,OAAO,CACrD;IACC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CACjD,WAAW,EACX,OAAO,GAAG,UAAU,GAAG,mBAAmB,GAAG,OAAO,CACrD;IACC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9C,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAYD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,WAAW,CAiLtC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAexD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAetD,CAAC"}
|
|
@@ -6,6 +6,7 @@ interface SliderBarProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"
|
|
|
6
6
|
onChange?: (value: number | number[]) => void;
|
|
7
7
|
onChangeCommitted?: (value: number | number[]) => void;
|
|
8
8
|
step: number;
|
|
9
|
+
keyboardStep?: number | false;
|
|
9
10
|
value?: number | number[];
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SliderBar.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/SliderBar.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"SliderBar.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/SliderBar.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,EAAE,EACF,cAAc,EAKf,MAAM,OAAO,CAAC;AAQf,UAAU,cAAe,SAAQ,IAAI,CACnC,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,CACX;IACC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9C,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA+RxC,CAAC"}
|
|
@@ -3,15 +3,21 @@ interface SliderKnobProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
3
3
|
position: number;
|
|
4
4
|
onDragStart: DragEventHandler<HTMLDivElement>;
|
|
5
5
|
value: number;
|
|
6
|
+
min: number;
|
|
7
|
+
max: number;
|
|
6
8
|
}
|
|
7
9
|
/**
|
|
8
10
|
* A knob element to overlay on a {@link SliderBar}.
|
|
9
11
|
*
|
|
10
|
-
* The knob allows for user interaction via dragging along the slider's primary axis
|
|
12
|
+
* The knob allows for user interaction via dragging along the slider's primary axis,
|
|
13
|
+
* and is the slider's accessible control: it carries the full ARIA slider contract
|
|
14
|
+
* and receives keyboard focus.
|
|
11
15
|
*
|
|
12
16
|
* @param position The relative position of the knob; this must be a value in the range `[0, 1]`.
|
|
13
17
|
* @param onDragStart Callback triggered on the start of a drag event.
|
|
14
|
-
* @param value Value of the knob; this is expected to be `position * (max - min)
|
|
18
|
+
* @param value Value of the knob; this is expected to be `position * (max - min)`.
|
|
19
|
+
* @param min Minimum allowed value, exposed as `aria-valuemin`.
|
|
20
|
+
* @param max Maximum allowed value, exposed as `aria-valuemax`.
|
|
15
21
|
* @param props Additional HTML properties to apply to the component.
|
|
16
22
|
*
|
|
17
23
|
* @internal For use by {@link SliderBar}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SliderKnob.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/SliderKnob.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK7D,UAAU,eAAgB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC9D,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"SliderKnob.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/SliderKnob.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK7D,UAAU,eAAgB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC9D,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA6B1C,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react';
|
|
1
|
+
import { FC, HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
2
2
|
export declare const Table: FC<HTMLAttributes<HTMLTableElement>>;
|
|
3
3
|
export declare const TableRow: FC<HTMLAttributes<HTMLTableRowElement>>;
|
|
4
4
|
export declare const TableHeader: FC<HTMLAttributes<HTMLTableSectionElement>>;
|
|
5
5
|
export declare const TableBody: FC<HTMLAttributes<HTMLTableSectionElement>>;
|
|
6
|
-
export declare const TableCell: FC<
|
|
7
|
-
export declare const TableHead: FC<
|
|
6
|
+
export declare const TableCell: FC<TdHTMLAttributes<HTMLTableCellElement>>;
|
|
7
|
+
export declare const TableHead: FC<ThHTMLAttributes<HTMLTableCellElement>>;
|
|
8
8
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,EAAE,EACF,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,OAAO,CAAC;AAgBf,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAkBtD,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAoB5D,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,cAAc,CAAC,uBAAuB,CAAC,CAiBnE,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,uBAAuB,CAAC,CAKjE,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAkBhE,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAkBhE,CAAC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { FC, HTMLAttributes } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { BrandColor } from '../../types/color';
|
|
2
|
+
import { ThemeableColor, TextVariant } from '../../types';
|
|
4
3
|
export interface TextProps extends HTMLAttributes<HTMLSpanElement> {
|
|
5
4
|
variant?: TextVariant;
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* A theme-aware color token for anything the design system controls, or a
|
|
7
|
+
* raw CSS color for anything the app controls (user-defined palettes,
|
|
8
|
+
* data-driven colors) — a token can't exist for a color chosen at runtime
|
|
9
|
+
* by app data, so this isn't a fallback, it's the correct tool for that
|
|
10
|
+
* case.
|
|
11
|
+
*/
|
|
12
|
+
color?: ThemeableColor | (string & {});
|
|
7
13
|
}
|
|
8
14
|
/**
|
|
9
15
|
* A basic text component.
|
|
@@ -18,7 +24,7 @@ export interface TextProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
18
24
|
* ```
|
|
19
25
|
*
|
|
20
26
|
* @param variant The variant of the text; this controls the size and related styling of the text. See {@link Variant}.
|
|
21
|
-
* @param color The color of the text. See {@link
|
|
27
|
+
* @param color The color of the text. See {@link TextProps.color}.
|
|
22
28
|
* @param children The content wrapped by this component.
|
|
23
29
|
* @param className `class` overrides to apply to the component.
|
|
24
30
|
* @param props Additional HTML properties to apply to the component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGhD,OAAO,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Text/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGhD,OAAO,EACL,KAAK,cAAc,EAInB,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,eAAe,CAAC;IAChE,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,cAAc,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACxC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAuB9B,CAAC"}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { FC, TextareaHTMLAttributes } from 'react';
|
|
2
2
|
import { Size } from '../../types';
|
|
3
|
-
export declare
|
|
4
|
-
None
|
|
5
|
-
Vertical
|
|
6
|
-
Horizontal
|
|
7
|
-
BiDirectional
|
|
3
|
+
export declare const ResizeBehavior: {
|
|
4
|
+
readonly None: "None";
|
|
5
|
+
readonly Vertical: "Vertical";
|
|
6
|
+
readonly Horizontal: "Horizontal";
|
|
7
|
+
readonly BiDirectional: "BiDirectional";
|
|
8
|
+
};
|
|
9
|
+
export type ResizeBehavior = `${(typeof ResizeBehavior)[keyof typeof ResizeBehavior]}`;
|
|
10
|
+
export declare namespace ResizeBehavior {
|
|
11
|
+
type None = typeof ResizeBehavior.None;
|
|
12
|
+
type Vertical = typeof ResizeBehavior.Vertical;
|
|
13
|
+
type Horizontal = typeof ResizeBehavior.Horizontal;
|
|
14
|
+
type BiDirectional = typeof ResizeBehavior.BiDirectional;
|
|
8
15
|
}
|
|
9
16
|
export interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
10
17
|
size?: Size;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAGxD,OAAO,EAOL,IAAI,EAGL,MAAM,SAAS,CAAC;AAGjB,
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAGxD,OAAO,EAOL,IAAI,EAGL,MAAM,SAAS,CAAC;AAGjB,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AACX,MAAM,MAAM,cAAc,GACxB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,EAAE,CAAC;AAE5D,yBAAiB,cAAc,CAAC;IAC9B,KAAY,IAAI,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC;IAC9C,KAAY,QAAQ,GAAG,OAAO,cAAc,CAAC,QAAQ,CAAC;IACtD,KAAY,UAAU,GAAG,OAAO,cAAc,CAAC,UAAU,CAAC;IAC1D,KAAY,aAAa,GAAG,OAAO,cAAc,CAAC,aAAa,CAAC;CACjE;AAED,MAAM,WAAW,aAAc,SAAQ,sBAAsB,CAAC,mBAAmB,CAAC;IAChF,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAuBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAqDtC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { IconInput } from '../Icons';
|
|
3
3
|
import { Anchor, Variant } from '../../types';
|
|
4
|
-
type ToastVariant = Exclude<Variant, Variant.Borderless
|
|
4
|
+
type ToastVariant = `${Exclude<Variant, Variant.Borderless>}`;
|
|
5
5
|
export interface ToastProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
6
6
|
action?: ReactNode;
|
|
7
7
|
anchor?: Anchor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAa,KAAK,SAAS,EAAe,MAAM,oBAAoB,CAAC;AAM5E,OAAO,EAEL,MAAM,EAYN,OAAO,EACR,MAAM,SAAS,CAAC;AAGjB,KAAK,YAAY,GAAG,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAa,KAAK,SAAS,EAAe,MAAM,oBAAoB,CAAC;AAM5E,OAAO,EAEL,MAAM,EAYN,OAAO,EACR,MAAM,SAAS,CAAC;AAGjB,KAAK,YAAY,GAAG,GAAG,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;AAE9D,MAAM,WAAW,UAAW,SAAQ,IAAI,CACtC,cAAc,CAAC,cAAc,CAAC,EAC9B,OAAO,CACR;IACC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAqEhC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, FC } from 'react';
|
|
2
2
|
import { Size } from '../../types';
|
|
3
3
|
type ModifiedToggleProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size" | "onChange" | "checked" | "disabled" | "className" | "value">;
|
|
4
|
-
type ToggleSize = Extract<Size, Size.Sm | Size.Md
|
|
4
|
+
type ToggleSize = `${Extract<Size, Size.Sm | Size.Md>}`;
|
|
5
5
|
export interface ToggleProps extends ModifiedToggleProps {
|
|
6
6
|
checked?: boolean;
|
|
7
7
|
onChange?: (checked: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/Toggle.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAKtD,OAAO,EAML,IAAI,EAIL,MAAM,SAAS,CAAC;AAGjB,KAAK,mBAAmB,GAAG,IAAI,CAC7B,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CACrE,CAAC;AAEF,KAAK,UAAU,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/Toggle.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAKtD,OAAO,EAML,IAAI,EAIL,MAAM,SAAS,CAAC;AAGjB,KAAK,mBAAmB,GAAG,IAAI,CAC7B,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CACrE,CAAC;AAEF,KAAK,UAAU,GAAG,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;AAExD,MAAM,WAAW,WAAY,SAAQ,mBAAmB;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAqCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAmFlC,CAAC"}
|