@pexip/components 20.1.0 → 20.3.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/CHANGELOG.md +197 -0
- package/api-docs/README.mdx +10 -2
- package/api-docs/enumerations/TestId.mdx +1 -0
- package/api-docs/functions/useBoundingRect.mdx +42 -0
- package/api-docs/interfaces/IconCollection.mdx +3 -0
- package/api-docs/type-aliases/AriaMenuItem.mdx +5 -0
- package/api-docs/type-aliases/AriaMenuProps.mdx +4 -0
- package/api-docs/type-aliases/AriaSubMenu.mdx +27 -0
- package/api-docs/type-aliases/AriaSubMenuContentHelpers.mdx +13 -0
- package/api-docs/type-aliases/MenuItem.mdx +2 -1
- package/api-docs/type-aliases/MultiselectCoreProps.mdx +3 -0
- package/api-docs/variables/AriaMenu.mdx +3 -1
- package/api-docs/variables/CircleCountDown.mdx +1 -0
- package/api-docs/variables/Draggable.mdx +52 -0
- package/api-docs/variables/InteractiveElement.mdx +1 -1
- package/api-docs/variables/KEYBOARD_EVENT_KEY.mdx +16 -0
- package/api-docs/variables/MultiselectCore.mdx +27 -0
- package/api-docs/variables/MultistepIndicator.mdx +1 -0
- package/api-docs/variables/PreferenceInput.mdx +1 -0
- package/api-docs/variables/RefButton.mdx +1 -1
- package/api-docs/variables/RefInteractiveElement.mdx +1 -1
- package/api-docs/variables/RefSimpleButton.mdx +1 -1
- package/api-docs/variables/Sheet.mdx +9 -1
- package/api-docs/variables/ToggleSwitchDisplay.mdx +16 -0
- package/api-docs/variables/buttonVariantsValues.mdx +3 -0
- package/design-tokens/mixins/_focus.scss +54 -10
- package/design-tokens/mixins/media-queries.scss +12 -0
- package/design-tokens/tokens/zIndex.tokens.scss +2 -1
- package/dist/components-no-global-styles.css +1 -1
- package/dist/components.cjs +2 -2
- package/dist/components.css +1 -1
- package/dist/components.js +6384 -8031
- package/dist/types/design-tokens/generated/Icons.d.ts +3 -0
- package/dist/types/design-tokens/generated/Icons.d.ts.map +1 -1
- package/dist/types/src/components/elements/ActionsRow/ActionsRow.d.ts +1 -0
- package/dist/types/src/components/elements/ActionsRow/ActionsRow.d.ts.map +1 -1
- package/dist/types/src/components/elements/Button/Button.d.ts +1 -0
- package/dist/types/src/components/elements/Button/Button.d.ts.map +1 -1
- package/dist/types/src/components/elements/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts +45 -0
- package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts.map +1 -1
- package/dist/types/src/components/elements/Input/Input.d.ts +1 -0
- package/dist/types/src/components/elements/Input/Input.d.ts.map +1 -1
- package/dist/types/src/components/elements/InteractiveElement/InteractiveElement.d.ts +6 -8
- package/dist/types/src/components/elements/InteractiveElement/InteractiveElement.d.ts.map +1 -1
- package/dist/types/src/components/elements/ListBoxLink/ListBoxLink.d.ts +2 -2
- package/dist/types/src/components/elements/ListBoxLink/ListBoxLink.d.ts.map +1 -1
- package/dist/types/src/components/elements/ListLink/ListLink.d.ts +8 -5
- package/dist/types/src/components/elements/ListLink/ListLink.d.ts.map +1 -1
- package/dist/types/src/components/elements/Panel/Panel.d.ts +1 -0
- package/dist/types/src/components/elements/Panel/Panel.d.ts.map +1 -1
- package/dist/types/src/components/elements/Scrollbars/Scrollbars.d.ts +0 -1
- package/dist/types/src/components/elements/Scrollbars/Scrollbars.d.ts.map +1 -1
- package/dist/types/src/components/elements/SimpleButton/SimpleButton.d.ts +1 -0
- package/dist/types/src/components/elements/SimpleButton/SimpleButton.d.ts.map +1 -1
- package/dist/types/src/components/elements/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/dist/types/src/components/elements/ToggleSwitch/ToggleSwitchDisplay.d.ts +28 -0
- package/dist/types/src/components/elements/ToggleSwitch/ToggleSwitchDisplay.d.ts.map +1 -0
- package/dist/types/src/components/elements/Tooltip/NotificationTooltip.d.ts +2 -1
- package/dist/types/src/components/elements/Tooltip/NotificationTooltip.d.ts.map +1 -1
- package/dist/types/src/components/elements/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/src/components/modules/AriaMenu/AriaMenu.d.ts +3 -1
- package/dist/types/src/components/modules/AriaMenu/AriaMenu.d.ts.map +1 -1
- package/dist/types/src/components/modules/AriaMenu/AriaMenu.types.d.ts +109 -1
- package/dist/types/src/components/modules/AriaMenu/AriaMenu.types.d.ts.map +1 -1
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenu.d.ts +36 -4
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenu.d.ts.map +1 -1
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuButton.d.ts +3 -6
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuButton.d.ts.map +1 -1
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuItem.d.ts +3 -0
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuItem.d.ts.map +1 -1
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuNavigator.d.ts +22 -0
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuNavigator.d.ts.map +1 -0
- package/dist/types/src/components/modules/AriaMenu/InnerAriaMenuPopover.d.ts.map +1 -1
- package/dist/types/src/components/modules/Avatar/Avatar.utils.d.ts +2 -2
- package/dist/types/src/components/modules/Avatar/Avatar.utils.d.ts.map +1 -1
- package/dist/types/src/components/modules/Captions/Captions.view.d.ts +1 -0
- package/dist/types/src/components/modules/Captions/Captions.view.d.ts.map +1 -1
- package/dist/types/src/components/modules/CircleCountDown/CircleCountDown.view.d.ts +1 -0
- package/dist/types/src/components/modules/CircleCountDown/CircleCountDown.view.d.ts.map +1 -1
- package/dist/types/src/components/modules/CondensedTabs/CondensedTabs.view.d.ts.map +1 -1
- package/dist/types/src/components/modules/ConfirmationModal/ConfirmationModal.d.ts +2 -0
- package/dist/types/src/components/modules/ConfirmationModal/ConfirmationModal.d.ts.map +1 -1
- package/dist/types/src/components/modules/DropContent/DropContent.d.ts +1 -0
- package/dist/types/src/components/modules/DropContent/DropContent.d.ts.map +1 -1
- package/dist/types/src/components/modules/Menu/Menu.d.ts +3 -1
- package/dist/types/src/components/modules/Menu/Menu.d.ts.map +1 -1
- package/dist/types/src/components/modules/Menu/types.d.ts +4 -2
- package/dist/types/src/components/modules/Menu/types.d.ts.map +1 -1
- package/dist/types/src/components/modules/Modal/Modal.d.ts +3 -0
- package/dist/types/src/components/modules/Modal/Modal.d.ts.map +1 -1
- package/dist/types/src/components/modules/Multiselect/ConfirmableMultiselect.d.ts.map +1 -1
- package/dist/types/src/components/modules/Multiselect/Multiselect.d.ts +8 -0
- package/dist/types/src/components/modules/Multiselect/Multiselect.d.ts.map +1 -1
- package/dist/types/src/components/modules/Multiselect/MultiselectCore.d.ts.map +1 -1
- package/dist/types/src/components/modules/MultistepIndicator/MultistepIndicator.d.ts +1 -0
- package/dist/types/src/components/modules/MultistepIndicator/MultistepIndicator.d.ts.map +1 -1
- package/dist/types/src/components/modules/MultistepIndicator/MultistepIndicator.utils.d.ts +1 -2
- package/dist/types/src/components/modules/MultistepIndicator/MultistepIndicator.utils.d.ts.map +1 -1
- package/dist/types/src/components/modules/MultistepIndicator/OrdinalText.view.d.ts.map +1 -1
- package/dist/types/src/components/modules/PopOutWindow/PopOutWindow.d.ts.map +1 -1
- package/dist/types/src/components/modules/PopOutWindow/copyStyles.d.ts +23 -0
- package/dist/types/src/components/modules/PopOutWindow/copyStyles.d.ts.map +1 -0
- package/dist/types/src/components/modules/PreferenceInput/PreferenceInput.d.ts +2 -0
- package/dist/types/src/components/modules/PreferenceInput/PreferenceInput.d.ts.map +1 -1
- package/dist/types/src/components/modules/Sheet/Sheet.d.ts +10 -1
- package/dist/types/src/components/modules/Sheet/Sheet.d.ts.map +1 -1
- package/dist/types/src/constants/keyboard.d.ts +2 -0
- package/dist/types/src/constants/keyboard.d.ts.map +1 -1
- package/dist/types/src/exports.d.ts +7 -1
- package/dist/types/src/exports.d.ts.map +1 -1
- package/dist/types/src/hooks/useAriaTooltip.d.ts +20 -4
- package/dist/types/src/hooks/useAriaTooltip.d.ts.map +1 -1
- package/dist/types/src/hooks/useBoundingRect.d.ts +27 -0
- package/dist/types/src/hooks/useBoundingRect.d.ts.map +1 -0
- package/dist/types/src/hooks/useNotificationTooltipInteractions.d.ts +34 -0
- package/dist/types/src/hooks/useNotificationTooltipInteractions.d.ts.map +1 -0
- package/dist/types/src/types/sizes.d.ts +1 -1
- package/dist/types/src/types/sizes.d.ts.map +1 -1
- package/dist/types/src/utils/imageSrc.d.ts +1 -1
- package/dist/types/src/utils/testIds.d.ts +1 -0
- package/dist/types/src/utils/testIds.d.ts.map +1 -1
- package/package.json +14 -25
|
@@ -82,6 +82,7 @@ export interface IconCollection {
|
|
|
82
82
|
IconImport: IconSource;
|
|
83
83
|
IconInfoRound: IconSource;
|
|
84
84
|
IconKey: IconSource;
|
|
85
|
+
IconLanguage: IconSource;
|
|
85
86
|
IconLeave: IconSource;
|
|
86
87
|
IconLink: IconSource;
|
|
87
88
|
IconLiveCaption: IconSource;
|
|
@@ -137,11 +138,13 @@ export interface IconCollection {
|
|
|
137
138
|
IconStar: IconSource;
|
|
138
139
|
IconStopRound: IconSource;
|
|
139
140
|
IconSupport: IconSource;
|
|
141
|
+
IconSupportAgent: IconSource;
|
|
140
142
|
IconTestScriptIcon: IconSource;
|
|
141
143
|
IconThumbsDown: IconSource;
|
|
142
144
|
IconThumbsUp: IconSource;
|
|
143
145
|
IconTimer: IconSource;
|
|
144
146
|
IconTranscript: IconSource;
|
|
147
|
+
IconTranslation: IconSource;
|
|
145
148
|
IconTrash: IconSource;
|
|
146
149
|
IconUnlock: IconSource;
|
|
147
150
|
IconVideoOff: IconSource;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icons.d.ts","sourceRoot":"","sources":["../../../../design-tokens/generated/Icons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Icons.d.ts","sourceRoot":"","sources":["../../../../design-tokens/generated/Icons.ts"],"names":[],"mappings":"A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,EAAE,UAAU,CAAC;IACxB,WAAW,EAAE,UAAU,CAAC;IACxB,gBAAgB,EAAE,UAAU,CAAC;CAChC;AAED,QAAA,MAAM,UAAU,EAAE,cAspBjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -6,6 +6,7 @@ export declare const ActionsRow: React.FC<Omit<React.ComponentProps<'div'>, 'tit
|
|
|
6
6
|
subtitle?: string;
|
|
7
7
|
className?: string;
|
|
8
8
|
colorScheme?: ColorScheme;
|
|
9
|
+
hasDivider?: boolean;
|
|
9
10
|
}>;
|
|
10
11
|
export type ActionsRowProps = React.ComponentProps<typeof ActionsRow>;
|
|
11
12
|
//# sourceMappingURL=ActionsRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionsRow.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/ActionsRow/ActionsRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAMzD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAC7B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,GAAG;IACzC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ActionsRow.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/ActionsRow/ActionsRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAMzD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAC7B,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,GAAG;IACzC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CA8CJ,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -29,6 +29,7 @@ export declare const RefButton: React.ForwardRefExoticComponent<(((((Omit<React.
|
|
|
29
29
|
disabled?: boolean;
|
|
30
30
|
htmlTag?: import("../InteractiveElement/InteractiveElement").InteractiveElementHTMLTag;
|
|
31
31
|
href?: string;
|
|
32
|
+
focusClassName?: string;
|
|
32
33
|
}) & {
|
|
33
34
|
colorScheme?: import("../../..").ColorScheme;
|
|
34
35
|
isActive?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,WAAW,EAAC,MAAM,qCAAqC,CAAC;AAChE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAEpE,OAAO,EAAC,OAAO,EAAC,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AAIlC,MAAM,WAAW,eACb,SAAQ,IAAI,CACR,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,EACpC,cAAc,GAAG,aAAa,CACjC;IACD,SAAS,CAAC,EAAE,MAAM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ACJ,OAAO;iFAIpC,CAAC;AAIH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC;AAEtE,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AAElC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAOzD,MAAM,MAAM,aAAa,GAAG,IAAI,CAC5B,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAC7B,MAAM,GAAG,UAAU,CACtB,GAAG;IACA,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAChD,aAAa,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AAElC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAOzD,MAAM,MAAM,aAAa,GAAG,IAAI,CAC5B,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAC7B,MAAM,GAAG,UAAU,CACtB,GAAG;IACA,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAChD,aAAa,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,QAAQ,qGA0EnB,CAAC"}
|
|
@@ -18,6 +18,50 @@ export declare enum LockStyle {
|
|
|
18
18
|
VERTICAL = 1,
|
|
19
19
|
HORIZONTAL = 2
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* A wrapper that makes its children draggable via pointer (and, when
|
|
23
|
+
* `isMoveableWithArrowKeys` is set, the keyboard).
|
|
24
|
+
*
|
|
25
|
+
* By default the **entire** surface of the Draggable starts a drag on
|
|
26
|
+
* pointer-down. The two opt-in `data-*` attributes below let you refine which
|
|
27
|
+
* parts of the content are draggable. Neither is required — omit them when the
|
|
28
|
+
* whole element should be draggable.
|
|
29
|
+
*
|
|
30
|
+
* - `data-no-drag`: Marks a descendant region that should **not** initiate a
|
|
31
|
+
* drag. Add it to interactive controls nested inside the Draggable (buttons,
|
|
32
|
+
* links, inputs, sliders, menus, etc.) so they stay usable without
|
|
33
|
+
* accidentally moving the element.
|
|
34
|
+
* - `data-drag-handle`: Marks a descendant that **can** initiate a drag even
|
|
35
|
+
* when it sits inside a `data-no-drag` region. Use it to expose a dedicated
|
|
36
|
+
* grab handle within an otherwise non-draggable area. A focusable handle can also
|
|
37
|
+
* move the Draggable with arrow keys when `isMoveableWithArrowKeys` is set.
|
|
38
|
+
*
|
|
39
|
+
* Both attributes are resolved with `Element.closest`, so they apply to the
|
|
40
|
+
* tagged element and everything nested within it.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* // Whole card is draggable (no attributes needed):
|
|
44
|
+
* <Draggable>
|
|
45
|
+
* <Card />
|
|
46
|
+
* </Draggable>
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* // Card is draggable, but the close button stays clickable:
|
|
50
|
+
* <Draggable>
|
|
51
|
+
* <Card>
|
|
52
|
+
* <button data-no-drag onClick={onClose}>Close</button>
|
|
53
|
+
* </Card>
|
|
54
|
+
* </Draggable>
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* // Only the header acts as a drag handle inside an otherwise no-drag body:
|
|
58
|
+
* <Draggable>
|
|
59
|
+
* <div data-no-drag>
|
|
60
|
+
* <div data-drag-handle>Drag me</div>
|
|
61
|
+
* <Body />
|
|
62
|
+
* </div>
|
|
63
|
+
* </Draggable>
|
|
64
|
+
*/
|
|
21
65
|
export declare const Draggable: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
22
66
|
alignWithFloatRootTrigger?: AlignWithFloatRootTrigger;
|
|
23
67
|
ariaLabel?: string;
|
|
@@ -37,6 +81,7 @@ export declare const Draggable: React.ForwardRefExoticComponent<Omit<React.Class
|
|
|
37
81
|
scrollTimer?: number;
|
|
38
82
|
shouldCaptureClick?: boolean;
|
|
39
83
|
showFocus?: boolean;
|
|
84
|
+
testId?: string;
|
|
40
85
|
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
41
86
|
export type DraggableProps = React.ComponentProps<typeof Draggable>;
|
|
42
87
|
//# sourceMappingURL=Draggable.view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Draggable.view.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/Draggable/Draggable.view.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Draggable.view.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/Draggable/Draggable.view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAQtE,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,gBAAgB,CAC1D,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CACtB,CAAC;AAEF,MAAM,WAAW,cAAc;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAID,oBAAY,SAAS;IACjB,IAAI,IAAI;IACR,QAAQ,IAAI;IACZ,UAAU,IAAI;CACjB;AAuCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,eAAO,MAAM,SAAS;gCAGc,yBAAyB;gBACzC,MAAM;uBACC,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI;gBACxC,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC;qBACjC,cAAc;iBAClB,OAAO;8BACM,OAAO;gBACrB,SAAS;yBACA,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI;uBACnC,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI;mBACrC,CACX,OAAO,EAAE,cAAc,EACvB,iBAAiB,EAAE,iBAAiB,KACnC,IAAI;qBACQ,OAAO;2BACD,WAAW,GAAG,IAAI;uBACtB,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC;mBACvC,MAAM;kBACP,MAAM;yBACC,OAAO;gBAChB,OAAO;aACV,MAAM;gDAkjBtB,CAAC;AAIF,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -3,6 +3,7 @@ import type { BaseSizeModifier } from '../../../types/sizes';
|
|
|
3
3
|
import type { ButtonVariant, ColorScheme, InputVariant, LabelModifier } from '../../../types/variants';
|
|
4
4
|
export type TextLikeInputType = 'text' | 'password' | 'number' | 'email' | 'search' | 'tel' | 'url' | 'date';
|
|
5
5
|
export declare const Input: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "disabled"> & {
|
|
6
|
+
containerRef?: React.RefObject<HTMLDivElement | null>;
|
|
6
7
|
clearButtonText?: string;
|
|
7
8
|
clearButtonVariant?: ButtonVariant;
|
|
8
9
|
colorScheme?: ColorScheme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,KAQN,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EACR,aAAa,EACb,WAAW,EACX,YAAY,EACZ,aAAa,EAChB,MAAM,yBAAyB,CAAC;AAUjC,MAAM,MAAM,iBAAiB,GACvB,MAAM,GACN,UAAU,GACV,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,KAAK,GACL,KAAK,GACL,MAAM,CAAC;AAEb,eAAO,MAAM,KAAK;
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,KAQN,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EACR,aAAa,EACb,WAAW,EACX,YAAY,EACZ,aAAa,EAChB,MAAM,yBAAyB,CAAC;AAUjC,MAAM,MAAM,iBAAiB,GACvB,MAAM,GACN,UAAU,GACV,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,KAAK,GACL,KAAK,GACL,MAAM,CAAC;AAEb,eAAO,MAAM,KAAK;mBAGK,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC;sBACnC,MAAM;yBACH,aAAa;kBACpB,WAAW;kBACX,KAAK,CAAC,SAAS;oBACb,KAAK,CAAC,SAAS;gBACnB,MAAM;eACP,OAAO;SACb,MAAM;iBACE,OAAO;WACb,MAAM;oBACG,aAAa;UACvB,MAAM;cACF,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;oBACjB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;sBACrB,OAAO;mBACV,gBAAgB;aACtB,MAAM;WACR,iBAAiB;YAChB,MAAM;cACJ,YAAY;iEAoL7B,CAAC;AAIF,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC;AAE5D,eAAO,MAAM,QAAQ,GAAI,OAAO,UAAU,KAAG,CAAC,MAAM,EAAE,UAAU,CAY/D,CAAC"}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type InteractiveElementHTMLTag = 'button' | 'a' | 'div' | 'summary';
|
|
3
|
-
|
|
3
|
+
type InteractiveElementBaseProps = React.ComponentPropsWithoutRef<InteractiveElementHTMLTag> & {
|
|
4
4
|
className?: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
htmlTag?: InteractiveElementHTMLTag;
|
|
7
7
|
href?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
htmlTag?: InteractiveElementHTMLTag;
|
|
13
|
-
href?: string;
|
|
14
|
-
}) & React.RefAttributes<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement>>;
|
|
8
|
+
focusClassName?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const InteractiveElement: React.FC<InteractiveElementBaseProps>;
|
|
11
|
+
export declare const RefInteractiveElement: React.ForwardRefExoticComponent<InteractiveElementBaseProps & React.RefAttributes<HTMLDivElement | HTMLButtonElement | HTMLAnchorElement>>;
|
|
15
12
|
export type InteractiveElementProps = React.ComponentProps<typeof InteractiveElement>;
|
|
13
|
+
export {};
|
|
16
14
|
//# sourceMappingURL=InteractiveElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InteractiveElement.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/InteractiveElement/InteractiveElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,yBAAyB,GAAG,QAAQ,GAAG,GAAG,GAAG,KAAK,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"InteractiveElement.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/InteractiveElement/InteractiveElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,yBAAyB,GAAG,QAAQ,GAAG,GAAG,GAAG,KAAK,GAAG,SAAS,CAAC;AAE3E,KAAK,2BAA2B,GAC5B,KAAK,CAAC,wBAAwB,CAAC,yBAAyB,CAAC,GAAG;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAuCN,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAIpE,CAAC;AAEF,eAAO,MAAM,qBAAqB,4IAKhC,CAAC;AAIH,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CACtD,OAAO,kBAAkB,CAC5B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { InteractiveElementProps } from '../InteractiveElement/InteractiveElement';
|
|
3
|
-
import type { ColorScheme } from '../../../types/variants';
|
|
4
2
|
import type { StandardSizeModifier } from '../../../types/sizes';
|
|
3
|
+
import type { ColorScheme } from '../../../types/variants';
|
|
4
|
+
import type { InteractiveElementProps } from '../InteractiveElement/InteractiveElement';
|
|
5
5
|
export declare const ListBoxLink: React.FC<InteractiveElementProps & {
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
colorScheme?: ColorScheme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListBoxLink.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/ListBoxLink/ListBoxLink.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListBoxLink.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/ListBoxLink/ListBoxLink.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAEzD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,0CAA0C,CAAC;AAKtF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAC9B,uBAAuB,GAAG;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,oBAAoB,CAAC;IAEpC,OAAO,CAAC,EAAE,CACN,CAAC,EACK,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,GACnC,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,GACnC,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KACrC,IAAI,CAAC;CACb,CAmDJ,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { TextVariant } from '../../../types/variants';
|
|
3
2
|
import type { IconSource } from '../../../../design-tokens/generated/Icons';
|
|
4
|
-
import type { InteractiveElementProps } from '../InteractiveElement/InteractiveElement';
|
|
5
3
|
import type { BaseSizeModifier } from '../../../types/sizes';
|
|
4
|
+
import type { TextVariant } from '../../../types/variants';
|
|
5
|
+
import { Icon } from '../../elements/Icon/Icon';
|
|
6
|
+
import type { InteractiveElementProps } from '../InteractiveElement/InteractiveElement';
|
|
6
7
|
export declare const ListLink: React.FC<InteractiveElementProps & {
|
|
7
8
|
children: React.ReactNode;
|
|
8
|
-
variant?: TextVariant;
|
|
9
9
|
hasBorder?: boolean;
|
|
10
10
|
icon?: IconSource;
|
|
11
|
-
|
|
11
|
+
iconSize?: React.ComponentProps<typeof Icon>['size'];
|
|
12
12
|
iconAlignedStart?: boolean;
|
|
13
|
-
|
|
13
|
+
iconClassName?: string;
|
|
14
|
+
iconColor?: string;
|
|
14
15
|
isDisabled?: boolean;
|
|
16
|
+
isFixedIcon?: boolean;
|
|
15
17
|
sizeModifier?: BaseSizeModifier;
|
|
18
|
+
variant?: TextVariant;
|
|
16
19
|
onClick?: (e: React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLAnchorElement> | React.MouseEvent<HTMLDivElement>) => void;
|
|
17
20
|
}>;
|
|
18
21
|
//# sourceMappingURL=ListLink.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListLink.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/ListLink/ListLink.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListLink.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/ListLink/ListLink.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAC,IAAI,EAAC,MAAM,0BAA0B,CAAC;AAE9C,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,0CAA0C,CAAC;AAKtF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAC3B,uBAAuB,GAAG;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;IACrD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB,OAAO,CAAC,EAAE,CACN,CAAC,EACK,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,GACnC,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,GACnC,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KACrC,IAAI,CAAC;CACb,CAkDJ,CAAC"}
|
|
@@ -9,6 +9,7 @@ export declare const Panel: React.ForwardRefExoticComponent<Omit<{
|
|
|
9
9
|
scrollbarRef?: React.RefObject<SimpleBarCore | null>;
|
|
10
10
|
scrollElementRef?: React.RefObject<HTMLElement | null>;
|
|
11
11
|
scrollElementClassname?: string;
|
|
12
|
+
scrollbarsClassname?: string;
|
|
12
13
|
onScroll?: () => void;
|
|
13
14
|
} & Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
14
15
|
hasBackground?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/Panel/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAc,MAAM,OAAO,CAAC;AAEnC,OAAO,KAAK,aAAa,MAAM,gBAAgB,CAAC;AAQhD,eAAO,MAAM,KAAK;;;iBAGG,OAAO;qBACH,OAAO;qBACP,OAAO;mBACT,KAAK,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC;uBACjC,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC;6BAC7B,MAAM;
|
|
1
|
+
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/Panel/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAc,MAAM,OAAO,CAAC;AAEnC,OAAO,KAAK,aAAa,MAAM,gBAAgB,CAAC;AAQhD,eAAO,MAAM,KAAK;;;iBAGG,OAAO;qBACH,OAAO;qBACP,OAAO;mBACT,KAAK,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC;uBACjC,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC;6BAC7B,MAAM;0BACT,MAAM;eACjB,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kHAqE5B,CAAC;AAGF,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
|
@@ -3,7 +3,6 @@ import { type Props } from 'simplebar-react';
|
|
|
3
3
|
import type SimpleBarCore from 'simplebar-core';
|
|
4
4
|
export type AutoHideBehavior = 'never' | 'scroll' | 'leave' | 'move';
|
|
5
5
|
export declare const Scrollbars: React.ForwardRefExoticComponent<Omit<Props, "autoHide"> & {
|
|
6
|
-
children?: React.ReactNode;
|
|
7
6
|
autoHide?: AutoHideBehavior;
|
|
8
7
|
scrollElementRef?: React.MutableRefObject<HTMLElement | null>;
|
|
9
8
|
onScroll?: (e: Event) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scrollbars.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/Scrollbars/Scrollbars.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAkB,EAAC,KAAK,KAAK,EAAC,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,aAAa,MAAM,gBAAgB,CAAC;AAQhD,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAErE,eAAO,MAAM,UAAU;eAGJ,
|
|
1
|
+
{"version":3,"file":"Scrollbars.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/Scrollbars/Scrollbars.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAkB,EAAC,KAAK,KAAK,EAAC,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,aAAa,MAAM,gBAAgB,CAAC;AAQhD,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAErE,eAAO,MAAM,UAAU;eAGJ,gBAAgB;uBACR,KAAK,CAAC,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC;eAClD,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI;gBACjB,MAAM;uCA0CzB,CAAC;AAIF,KAAK,WAAW,GAAG,aAAa,GAAG,IAAI,CAAC;AAExC,YAAY,EAAC,WAAW,EAAC,CAAC"}
|
|
@@ -23,6 +23,7 @@ export declare const RefSimpleButton: React.ForwardRefExoticComponent<(((Omit<Re
|
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
htmlTag?: import("../InteractiveElement/InteractiveElement").InteractiveElementHTMLTag;
|
|
25
25
|
href?: string;
|
|
26
|
+
focusClassName?: string;
|
|
26
27
|
}) & {
|
|
27
28
|
colorScheme?: ColorScheme;
|
|
28
29
|
isActive?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/SimpleButton/SimpleButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EACR,qBAAqB,EACrB,oBAAoB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,aAAa,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,0CAA0C,CAAC;AAiFtF;;;;GAIG;AAEH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAC/B,uBAAuB,GAAG;IACtB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC,CAGJ,CAAC;AAEF,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"SimpleButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/SimpleButton/SimpleButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EACR,qBAAqB,EACrB,oBAAoB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,aAAa,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,0CAA0C,CAAC;AAiFtF;;;;GAIG;AAEH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAC/B,uBAAuB,GAAG;IACtB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC,CAGJ,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;kBAGN,WAAW;eACd,OAAO;iBACL,OAAO;eACT,qBAAqB;qBACf,OAAO;cACd,OAAO;WACV,oBAAoB;cACjB,aAAa;iFAI7B,CAAC;AAIH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleSwitch.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/ToggleSwitch/ToggleSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ToggleSwitch.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/ToggleSwitch/ToggleSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAMzD,MAAM,WAAW,iBACb,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;IACvD,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAChC,aAAa,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACpC,eAAe,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACpC,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC7B;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAC/B,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,CAwC5C,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ColorScheme } from '../../../types/variants';
|
|
3
|
+
export interface ToggleSwitchDisplayProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
as?: React.ElementType;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
isSmall?: boolean;
|
|
9
|
+
label: string;
|
|
10
|
+
labelClassName?: string;
|
|
11
|
+
labelPosition?: 'start' | 'end';
|
|
12
|
+
labelModifier?: 'hidden' | 'spaced';
|
|
13
|
+
labelFontWeight?: 'normal' | 'bold';
|
|
14
|
+
colorScheme?: ColorScheme;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Presentational version of ToggleSwitch that renders only the visual toggle
|
|
18
|
+
* indicator and label text — it does not render an `<input>` or manage any
|
|
19
|
+
* interaction/state itself.
|
|
20
|
+
*
|
|
21
|
+
* Use this when the parent element (e.g. an AriaMenu item) already handles
|
|
22
|
+
* interaction and you only need to display the toggle state.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* <ToggleSwitchDisplay checked={isMuted} label="Mute all guests" isSmall />
|
|
26
|
+
*/
|
|
27
|
+
export declare const ToggleSwitchDisplay: React.FC<ToggleSwitchDisplayProps>;
|
|
28
|
+
//# sourceMappingURL=ToggleSwitchDisplay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleSwitchDisplay.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/ToggleSwitch/ToggleSwitchDisplay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAMzD,MAAM,WAAW,wBACb,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACzC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAChC,aAAa,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACpC,eAAe,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACpC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC7B;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAqDlE,CAAC"}
|
|
@@ -4,7 +4,6 @@ import type { ColorScheme } from '../../../types/variants';
|
|
|
4
4
|
import type { ControlledTooltip } from './useTooltip';
|
|
5
5
|
export type NotificationTooltipPosition = 'topRight' | 'topCenter' | 'topLeft' | 'topStart' | 'topEnd' | 'bottomRight' | 'bottomCenter' | 'bottomLeft' | 'bottomStart' | 'bottomEnd' | 'left' | 'right';
|
|
6
6
|
export declare const NotificationTooltip: React.FC<React.ComponentProps<'div'> & ControlledTooltip & {
|
|
7
|
-
usePortal?: boolean;
|
|
8
7
|
position?: NotificationTooltipPosition;
|
|
9
8
|
header?: React.ReactNode;
|
|
10
9
|
modifier?: 'fullWidth';
|
|
@@ -16,9 +15,11 @@ export declare const NotificationTooltip: React.FC<React.ComponentProps<'div'> &
|
|
|
16
15
|
testIdCloseButton?: string;
|
|
17
16
|
colorScheme?: ColorScheme;
|
|
18
17
|
mainWrapperClassName?: string;
|
|
18
|
+
ariaLabel?: string;
|
|
19
19
|
closeButtonAriaLabel?: string;
|
|
20
20
|
stopPointerDownPropagation?: boolean;
|
|
21
21
|
shouldCloseOnOutsideClick?: boolean;
|
|
22
|
+
zIndex?: number | string;
|
|
22
23
|
}>;
|
|
23
24
|
export type NotificationTooltipProps = React.ComponentProps<typeof NotificationTooltip>;
|
|
24
25
|
//# sourceMappingURL=NotificationTooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/Tooltip/NotificationTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,OAAO,CAAC;AACxC,OAAO,
|
|
1
|
+
{"version":3,"file":"NotificationTooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/Tooltip/NotificationTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,OAAO,CAAC;AACxC,OAAO,KAA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sourceRoot":"","sources":["../../../../../../src/components/elements/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/components/elements/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;AAKrC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAO9D;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAC1B,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACtC,CAoEJ,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AriaMenuProps } from './AriaMenu.types';
|
|
3
3
|
/**
|
|
4
|
-
* AriaMenu component represents a dropdown menu.
|
|
4
|
+
* AriaMenu component represents a dropdown menu. Menu items can open submenus in
|
|
5
|
+
* place, rendering either a nested list of items or arbitrary React content,
|
|
6
|
+
* with a back button to return to the previous level.
|
|
5
7
|
*/
|
|
6
8
|
export declare const AriaMenu: React.FC<AriaMenuProps>;
|
|
7
9
|
//# sourceMappingURL=AriaMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AriaMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modules/AriaMenu/AriaMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AriaMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modules/AriaMenu/AriaMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAGpD;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA0C5C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Placement } from '@react-aria/overlays';
|
|
2
|
-
import type { CSSProperties, ReactElement } from 'react';
|
|
2
|
+
import type { CSSProperties, ReactElement, ReactNode } from 'react';
|
|
3
3
|
import type { ItemProps } from '@react-types/shared';
|
|
4
4
|
import type { Item } from '@react-stately/collections';
|
|
5
5
|
import type { ColorScheme } from '../../..';
|
|
@@ -12,6 +12,15 @@ export type AriaMenuProps = {
|
|
|
12
12
|
* The react element that triggers the menu.
|
|
13
13
|
*/
|
|
14
14
|
button: ReactElement;
|
|
15
|
+
/**
|
|
16
|
+
* Optionally wraps the rendered menu trigger.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* renderButton={triggerButton => (
|
|
20
|
+
* <Tooltip text="Settings">{triggerButton}</Tooltip>
|
|
21
|
+
* )}
|
|
22
|
+
*/
|
|
23
|
+
renderButton?: (triggerButton: ReactElement) => ReactNode;
|
|
15
24
|
/**
|
|
16
25
|
* Optional content to show above the menu items.
|
|
17
26
|
*/
|
|
@@ -45,7 +54,80 @@ export type AriaMenuProps = {
|
|
|
45
54
|
* The class name for the menu item.
|
|
46
55
|
*/
|
|
47
56
|
itemClassName?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Default aria label for the back button rendered at the top of a submenu.
|
|
59
|
+
*/
|
|
60
|
+
backButtonLabel?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Callback function called when the user navigates back one level via the
|
|
63
|
+
* back button rendered at the top of a submenu.
|
|
64
|
+
*/
|
|
65
|
+
onGoBack?: () => void;
|
|
66
|
+
/**
|
|
67
|
+
* Whether to show the chevron indicator on menu items that open a submenu.
|
|
68
|
+
* Defaults to `true`.
|
|
69
|
+
*/
|
|
70
|
+
showSubMenuIndicator?: boolean;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Helpers passed to a submenu's `content` render function, allowing the content
|
|
74
|
+
* to close the whole menu or navigate back to the previous level.
|
|
75
|
+
*/
|
|
76
|
+
export type AriaSubMenuContentHelpers = {
|
|
77
|
+
/**
|
|
78
|
+
* Closes the whole menu.
|
|
79
|
+
*/
|
|
80
|
+
close: () => void;
|
|
81
|
+
/**
|
|
82
|
+
* Navigates back to the previous level.
|
|
83
|
+
*/
|
|
84
|
+
goBack: () => void;
|
|
48
85
|
};
|
|
86
|
+
/**
|
|
87
|
+
* A submenu that opens in place inside an {@link AriaMenu} when its parent item
|
|
88
|
+
* is clicked. A submenu can either render a nested list of {@link AriaMenuItem}
|
|
89
|
+
* (which can themselves open further submenus) or arbitrary React content. When
|
|
90
|
+
* a submenu is open, a back button is rendered at the top of the menu to return
|
|
91
|
+
* to the previous level.
|
|
92
|
+
*/
|
|
93
|
+
export type AriaSubMenu = {
|
|
94
|
+
/**
|
|
95
|
+
* Optional title shown next to the back button at the top of the submenu.
|
|
96
|
+
*/
|
|
97
|
+
title?: React.ReactNode;
|
|
98
|
+
/**
|
|
99
|
+
* The test id applied to the submenu title.
|
|
100
|
+
*/
|
|
101
|
+
titleTestId?: string;
|
|
102
|
+
/**
|
|
103
|
+
* The test id applied to the submenu container.
|
|
104
|
+
*/
|
|
105
|
+
testId?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Aria label for the back button rendered at the top of the submenu.
|
|
108
|
+
* Overrides the menu-level `backButtonLabel`.
|
|
109
|
+
*/
|
|
110
|
+
backButtonLabel?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The test id for the back button rendered at the top of the submenu.
|
|
113
|
+
*/
|
|
114
|
+
backButtonTestId?: string;
|
|
115
|
+
} & ({
|
|
116
|
+
/**
|
|
117
|
+
* A nested list of menu items to render as a submenu. Selecting an
|
|
118
|
+
* item with its own `subMenu` opens a further submenu.
|
|
119
|
+
*/
|
|
120
|
+
items: AriaMenuItem[];
|
|
121
|
+
content?: never;
|
|
122
|
+
} | {
|
|
123
|
+
/**
|
|
124
|
+
* Arbitrary React content to render as a submenu. The content is
|
|
125
|
+
* tabbable and interactive. Can be a render function receiving
|
|
126
|
+
* helpers to close the menu or navigate back.
|
|
127
|
+
*/
|
|
128
|
+
content: React.ReactNode | ((helpers: AriaSubMenuContentHelpers) => React.ReactNode);
|
|
129
|
+
items?: never;
|
|
130
|
+
});
|
|
49
131
|
/**
|
|
50
132
|
* The structure of a menu item that can be used to create a dropdown menu.
|
|
51
133
|
*/
|
|
@@ -58,6 +140,10 @@ export type AriaMenuItem = Omit<ItemProps<typeof Item>, 'children'> & {
|
|
|
58
140
|
* The label of the item.
|
|
59
141
|
*/
|
|
60
142
|
label: React.ReactNode;
|
|
143
|
+
/**
|
|
144
|
+
* Optional description of the item. This will be displayed below the menu item.
|
|
145
|
+
*/
|
|
146
|
+
description?: React.ReactNode;
|
|
61
147
|
/**
|
|
62
148
|
* The test id for the item.
|
|
63
149
|
*/
|
|
@@ -70,10 +156,24 @@ export type AriaMenuItem = Omit<ItemProps<typeof Item>, 'children'> & {
|
|
|
70
156
|
* If set to false, the menu will not close when the user clicks this item.
|
|
71
157
|
*/
|
|
72
158
|
closeMenuOnItemClick?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* If set, clicking the item runs `onItemClick` (if provided) and opens a
|
|
161
|
+
* submenu in place. The submenu can render a nested list of `AriaMenuItem` or
|
|
162
|
+
* arbitrary React content, and a back button is rendered at the top of the
|
|
163
|
+
* menu to return to the previous level. The menu is not closed when a
|
|
164
|
+
* submenu is opened.
|
|
165
|
+
*/
|
|
166
|
+
subMenu?: AriaSubMenu;
|
|
73
167
|
/**
|
|
74
168
|
* The icon to display next to the item.
|
|
75
169
|
*/
|
|
76
170
|
icon?: React.ReactNode;
|
|
171
|
+
/**
|
|
172
|
+
* Where to place the `icon` relative to the label. `'start'` (the default)
|
|
173
|
+
* renders the icon before the label; `'end'` renders it after the label,
|
|
174
|
+
* pushed to the far end of the item.
|
|
175
|
+
*/
|
|
176
|
+
iconPosition?: 'start' | 'end';
|
|
77
177
|
/**
|
|
78
178
|
* Class name that is used to override the default hover style.
|
|
79
179
|
*/
|
|
@@ -98,6 +198,14 @@ export type AriaMenuItem = Omit<ItemProps<typeof Item>, 'children'> & {
|
|
|
98
198
|
* If set to true, the item will be disabled.
|
|
99
199
|
*/
|
|
100
200
|
isDisabled?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* If set to true, the item uses the danger text color.
|
|
203
|
+
*/
|
|
204
|
+
isDanger?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Marks the item as a checkable menu item and reports the given state.
|
|
207
|
+
*/
|
|
208
|
+
isChecked?: boolean;
|
|
101
209
|
/**
|
|
102
210
|
* If set to true, a divider will be rendered above the item.
|
|
103
211
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AriaMenu.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modules/AriaMenu/AriaMenu.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAC,aAAa,EAAE,YAAY,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AriaMenu.types.d.ts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