@spaced-out/ui-design-system 0.6.26 → 0.6.28-beta.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 +14 -0
- package/lib/components/Accordion/Accordion.d.ts.map +1 -1
- package/lib/components/Accordion/Accordion.js +2 -5
- package/lib/components/Popover/Popover.d.ts +38 -0
- package/lib/components/Popover/Popover.d.ts.map +1 -0
- package/lib/components/Popover/Popover.js +148 -0
- package/lib/components/Popover/Popover.module.css +23 -0
- package/lib/components/Popover/index.d.ts +2 -0
- package/lib/components/Popover/index.d.ts.map +1 -0
- package/lib/components/Popover/index.js +16 -0
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +22 -11
- package/mcp/package.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.6.28-beta.0](https://github.com/spaced-out/ui-design-system/compare/v0.6.27...v0.6.28-beta.0) (2026-07-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **popover:** add Popover component ([#497](https://github.com/spaced-out/ui-design-system/issues/497)) ([dcbc4b3](https://github.com/spaced-out/ui-design-system/commit/dcbc4b3f56656e95d1004478215ce53211f61c85))
|
|
11
|
+
|
|
12
|
+
### [0.6.27](https://github.com/spaced-out/ui-design-system/compare/v0.6.26...v0.6.27) (2026-07-28)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **accordion:** removed disable for collapse button ([#496](https://github.com/spaced-out/ui-design-system/issues/496)) ([a815a10](https://github.com/spaced-out/ui-design-system/commit/a815a1000c616a07224e29f918a29ed6acb2fb92))
|
|
18
|
+
|
|
5
19
|
### [0.6.26](https://github.com/spaced-out/ui-design-system/compare/v0.6.25...v0.6.26) (2026-07-09)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAWrD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACzE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAC5C,kBAAkB,EAClB,cAAc,
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAWrD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACzE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAC5C,kBAAkB,EAClB,cAAc,CAwFf,CAAC"}
|
|
@@ -32,10 +32,8 @@ const Accordion = exports.Accordion = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
32
32
|
onToggle?.(!checked);
|
|
33
33
|
};
|
|
34
34
|
const handleAccordionClick = () => {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
setAccordionIsOpen(prev => !prev);
|
|
38
|
-
}
|
|
35
|
+
onChange?.(id, !accordionIsOpen);
|
|
36
|
+
setAccordionIsOpen(prev => !prev);
|
|
39
37
|
};
|
|
40
38
|
React.useEffect(() => {
|
|
41
39
|
setAccordionIsOpen(isOpen);
|
|
@@ -77,7 +75,6 @@ const Accordion = exports.Accordion = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
77
75
|
}), header]
|
|
78
76
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
79
77
|
iconLeftName: accordionIsOpen ? 'chevron-up' : 'chevron-down',
|
|
80
|
-
disabled: showToggle && !checked,
|
|
81
78
|
size: "small",
|
|
82
79
|
type: "ghost",
|
|
83
80
|
classNames: {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { PaddingSizeType } from '../../components/Card';
|
|
3
|
+
import type { ElevationType } from '../../components/Tooltip';
|
|
4
|
+
type ClassNames = Readonly<{
|
|
5
|
+
popover?: string;
|
|
6
|
+
card?: string;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const POPOVER_PLACEMENTS: readonly string[];
|
|
9
|
+
export type PopoverPlacementType = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
10
|
+
export interface PopoverChildProps {
|
|
11
|
+
className?: string;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
testId?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const PopoverHeader: (props: PopoverChildProps) => React.JSX.Element;
|
|
16
|
+
export declare const PopoverTitle: (props: PopoverChildProps) => React.JSX.Element;
|
|
17
|
+
export declare const PopoverActions: (props: PopoverChildProps) => React.JSX.Element;
|
|
18
|
+
export declare const PopoverContent: ({ className, ...props }: PopoverChildProps) => React.JSX.Element;
|
|
19
|
+
export declare const PopoverFooter: (props: PopoverChildProps) => React.JSX.Element;
|
|
20
|
+
export interface BasePopoverProps {
|
|
21
|
+
classNames?: ClassNames;
|
|
22
|
+
content?: React.ReactNode;
|
|
23
|
+
placement?: PopoverPlacementType;
|
|
24
|
+
offset?: number;
|
|
25
|
+
padding?: PaddingSizeType;
|
|
26
|
+
isOpen?: boolean;
|
|
27
|
+
defaultOpen?: boolean;
|
|
28
|
+
onOpenChange?: (isOpen: boolean) => unknown;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
elevation?: ElevationType;
|
|
31
|
+
testId?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface PopoverProps extends BasePopoverProps {
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
export declare const Popover: ({ classNames, children, content, placement, offset, padding, isOpen, defaultOpen, onOpenChange, disabled, elevation, testId, }: PopoverProps) => React.JSX.Element;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqB/B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AASzD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAM1D,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEH,eAAO,MAAM,kBAAkB,mBAa7B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAC5B,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,OAAO,GACP,aAAa,GACb,WAAW,CAAC;AAEhB,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,eAAO,MAAM,aAAa,GAAI,OAAO,iBAAiB,sBAErD,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,sBAEpD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,iBAAiB,sBAEtD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,yBAAuB,iBAAiB,sBAEtE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,iBAAiB,sBAErD,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAa,SAAQ,gBAAgB;IACpD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,OAAO,GAAI,gIAarB,YAAY,sBA0Fd,CAAC"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PopoverTitle = exports.PopoverHeader = exports.PopoverFooter = exports.PopoverContent = exports.PopoverActions = exports.Popover = exports.POPOVER_PLACEMENTS = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _react2 = require("@floating-ui/react");
|
|
9
|
+
var _space = require("../../styles/variables/_space");
|
|
10
|
+
var _classify = require("../../utils/classify");
|
|
11
|
+
var _qa = require("../../utils/qa");
|
|
12
|
+
var _Card = require("../Card");
|
|
13
|
+
var _Tooltip = require("../Tooltip");
|
|
14
|
+
var _PopoverModule = _interopRequireDefault(require("./Popover.module.css"));
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
|
+
const POPOVER_PLACEMENTS = exports.POPOVER_PLACEMENTS = Object.freeze(['top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'left', 'left-start', 'left-end', 'right', 'right-start', 'right-end']);
|
|
19
|
+
// Note: reuse Card's parts to inherit its dividers and padding switch
|
|
20
|
+
const PopoverHeader = props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Card.CardHeader, {
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
exports.PopoverHeader = PopoverHeader;
|
|
24
|
+
const PopoverTitle = props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Card.CardTitle, {
|
|
25
|
+
...props
|
|
26
|
+
});
|
|
27
|
+
exports.PopoverTitle = PopoverTitle;
|
|
28
|
+
const PopoverActions = props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Card.CardActions, {
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
exports.PopoverActions = PopoverActions;
|
|
32
|
+
const PopoverContent = _ref => {
|
|
33
|
+
let {
|
|
34
|
+
className,
|
|
35
|
+
...props
|
|
36
|
+
} = _ref;
|
|
37
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Card.CardContent, {
|
|
38
|
+
...props,
|
|
39
|
+
className: (0, _classify.classify)(_PopoverModule.default.content, className)
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
exports.PopoverContent = PopoverContent;
|
|
43
|
+
const PopoverFooter = props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Card.CardFooter, {
|
|
44
|
+
...props
|
|
45
|
+
});
|
|
46
|
+
exports.PopoverFooter = PopoverFooter;
|
|
47
|
+
const Popover = _ref2 => {
|
|
48
|
+
let {
|
|
49
|
+
classNames,
|
|
50
|
+
children,
|
|
51
|
+
content,
|
|
52
|
+
placement = 'bottom',
|
|
53
|
+
offset = parseInt(_space.spaceXSmall),
|
|
54
|
+
padding = 'medium',
|
|
55
|
+
isOpen,
|
|
56
|
+
defaultOpen = false,
|
|
57
|
+
onOpenChange,
|
|
58
|
+
disabled = false,
|
|
59
|
+
elevation = 'menu',
|
|
60
|
+
testId
|
|
61
|
+
} = _ref2;
|
|
62
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React.useState(defaultOpen);
|
|
63
|
+
|
|
64
|
+
// Note: supports controlled and uncontrolled use, `disabled` wins
|
|
65
|
+
const isControlled = isOpen !== undefined;
|
|
66
|
+
const requestedOpen = isOpen ?? uncontrolledOpen;
|
|
67
|
+
const open = !disabled && requestedOpen;
|
|
68
|
+
const onOpenChangeHandler = nextOpen => {
|
|
69
|
+
if (!isControlled) {
|
|
70
|
+
setUncontrolledOpen(nextOpen);
|
|
71
|
+
}
|
|
72
|
+
onOpenChange?.(nextOpen);
|
|
73
|
+
};
|
|
74
|
+
const {
|
|
75
|
+
refs,
|
|
76
|
+
floatingStyles,
|
|
77
|
+
context,
|
|
78
|
+
strategy
|
|
79
|
+
} = (0, _react2.useFloating)({
|
|
80
|
+
open,
|
|
81
|
+
onOpenChange: onOpenChangeHandler,
|
|
82
|
+
placement,
|
|
83
|
+
// Make sure the popover stays on the screen
|
|
84
|
+
whileElementsMounted: _react2.autoUpdate,
|
|
85
|
+
middleware: [(0, _react2.offset)(offset), (0, _react2.flip)({
|
|
86
|
+
fallbackAxisSideDirection: 'start'
|
|
87
|
+
}), (0, _react2.shift)({
|
|
88
|
+
padding: parseInt(_space.spaceXSmall)
|
|
89
|
+
})]
|
|
90
|
+
});
|
|
91
|
+
const {
|
|
92
|
+
getReferenceProps,
|
|
93
|
+
getFloatingProps
|
|
94
|
+
} = (0, _react2.useInteractions)([(0, _react2.useClick)(context, {
|
|
95
|
+
enabled: !disabled
|
|
96
|
+
}), (0, _react2.useRole)(context, {
|
|
97
|
+
role: 'dialog'
|
|
98
|
+
}), (0, _react2.useDismiss)(context)]);
|
|
99
|
+
|
|
100
|
+
// Type guard to ensure children is a ReactElement
|
|
101
|
+
if (! /*#__PURE__*/React.isValidElement(children)) {
|
|
102
|
+
throw new Error('Popover children must be a valid React element');
|
|
103
|
+
}
|
|
104
|
+
const childElement = children;
|
|
105
|
+
|
|
106
|
+
// Note: Preserve the consumer's ref (React 19 safe)
|
|
107
|
+
const mergedRef = (0, _react2.useMergeRefs)([refs.setReference, childElement.ref ?? null]);
|
|
108
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
109
|
+
children: [/*#__PURE__*/React.cloneElement(childElement, getReferenceProps({
|
|
110
|
+
...childElement.props,
|
|
111
|
+
ref: mergedRef
|
|
112
|
+
})), open && /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.FloatingPortal, {
|
|
113
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.FloatingFocusManager, {
|
|
114
|
+
context: context,
|
|
115
|
+
modal: false,
|
|
116
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
117
|
+
ref: refs.setFloating,
|
|
118
|
+
"data-testid": (0, _qa.generateTestId)({
|
|
119
|
+
base: testId,
|
|
120
|
+
slot: 'popover'
|
|
121
|
+
}),
|
|
122
|
+
className: (0, _classify.classify)(_PopoverModule.default.popover, classNames?.popover),
|
|
123
|
+
style: {
|
|
124
|
+
position: strategy,
|
|
125
|
+
...floatingStyles,
|
|
126
|
+
'--popover-elevation': (0, _Tooltip.getElevationValue)(elevation)
|
|
127
|
+
},
|
|
128
|
+
...getFloatingProps(),
|
|
129
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Card.Card, {
|
|
130
|
+
classNames: {
|
|
131
|
+
wrapper: (0, _classify.classify)(_PopoverModule.default.card, classNames?.card)
|
|
132
|
+
},
|
|
133
|
+
paddingTop: padding,
|
|
134
|
+
paddingRight: padding,
|
|
135
|
+
paddingBottom: padding,
|
|
136
|
+
paddingLeft: padding,
|
|
137
|
+
testId: (0, _qa.generateTestId)({
|
|
138
|
+
base: testId,
|
|
139
|
+
slot: 'content'
|
|
140
|
+
}),
|
|
141
|
+
children: content
|
|
142
|
+
})
|
|
143
|
+
})
|
|
144
|
+
})
|
|
145
|
+
})]
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
exports.Popover = Popover;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@value (size320) from '../../styles/variables/_size.css';
|
|
2
|
+
@value (elevationMenu) from '../../styles/variables/_elevation.css';
|
|
3
|
+
@value (borderRadiusMedium) from '../../styles/variables/_border.css';
|
|
4
|
+
|
|
5
|
+
.popover {
|
|
6
|
+
--popover-elevation: elevationMenu;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-flow: column;
|
|
9
|
+
max-width: size320;
|
|
10
|
+
z-index: var(--popover-elevation);
|
|
11
|
+
outline: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.card {
|
|
15
|
+
flex-flow: column;
|
|
16
|
+
border-radius: borderRadiusMedium;
|
|
17
|
+
composes: boxShadow2 from '../../styles/shadow.module.css';
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Note: Card content is a row, a popover is narrow so it stacks */
|
|
21
|
+
.content {
|
|
22
|
+
flex-flow: column;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _Popover = require("./Popover");
|
|
7
|
+
Object.keys(_Popover).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Popover[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _Popover[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -47,6 +47,7 @@ export * from '../components/PageTitle';
|
|
|
47
47
|
export * from '../components/Pagination';
|
|
48
48
|
export * from '../components/Panel';
|
|
49
49
|
export * from '../components/PastChatCard';
|
|
50
|
+
export * from '../components/Popover';
|
|
50
51
|
export * from '../components/PreviewCard';
|
|
51
52
|
export * from '../components/ProgressDonut';
|
|
52
53
|
export * from '../components/PromptChip';
|
|
@@ -79,8 +80,8 @@ export * from '../components/Tooltip';
|
|
|
79
80
|
export * from '../components/Truncate';
|
|
80
81
|
export * from '../components/TruncatedTextWithTooltip';
|
|
81
82
|
export * from '../components/Typeahead';
|
|
82
|
-
export * from '../hooks/useAudioAnalyzer';
|
|
83
83
|
export * from '../components/VoiceOrb/Microphone';
|
|
84
84
|
export * from '../components/VoiceOrb/VoiceOrb';
|
|
85
85
|
export * from '../components/WeekdayPicker';
|
|
86
|
+
export * from '../hooks/useAudioAnalyzer';
|
|
86
87
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mDAAmD,CAAC;AAClE,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CA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
545
|
+
var _Popover = require("./Popover");
|
|
546
|
+
Object.keys(_Popover).forEach(function (key) {
|
|
547
|
+
if (key === "default" || key === "__esModule") return;
|
|
548
|
+
if (key in exports && exports[key] === _Popover[key]) return;
|
|
549
|
+
Object.defineProperty(exports, key, {
|
|
550
|
+
enumerable: true,
|
|
551
|
+
get: function () {
|
|
552
|
+
return _Popover[key];
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
});
|
|
545
556
|
var _PreviewCard = require("./PreviewCard");
|
|
546
557
|
Object.keys(_PreviewCard).forEach(function (key) {
|
|
547
558
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -894,17 +905,6 @@ Object.keys(_Typeahead).forEach(function (key) {
|
|
|
894
905
|
}
|
|
895
906
|
});
|
|
896
907
|
});
|
|
897
|
-
var _useAudioAnalyzer = require("../hooks/useAudioAnalyzer");
|
|
898
|
-
Object.keys(_useAudioAnalyzer).forEach(function (key) {
|
|
899
|
-
if (key === "default" || key === "__esModule") return;
|
|
900
|
-
if (key in exports && exports[key] === _useAudioAnalyzer[key]) return;
|
|
901
|
-
Object.defineProperty(exports, key, {
|
|
902
|
-
enumerable: true,
|
|
903
|
-
get: function () {
|
|
904
|
-
return _useAudioAnalyzer[key];
|
|
905
|
-
}
|
|
906
|
-
});
|
|
907
|
-
});
|
|
908
908
|
var _Microphone = require("./VoiceOrb/Microphone");
|
|
909
909
|
Object.keys(_Microphone).forEach(function (key) {
|
|
910
910
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -937,4 +937,15 @@ Object.keys(_WeekdayPicker).forEach(function (key) {
|
|
|
937
937
|
return _WeekdayPicker[key];
|
|
938
938
|
}
|
|
939
939
|
});
|
|
940
|
+
});
|
|
941
|
+
var _useAudioAnalyzer = require("../hooks/useAudioAnalyzer");
|
|
942
|
+
Object.keys(_useAudioAnalyzer).forEach(function (key) {
|
|
943
|
+
if (key === "default" || key === "__esModule") return;
|
|
944
|
+
if (key in exports && exports[key] === _useAudioAnalyzer[key]) return;
|
|
945
|
+
Object.defineProperty(exports, key, {
|
|
946
|
+
enumerable: true,
|
|
947
|
+
get: function () {
|
|
948
|
+
return _useAudioAnalyzer[key];
|
|
949
|
+
}
|
|
950
|
+
});
|
|
940
951
|
});
|
package/mcp/package.json
CHANGED