@dxos/shell 0.7.5-staging.2ff1350 → 0.7.5-staging.e6154f3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/shell.js +2510 -2492
- package/dist/bundle/shell.js.map +1 -1
- package/dist/bundle/shell.umd.cjs +44 -44
- package/dist/bundle/shell.umd.cjs.map +1 -1
- package/dist/bundle/style.css +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +20 -10
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/react.cjs +27 -17
- package/dist/lib/node/react.cjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react.mjs +20 -10
- package/dist/lib/node-esm/react.mjs.map +3 -3
- package/dist/types/src/components/AgentConfig.js +11 -15
- package/dist/types/src/components/AgentConfig.js.map +1 -1
- package/dist/types/src/components/AuthCode.js +6 -10
- package/dist/types/src/components/AuthCode.js.map +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.js +9 -13
- package/dist/types/src/components/CompoundButton/CompoundButton.js.map +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.js +17 -20
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.js.map +1 -1
- package/dist/types/src/components/CompoundButton/index.js +1 -17
- package/dist/types/src/components/CompoundButton/index.js.map +1 -1
- package/dist/types/src/components/DeviceList/DeviceList.js +10 -14
- package/dist/types/src/components/DeviceList/DeviceList.js.map +1 -1
- package/dist/types/src/components/DeviceList/DeviceListItem.d.ts +1 -1
- package/dist/types/src/components/DeviceList/DeviceListItem.js +18 -21
- package/dist/types/src/components/DeviceList/DeviceListItem.js.map +1 -1
- package/dist/types/src/components/DeviceList/DeviceListProps.js +0 -2
- package/dist/types/src/components/DeviceList/DeviceListProps.js.map +1 -1
- package/dist/types/src/components/DeviceList/index.js +2 -18
- package/dist/types/src/components/DeviceList/index.js.map +1 -1
- package/dist/types/src/components/IdentityList/IdentityListItem.d.ts +1 -1
- package/dist/types/src/components/IdentityList/IdentityListItem.js +12 -15
- package/dist/types/src/components/IdentityList/IdentityListItem.js.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.js +17 -22
- package/dist/types/src/components/IdentityList/SpaceMemberList.js.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js +10 -14
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js.map +1 -1
- package/dist/types/src/components/IdentityList/index.js +2 -18
- package/dist/types/src/components/IdentityList/index.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.js +8 -12
- package/dist/types/src/components/InvitationList/InvitationList.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.stories.js +20 -24
- package/dist/types/src/components/InvitationList/InvitationList.stories.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationListContainer.js +9 -13
- package/dist/types/src/components/InvitationList/InvitationListContainer.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationListItem.js +32 -37
- package/dist/types/src/components/InvitationList/InvitationListItem.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationListProps.js +0 -2
- package/dist/types/src/components/InvitationList/index.js +3 -19
- package/dist/types/src/components/InvitationList/index.js.map +1 -1
- package/dist/types/src/components/Panel/Action.js +15 -18
- package/dist/types/src/components/Panel/Action.js.map +1 -1
- package/dist/types/src/components/Panel/Actions.js +6 -9
- package/dist/types/src/components/Panel/Actions.js.map +1 -1
- package/dist/types/src/components/Panel/CloseButton.js +7 -11
- package/dist/types/src/components/Panel/CloseButton.js.map +1 -1
- package/dist/types/src/components/Panel/Emoji.js +6 -11
- package/dist/types/src/components/Panel/Emoji.js.map +1 -1
- package/dist/types/src/components/Panel/Heading.js +5 -8
- package/dist/types/src/components/Panel/Heading.js.map +1 -1
- package/dist/types/src/components/Panel/Input.js +4 -8
- package/dist/types/src/components/Panel/Input.js.map +1 -1
- package/dist/types/src/components/Panel/Label.js +4 -8
- package/dist/types/src/components/Panel/Label.js.map +1 -1
- package/dist/types/src/components/Panel/Panel.stories.d.ts +1 -1
- package/dist/types/src/components/Panel/Panel.stories.js +15 -20
- package/dist/types/src/components/Panel/Panel.stories.js.map +1 -1
- package/dist/types/src/components/Panel/StepHeading.js +5 -8
- package/dist/types/src/components/Panel/StepHeading.js.map +1 -1
- package/dist/types/src/components/Panel/index.js +8 -24
- package/dist/types/src/components/Panel/index.js.map +1 -1
- package/dist/types/src/components/SpaceListItem.js +10 -13
- package/dist/types/src/components/SpaceListItem.js.map +1 -1
- package/dist/types/src/components/StorybookDialog.js +5 -9
- package/dist/types/src/components/StorybookDialog.js.map +1 -1
- package/dist/types/src/components/Viewport/Viewport.js +18 -22
- package/dist/types/src/components/Viewport/Viewport.js.map +1 -1
- package/dist/types/src/components/Viewport/Viewport.stories.d.ts +1 -1
- package/dist/types/src/components/Viewport/Viewport.stories.js +12 -15
- package/dist/types/src/components/Viewport/Viewport.stories.js.map +1 -1
- package/dist/types/src/components/Viewport/index.js +1 -17
- package/dist/types/src/components/Viewport/index.js.map +1 -1
- package/dist/types/src/components/index.js +9 -25
- package/dist/types/src/components/index.js.map +1 -1
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.js +7 -11
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.js.map +1 -1
- package/dist/types/src/composites/IdentityDialog/index.js +1 -17
- package/dist/types/src/composites/IdentityDialog/index.js.map +1 -1
- package/dist/types/src/composites/JoinDialog/JoinDialog.js +9 -13
- package/dist/types/src/composites/JoinDialog/JoinDialog.js.map +1 -1
- package/dist/types/src/composites/JoinDialog/index.js +1 -17
- package/dist/types/src/composites/JoinDialog/index.js.map +1 -1
- package/dist/types/src/composites/Shell/Shell.js +54 -58
- package/dist/types/src/composites/Shell/Shell.js.map +1 -1
- package/dist/types/src/composites/Shell/ShellContext.js +32 -37
- package/dist/types/src/composites/Shell/ShellContext.js.map +1 -1
- package/dist/types/src/composites/Shell/index.js +3 -19
- package/dist/types/src/composites/Shell/index.js.map +1 -1
- package/dist/types/src/composites/Shell/memory-shell-runtime.js +7 -11
- package/dist/types/src/composites/Shell/memory-shell-runtime.js.map +1 -1
- package/dist/types/src/composites/Shell/run-shell.js +18 -22
- package/dist/types/src/composites/Shell/run-shell.js.map +1 -1
- package/dist/types/src/composites/Shell/shell-runtime.js +13 -17
- package/dist/types/src/composites/Shell/shell-runtime.js.map +1 -1
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.js +7 -11
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.js.map +1 -1
- package/dist/types/src/composites/SpaceDialog/index.js +1 -17
- package/dist/types/src/composites/SpaceDialog/index.js.map +1 -1
- package/dist/types/src/composites/StatusDialog/StatusDialog.js +6 -10
- package/dist/types/src/composites/StatusDialog/StatusDialog.js.map +1 -1
- package/dist/types/src/composites/StatusDialog/index.js +1 -17
- package/dist/types/src/composites/StatusDialog/index.js.map +1 -1
- package/dist/types/src/composites/index.js +4 -20
- package/dist/types/src/composites/index.js.map +1 -1
- package/dist/types/src/index.js +2 -6
- package/dist/types/src/index.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js +55 -54
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js +38 -51
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.js +0 -2
- package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/identityMachine.js +10 -14
- package/dist/types/src/panels/IdentityPanel/identityMachine.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/index.js +2 -18
- package/dist/types/src/panels/IdentityPanel/index.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js +16 -21
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js +21 -25
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/index.js +2 -18
- package/dist/types/src/panels/IdentityPanel/steps/index.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js +7 -11
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.js +19 -23
- package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useKubeAgentHandlers.js +19 -23
- package/dist/types/src/panels/IdentityPanel/useKubeAgentHandlers.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinHeading.js +11 -14
- package/dist/types/src/panels/JoinPanel/JoinHeading.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.js +38 -43
- package/dist/types/src/panels/JoinPanel/JoinPanel.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js +25 -41
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanelProps.js +0 -2
- package/dist/types/src/panels/JoinPanel/JoinPanelProps.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/index.js +2 -18
- package/dist/types/src/panels/JoinPanel/index.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/joinMachine.js +49 -54
- package/dist/types/src/panels/JoinPanel/joinMachine.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js +9 -13
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js +14 -18
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js +19 -24
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.js +8 -12
- package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js +13 -17
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js +15 -19
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js +11 -15
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/index.js +7 -23
- package/dist/types/src/panels/JoinPanel/steps/index.js.map +1 -1
- package/dist/types/src/panels/Panels.stories.d.ts +1 -1
- package/dist/types/src/panels/Panels.stories.js +13 -50
- package/dist/types/src/panels/Panels.stories.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.js +25 -30
- package/dist/types/src/panels/SpacePanel/SpacePanel.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js +89 -108
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanelProps.js +0 -2
- package/dist/types/src/panels/SpacePanel/SpacePanelProps.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/index.js +2 -18
- package/dist/types/src/panels/SpacePanel/index.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/spaceMachine.js +9 -13
- package/dist/types/src/panels/SpacePanel/spaceMachine.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js +33 -38
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/steps/index.js +1 -17
- package/dist/types/src/panels/SpacePanel/steps/index.js.map +1 -1
- package/dist/types/src/panels/StatusPanel/StatusPanel.js +5 -9
- package/dist/types/src/panels/StatusPanel/StatusPanel.js.map +1 -1
- package/dist/types/src/panels/StatusPanel/index.js +1 -17
- package/dist/types/src/panels/StatusPanel/index.js.map +1 -1
- package/dist/types/src/panels/index.js +4 -20
- package/dist/types/src/panels/index.js.map +1 -1
- package/dist/types/src/playwright/invitations-manager.js +11 -15
- package/dist/types/src/playwright/invitations-manager.js.map +1 -1
- package/dist/types/src/playwright/invitations.spec.js +64 -66
- package/dist/types/src/playwright/invitations.spec.js.map +1 -1
- package/dist/types/src/react.js +6 -22
- package/dist/types/src/react.js.map +1 -1
- package/dist/types/src/steps/ConfirmReset.js +18 -23
- package/dist/types/src/steps/ConfirmReset.js.map +1 -1
- package/dist/types/src/steps/InvitationManager.js +17 -21
- package/dist/types/src/steps/InvitationManager.js.map +1 -1
- package/dist/types/src/steps/StepProps.js +0 -2
- package/dist/types/src/steps/StepProps.js.map +1 -1
- package/dist/types/src/steps/index.js +3 -19
- package/dist/types/src/steps/index.js.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.d.ts +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.js +50 -53
- package/dist/types/src/stories/Invitations.e2e-stories.js.map +1 -1
- package/dist/types/src/styles/index.js +2 -18
- package/dist/types/src/styles/index.js.map +1 -1
- package/dist/types/src/styles/invitationStatusStyles.js +31 -37
- package/dist/types/src/styles/invitationStatusStyles.js.map +1 -1
- package/dist/types/src/styles/panelStyles.js +1 -4
- package/dist/types/src/styles/panelStyles.js.map +1 -1
- package/dist/types/src/testing/fixtures/identities.js +8 -11
- package/dist/types/src/testing/fixtures/identities.js.map +1 -1
- package/dist/types/src/testing/fixtures/index.js +2 -18
- package/dist/types/src/testing/fixtures/index.js.map +1 -1
- package/dist/types/src/testing/fixtures/invitations.js +8 -12
- package/dist/types/src/testing/fixtures/invitations.js.map +1 -1
- package/dist/types/src/testing/index.js +2 -18
- package/dist/types/src/testing/index.js.map +1 -1
- package/dist/types/src/testing/scoped-shell-manager.js +1 -5
- package/dist/types/src/testing/scoped-shell-manager.js.map +1 -1
- package/dist/types/src/testing/shell-manager.js +11 -15
- package/dist/types/src/testing/shell-manager.js.map +1 -1
- package/dist/types/src/translations/index.js +2 -38
- package/dist/types/src/translations/index.js.map +1 -1
- package/dist/types/src/translations/locales/en-US.d.ts +1 -0
- package/dist/types/src/translations/locales/en-US.d.ts.map +1 -1
- package/dist/types/src/translations/locales/en-US.js +4 -6
- package/dist/types/src/translations/locales/en-US.js.map +1 -1
- package/dist/types/src/types/FailReason.js +0 -2
- package/dist/types/src/types/FailReason.js.map +1 -1
- package/dist/types/src/types/IInvitation.js +0 -2
- package/dist/types/src/types/IInvitation.js.map +1 -1
- package/dist/types/src/types/index.js +2 -18
- package/dist/types/src/types/index.js.map +1 -1
- package/dist/types/src/util/index.js +1 -17
- package/dist/types/src/util/index.js.map +1 -1
- package/dist/types/src/util/invitationStatusValue.js +11 -14
- package/dist/types/src/util/invitationStatusValue.js.map +1 -1
- package/package.json +30 -27
- package/src/panels/IdentityPanel/IdentityPanel.tsx +19 -5
- package/src/translations/locales/en-US.ts +3 -2
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Actions = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
2
|
//
|
|
6
3
|
// Copyright 2023 DXOS.org
|
|
7
4
|
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const Actions =
|
|
11
|
-
return ((
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
|
+
import { mx } from '@dxos/react-ui-theme';
|
|
7
|
+
const Actions = forwardRef(({ classNames, children, ...props }, forwardedRef) => {
|
|
8
|
+
return (_jsx("div", { ...props, className: mx('flex flex-col gap-2 mbs-2', Array.isArray(children) && children.length > 1 ? 'justify-between' : 'justify-center', classNames), ref: forwardedRef, children: children }));
|
|
12
9
|
});
|
|
13
|
-
|
|
10
|
+
export { Actions };
|
|
14
11
|
//# sourceMappingURL=Actions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Actions.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Actions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Actions.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Actions.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAc,EAAiC,UAAU,EAAkB,MAAM,OAAO,CAAC;AAGzF,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAM1C,MAAM,OAAO,GAAG,UAAU,CAA+B,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE;IAC5G,OAAO,CACL,iBACM,KAAK,EACT,SAAS,EAAE,EAAE,CACX,2BAA2B,EAC3B,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,EACrF,UAAU,CACX,EACD,GAAG,EAAE,YAAY,YAEhB,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CloseButton = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
2
|
//
|
|
6
3
|
// Copyright 2023 DXOS.org
|
|
7
4
|
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const CloseButton = ({ onDone, ...props }) => {
|
|
12
|
-
const { t } =
|
|
13
|
-
return ((
|
|
5
|
+
import { X } from '@phosphor-icons/react';
|
|
6
|
+
import { Button, useTranslation } from '@dxos/react-ui';
|
|
7
|
+
import { getSize, mx } from '@dxos/react-ui-theme';
|
|
8
|
+
export const CloseButton = ({ onDone, ...props }) => {
|
|
9
|
+
const { t } = useTranslation('os');
|
|
10
|
+
return (_jsxs(Button, { variant: 'ghost', classNames: mx('plb-0 pli-2 absolute block-start-0 inline-end-0 z-[1]'), onClick: () => onDone === null || onDone === void 0 ? void 0 : onDone(), ...props, children: [_jsx(X, { weight: 'bold', className: getSize(4) }), _jsx("span", { className: 'sr-only', children: t('exit label') })] }));
|
|
14
11
|
};
|
|
15
|
-
exports.CloseButton = CloseButton;
|
|
16
12
|
//# sourceMappingURL=CloseButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloseButton.js","sourceRoot":"","sources":["../../../../../src/components/Panel/CloseButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CloseButton.js","sourceRoot":"","sources":["../../../../../src/components/Panel/CloseButton.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,CAAC,EAAE,MAAM,uBAAuB,CAAC;AAG1C,OAAO,EAAE,MAAM,EAAoB,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,EAA0D,EAAE,EAAE;IAC1G,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IACnC,OAAO,CACL,MAAC,MAAM,IACL,OAAO,EAAC,OAAO,EACf,UAAU,EAAE,EAAE,CAAC,uDAAuD,CAAC,EACvE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,EAAI,KACrB,KAAK,aAET,KAAC,CAAC,IAAC,MAAM,EAAC,MAAM,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,GAAI,EAC1C,eAAM,SAAS,EAAC,SAAS,YAAE,CAAC,CAAC,YAAY,CAAC,GAAQ,IAC3C,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_ui_theme_1 = require("@dxos/react-ui-theme");
|
|
6
|
-
const Emoji = ({ text, className }) => {
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { mx, getSize } from '@dxos/react-ui-theme';
|
|
3
|
+
export const Emoji = ({ text, className }) => {
|
|
7
4
|
const size = 14;
|
|
8
|
-
return ((
|
|
5
|
+
return (_jsx("div", { role: 'none', className: mx(getSize(size), 'rounded relative pointer-events-none', className), children: _jsx("svg", { viewBox: `0 0 ${size * 4} ${size * 4}`, width: size * 4, height: size * 4, children: _jsx("text", { x: '50%', y: '50%', textAnchor: 'middle', dominantBaseline: 'middle', baselineShift: '-0.25rem', fontSize: '2.25rem', children: text }) }) }));
|
|
9
6
|
};
|
|
10
|
-
|
|
11
|
-
const Centered = (props) => {
|
|
7
|
+
export const Centered = (props) => {
|
|
12
8
|
const { children } = props;
|
|
13
|
-
return ((
|
|
9
|
+
return (_jsx("div", { role: 'none', className: 'absolute inset-0 flex items-center justify-center', children: children }));
|
|
14
10
|
};
|
|
15
|
-
exports.Centered = Centered;
|
|
16
11
|
//# sourceMappingURL=Emoji.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Emoji.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Emoji.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Emoji.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Emoji.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAyC,EAAE,EAAE;IAClF,MAAM,IAAI,GAAG,EAAE,CAAC;IAChB,OAAO,CACL,cAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,sCAAsC,EAAE,SAAS,CAAC,YAC9F,cAAK,OAAO,EAAE,OAAO,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,GAAG,CAAC,YAC5E,eACE,CAAC,EAAC,KAAK,EACP,CAAC,EAAC,KAAK,EACP,UAAU,EAAC,QAAQ,EACnB,gBAAgB,EAAC,QAAQ,EACzB,aAAa,EAAE,UAAU,EACzB,QAAQ,EAAE,SAAS,YAElB,IAAI,GACA,GACH,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAwB,EAAE,EAAE;IACnD,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,OAAO,CACL,cAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,mDAAmD,YAC3E,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Heading = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
2
|
//
|
|
6
3
|
// Copyright 2023 DXOS.org
|
|
7
4
|
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return ((
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
|
+
import { descriptionText, mx } from '@dxos/react-ui-theme';
|
|
7
|
+
export const Heading = forwardRef(({ titleId, title, titleSrOnly, children, corner }, forwardedRef) => {
|
|
8
|
+
return (_jsxs("div", { role: 'none', className: 'pbe-2 relative', ref: forwardedRef, children: [corner, _jsx("h1", { ...(!titleSrOnly && { id: titleId }), className: mx(descriptionText, 'text-center mlb-2', titleSrOnly && 'invisible'), children: title }), titleSrOnly && _jsx("span", { id: titleId, children: title }), children] }));
|
|
12
9
|
});
|
|
13
10
|
//# sourceMappingURL=Heading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Heading.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Heading.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAc,EAAE,UAAU,EAA0C,MAAM,OAAO,CAAC;AAElF,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAS3D,MAAM,CAAC,MAAM,OAAO,GAAG,UAAU,CAC/B,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,EAAE;IAClE,OAAO,CACL,eAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,gBAAgB,EAAC,GAAG,EAAE,YAAY,aAC1D,MAAM,EACP,gBACM,CAAC,CAAC,WAAW,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EACrC,SAAS,EAAE,EAAE,CAAC,eAAe,EAAE,mBAAmB,EAAE,WAAW,IAAI,WAAW,CAAC,YAE9E,KAAK,GACH,EACJ,WAAW,IAAI,eAAM,EAAE,EAAE,OAAO,YAAG,KAAK,GAAQ,EAChD,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const react_ui_1 = require("@dxos/react-ui");
|
|
6
|
-
const Input = ({ validationMessage, label, ...props }) => {
|
|
7
|
-
return ((0, jsx_runtime_1.jsxs)(react_ui_1.Input.Root, { children: [(0, jsx_runtime_1.jsx)(react_ui_1.Input.Label, { children: label }), (0, jsx_runtime_1.jsx)(react_ui_1.Input.TextInput, { ...props, classNames: 'plb-3 mbs-2 text-center' }), (0, jsx_runtime_1.jsx)(react_ui_1.Input.DescriptionAndValidation, { children: validationMessage && (0, jsx_runtime_1.jsx)(react_ui_1.Input.Validation, { children: validationMessage }) })] }));
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Input as UiInput } from '@dxos/react-ui';
|
|
3
|
+
export const Input = ({ validationMessage, label, ...props }) => {
|
|
4
|
+
return (_jsxs(UiInput.Root, { children: [_jsx(UiInput.Label, { children: label }), _jsx(UiInput.TextInput, { ...props, classNames: 'plb-3 mbs-2 text-center' }), _jsx(UiInput.DescriptionAndValidation, { children: validationMessage && _jsx(UiInput.Validation, { children: validationMessage }) })] }));
|
|
8
5
|
};
|
|
9
|
-
exports.Input = Input;
|
|
10
6
|
//# sourceMappingURL=Input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Input.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,KAAK,IAAI,OAAO,EAAuB,MAAM,gBAAgB,CAAC;AAUvE,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG,KAAK,EAAmB,EAAE,EAAE;IAC/E,OAAO,CACL,MAAC,OAAO,CAAC,IAAI,eACX,KAAC,OAAO,CAAC,KAAK,cAAE,KAAK,GAAiB,EACtC,KAAC,OAAO,CAAC,SAAS,OAAK,KAAK,EAAE,UAAU,EAAC,yBAAyB,GAAG,EACrE,KAAC,OAAO,CAAC,wBAAwB,cAC9B,iBAAiB,IAAI,KAAC,OAAO,CAAC,UAAU,cAAE,iBAAiB,GAAsB,GACjD,IACtB,CAChB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_ui_theme_1 = require("@dxos/react-ui-theme");
|
|
6
|
-
const Label = (props) => {
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { descriptionText, mx } from '@dxos/react-ui-theme';
|
|
3
|
+
export const Label = (props) => {
|
|
7
4
|
const { children } = props;
|
|
8
|
-
return (
|
|
5
|
+
return _jsx("span", { className: mx(descriptionText, 'text-center mli-6 whitespace-normal'), children: children });
|
|
9
6
|
};
|
|
10
|
-
exports.Label = Label;
|
|
11
7
|
//# sourceMappingURL=Label.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Label.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Label.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Label.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAI3D,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,KAAiB,EAAE,EAAE;IACzC,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,OAAO,eAAM,SAAS,EAAE,EAAE,CAAC,eAAe,EAAE,qCAAqC,CAAC,YAAG,QAAQ,GAAQ,CAAC;AACxG,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import '@dxos-theme';
|
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
4
|
component: (props: import("../StorybookDialog").StorybookDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
decorators: import("@storybook/react
|
|
5
|
+
decorators: import("@storybook/react").Decorator[];
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
8
|
export declare const Normal: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,28 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Primary = exports.Normal = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
2
|
//
|
|
6
3
|
// Copyright 2023 DXOS.org
|
|
7
4
|
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
import '@dxos-theme';
|
|
6
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
7
|
+
import { Action } from './Action';
|
|
8
|
+
import { Actions } from './Actions';
|
|
9
|
+
import { Heading } from './Heading';
|
|
10
|
+
import { Label } from './Label';
|
|
11
|
+
import { StorybookDialog } from '../StorybookDialog';
|
|
12
|
+
export default {
|
|
16
13
|
title: 'sdk/shell/StorybookDialog',
|
|
17
|
-
component:
|
|
18
|
-
decorators: [
|
|
14
|
+
component: StorybookDialog,
|
|
15
|
+
decorators: [withTheme],
|
|
19
16
|
};
|
|
20
|
-
const Normal = (props) => {
|
|
21
|
-
return ((
|
|
17
|
+
export const Normal = (props) => {
|
|
18
|
+
return (_jsxs(StorybookDialog, { ...props, children: [_jsx(Heading, { title: 'Panel heading', titleId: 'panel-heading' }), _jsxs("div", { className: 'p-3 text-center', children: [_jsx(Label, { children: "Lorem ipsum" }), _jsxs(Actions, { children: [_jsx(Action, { variant: 'ghost', children: "Ghost" }), _jsx(Action, { children: "Normal" })] })] })] }));
|
|
22
19
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ((0, jsx_runtime_1.jsxs)(StorybookDialog_1.StorybookDialog, { ...props, children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { title: 'Panel heading', titleId: 'panel-heading' }), (0, jsx_runtime_1.jsxs)("div", { className: 'p-3 text-center', children: [(0, jsx_runtime_1.jsx)(Label_1.Label, { children: "Lorem ipsum" }), (0, jsx_runtime_1.jsxs)(Actions_1.Actions, { children: [(0, jsx_runtime_1.jsx)(Action_1.Action, { variant: 'ghost', children: "Ghost" }), (0, jsx_runtime_1.jsx)(Action_1.Action, { variant: 'primary', children: "Primary" })] })] })] }));
|
|
20
|
+
export const Primary = (props) => {
|
|
21
|
+
return (_jsxs(StorybookDialog, { ...props, children: [_jsx(Heading, { title: 'Panel heading', titleId: 'panel-heading' }), _jsxs("div", { className: 'p-3 text-center', children: [_jsx(Label, { children: "Lorem ipsum" }), _jsxs(Actions, { children: [_jsx(Action, { variant: 'ghost', children: "Ghost" }), _jsx(Action, { variant: 'primary', children: "Primary" })] })] })] }));
|
|
26
22
|
};
|
|
27
|
-
exports.Primary = Primary;
|
|
28
23
|
//# sourceMappingURL=Panel.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.stories.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Panel.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Panel.stories.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Panel.stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,aAAa,CAAC;AAIrB,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,eAAe;IACb,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,eAAe;IAC1B,UAAU,EAAE,CAAC,SAAS,CAAC;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAU,EAAE,EAAE;IACnC,OAAO,CACL,MAAC,eAAe,OAAK,KAAK,aACxB,KAAC,OAAO,IAAC,KAAK,EAAC,eAAe,EAAC,OAAO,EAAC,eAAe,GAAW,EACjE,eAAK,SAAS,EAAC,iBAAiB,aAC9B,KAAC,KAAK,8BAAoB,EAC1B,MAAC,OAAO,eACN,KAAC,MAAM,IAAC,OAAO,EAAC,OAAO,sBAAe,EACtC,KAAC,MAAM,yBAAgB,IACf,IACN,IACU,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAU,EAAE,EAAE;IACpC,OAAO,CACL,MAAC,eAAe,OAAK,KAAK,aACxB,KAAC,OAAO,IAAC,KAAK,EAAC,eAAe,EAAC,OAAO,EAAC,eAAe,GAAW,EACjE,eAAK,SAAS,EAAC,iBAAiB,aAC9B,KAAC,KAAK,8BAAoB,EAC1B,MAAC,OAAO,eACN,KAAC,MAAM,IAAC,OAAO,EAAC,OAAO,sBAAe,EACtC,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,wBAAiB,IAClC,IACN,IACU,CACnB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StepHeading = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
2
|
//
|
|
6
3
|
// Copyright 2023 DXOS.org
|
|
7
4
|
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return ((
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
|
+
import { mx } from '@dxos/react-ui-theme';
|
|
7
|
+
export const StepHeading = forwardRef(({ children, className, ...props }, forwardedRef) => {
|
|
8
|
+
return (_jsx("h2", { ...props, className: mx('font-normal text-sm mbe-4 mli-1 text-center', className), ref: forwardedRef, children: children }));
|
|
12
9
|
});
|
|
13
10
|
//# sourceMappingURL=StepHeading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepHeading.js","sourceRoot":"","sources":["../../../../../src/components/Panel/StepHeading.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StepHeading.js","sourceRoot":"","sources":["../../../../../src/components/Panel/StepHeading.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAc,EAA8B,UAAU,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAE1C,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CACnC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE;IAClD,OAAO,CACL,gBAAQ,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,6CAA6C,EAAE,SAAS,CAAC,EAAE,GAAG,EAAE,YAAY,YACtG,QAAQ,GACN,CACN,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,28 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
__exportStar(require("./Action"), exports);
|
|
21
|
-
__exportStar(require("./Actions"), exports);
|
|
22
|
-
__exportStar(require("./CloseButton"), exports);
|
|
23
|
-
__exportStar(require("./Emoji"), exports);
|
|
24
|
-
__exportStar(require("./Heading"), exports);
|
|
25
|
-
__exportStar(require("./Label"), exports);
|
|
26
|
-
__exportStar(require("./Input"), exports);
|
|
27
|
-
__exportStar(require("./StepHeading"), exports);
|
|
4
|
+
export * from './Action';
|
|
5
|
+
export * from './Actions';
|
|
6
|
+
export * from './CloseButton';
|
|
7
|
+
export * from './Emoji';
|
|
8
|
+
export * from './Heading';
|
|
9
|
+
export * from './Label';
|
|
10
|
+
export * from './Input';
|
|
11
|
+
export * from './StepHeading';
|
|
28
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Panel/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Panel/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC"}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SpaceListItem = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
2
|
//
|
|
6
3
|
// Copyright 2023 DXOS.org
|
|
7
4
|
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
|
+
import { Avatar, useId } from '@dxos/react-ui';
|
|
7
|
+
import { mx } from '@dxos/react-ui-theme';
|
|
8
|
+
import { humanize, keyToEmoji } from '@dxos/util';
|
|
9
|
+
export const SpaceListItem = forwardRef(({ space, onClick }, ref) => {
|
|
13
10
|
var _a;
|
|
14
|
-
const fallbackValue =
|
|
15
|
-
const labelId =
|
|
16
|
-
const displayName = (_a = space.properties.name) !== null && _a !== void 0 ? _a :
|
|
17
|
-
return ((
|
|
11
|
+
const fallbackValue = keyToEmoji(space.key);
|
|
12
|
+
const labelId = useId('identityListItem__label');
|
|
13
|
+
const displayName = (_a = space.properties.name) !== null && _a !== void 0 ? _a : humanize(space.key.toHex());
|
|
14
|
+
return (_jsx("li", { className: mx('flex gap-2 items-center mbe-2', onClick && 'cursor-pointer'), onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(), ref: ref, "data-testid": 'space-list-item', children: _jsxs(Avatar.Root, { labelId: labelId, children: [_jsx(Avatar.Frame, { children: _jsx(Avatar.Fallback, { text: fallbackValue }) }), _jsx(Avatar.Label, { classNames: 'text-sm truncate', children: displayName })] }) }));
|
|
18
15
|
});
|
|
19
16
|
//# sourceMappingURL=SpaceListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpaceListItem.js","sourceRoot":"","sources":["../../../../src/components/SpaceListItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SpaceListItem.js","sourceRoot":"","sources":["../../../../src/components/SpaceListItem.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAc,EAAqB,UAAU,EAAE,MAAM,OAAO,CAAC;AAG7D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CACrC,CAAC,EAAE,KAAK,EAAE,OAAO,EAA0C,EAAE,GAAgC,EAAE,EAAE;;IAC/F,MAAM,aAAa,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC5C,MAAM,OAAO,GAAG,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACjD,MAAM,WAAW,GAAG,MAAA,KAAK,CAAC,UAAU,CAAC,IAAI,mCAAI,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC;IAEzE,OAAO,CACL,aACE,SAAS,EAAE,EAAE,CAAC,+BAA+B,EAAE,OAAO,IAAI,gBAAgB,CAAC,EAC3E,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,EAAI,EAC1B,GAAG,EAAE,GAAG,iBACI,iBAAiB,YAE7B,MAAC,MAAM,CAAC,IAAI,IAAC,OAAO,EAAE,OAAO,aAC3B,KAAC,MAAM,CAAC,KAAK,cACX,KAAC,MAAM,CAAC,QAAQ,IAAC,IAAI,EAAE,aAAa,GAAI,GAC3B,EACf,KAAC,MAAM,CAAC,KAAK,IAAC,UAAU,EAAC,kBAAkB,YAAE,WAAW,GAAgB,IAC5D,GACX,CACN,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.StorybookDialog = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_ui_1 = require("@dxos/react-ui");
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Clipboard, ElevationProvider, Tooltip, useThemeContext } from '@dxos/react-ui';
|
|
6
3
|
// TODO(burdon): Move out of components.
|
|
7
|
-
const StorybookDialog = (props) => {
|
|
4
|
+
export const StorybookDialog = (props) => {
|
|
8
5
|
const { inOverlayLayout = false } = props;
|
|
9
|
-
const { tx } =
|
|
10
|
-
return ((
|
|
6
|
+
const { tx } = useThemeContext();
|
|
7
|
+
return (_jsx(Tooltip.Provider, { children: _jsx(ElevationProvider, { elevation: 'dialog', children: _jsx(Clipboard.Provider, { children: _jsx("div", { role: 'group', className: tx('dialog.content', 'dialog', { inOverlayLayout }, 'p-1', inOverlayLayout ? 'm-4' : ''), children: props.children }) }) }) }));
|
|
11
8
|
};
|
|
12
|
-
exports.StorybookDialog = StorybookDialog;
|
|
13
9
|
//# sourceMappingURL=StorybookDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorybookDialog.js","sourceRoot":"","sources":["../../../../src/components/StorybookDialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StorybookDialog.js","sourceRoot":"","sources":["../../../../src/components/StorybookDialog.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAMxF,wCAAwC;AACxC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAA2B,EAAE,EAAE;IAC7D,MAAM,EAAE,eAAe,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IAC1C,MAAM,EAAE,EAAE,EAAE,GAAG,eAAe,EAAE,CAAC;IACjC,OAAO,CACL,KAAC,OAAO,CAAC,QAAQ,cACf,KAAC,iBAAiB,IAAC,SAAS,EAAC,QAAQ,YACnC,KAAC,SAAS,CAAC,QAAQ,cACjB,cACE,IAAI,EAAC,OAAO,EACZ,SAAS,EAAE,EAAE,CAAC,gBAAgB,EAAE,QAAQ,EAAE,EAAE,eAAe,EAAE,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,YAElG,KAAK,CAAC,QAAQ,GACX,GACa,GACH,GACH,CACpB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,50 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createViewportScope = exports.useViewportContext = exports.Viewport = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
2
|
//
|
|
6
3
|
// Copyright 2023 DXOS.org
|
|
7
4
|
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
import { useFocusFinders } from '@fluentui/react-tabster';
|
|
6
|
+
import { createContextScope } from '@radix-ui/react-context';
|
|
7
|
+
import { useControllableState } from '@radix-ui/react-use-controllable-state';
|
|
8
|
+
import { forwardRef, useEffect, } from 'react';
|
|
9
|
+
import { useForwardedRef } from '@dxos/react-ui';
|
|
10
|
+
import { mx } from '@dxos/react-ui-theme';
|
|
14
11
|
const VIEWPORT_NAME = 'Viewport';
|
|
15
12
|
const VIEWS_NAME = 'ViewportViews';
|
|
16
13
|
const VIEW_NAME = 'ViewportView';
|
|
17
|
-
const [createViewportContext, createViewportScope] =
|
|
18
|
-
exports.createViewportScope = createViewportScope;
|
|
14
|
+
const [createViewportContext, createViewportScope] = createContextScope(VIEWPORT_NAME, []);
|
|
19
15
|
const [ViewportProvider, useViewportContext] = createViewportContext(VIEWPORT_NAME);
|
|
20
|
-
exports.useViewportContext = useViewportContext;
|
|
21
16
|
const ViewportRoot = ({ __viewportScope, classNames, children, defaultActiveView, activeView: propsActiveView, focusManaged = false, onActiveViewChange, ...props }) => {
|
|
22
|
-
const [activeView = 'never', setActiveView] =
|
|
17
|
+
const [activeView = 'never', setActiveView] = useControllableState({
|
|
23
18
|
prop: propsActiveView,
|
|
24
19
|
defaultProp: defaultActiveView,
|
|
25
20
|
onChange: onActiveViewChange,
|
|
26
21
|
});
|
|
27
|
-
return ((
|
|
22
|
+
return (_jsx(ViewportProvider, { focusManaged: focusManaged, activeView: activeView, setActiveView: setActiveView, scope: __viewportScope, children: _jsx("div", { role: 'region', "aria-live": 'polite', ...props, className: mx('is-full overflow-hidden', classNames), children: children }) }));
|
|
28
23
|
};
|
|
29
24
|
ViewportRoot.displayName = VIEWPORT_NAME;
|
|
30
25
|
const ViewportViews = ({ classNames, children, ...props }) => {
|
|
31
26
|
const size = { inlineSize: `${Math.ceil(children.length) * 100}%` };
|
|
32
|
-
return ((
|
|
27
|
+
return (_jsx("div", { role: 'none', style: size, ...props, className: mx('flex', classNames), children: children }));
|
|
33
28
|
};
|
|
34
29
|
ViewportViews.displayName = VIEWS_NAME;
|
|
35
|
-
const ViewportView =
|
|
30
|
+
const ViewportView = forwardRef(({ __viewportScope, classNames, children, id, ...props }, forwardedRef) => {
|
|
36
31
|
const { activeView, focusManaged } = useViewportContext(VIEW_NAME, __viewportScope);
|
|
37
32
|
const isActive = id === activeView;
|
|
38
|
-
const ref =
|
|
39
|
-
const { findFirstFocusable } =
|
|
40
|
-
|
|
33
|
+
const ref = useForwardedRef(forwardedRef);
|
|
34
|
+
const { findFirstFocusable } = useFocusFinders();
|
|
35
|
+
useEffect(() => {
|
|
41
36
|
var _a;
|
|
42
37
|
if (!focusManaged && isActive && document.body.hasAttribute('data-is-keyboard') && ref.current) {
|
|
43
38
|
(_a = findFirstFocusable(ref.current)) === null || _a === void 0 ? void 0 : _a.focus();
|
|
44
39
|
}
|
|
45
40
|
}, [focusManaged, ref.current, isActive]);
|
|
46
|
-
return ((
|
|
41
|
+
return (_jsx("section", { ...props, ...(!isActive && { 'aria-hidden': true }), className: mx('min-is-0 flex-1 flex flex-col', isActive ? 'order-2' : 'order-4 invisible', classNames), ref: ref, children: children }));
|
|
47
42
|
});
|
|
48
43
|
ViewportView.displayName = VIEW_NAME;
|
|
49
|
-
|
|
44
|
+
export const Viewport = { Root: ViewportRoot, Views: ViewportViews, View: ViewportView };
|
|
45
|
+
export { useViewportContext, createViewportScope };
|
|
50
46
|
//# sourceMappingURL=Viewport.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Viewport.js","sourceRoot":"","sources":["../../../../../src/components/Viewport/Viewport.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Viewport.js","sourceRoot":"","sources":["../../../../../src/components/Viewport/Viewport.tsx"],"names":[],"mappings":"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"}
|
|
@@ -3,7 +3,7 @@ type StorybookViewportProps = {};
|
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: (props: StorybookViewportProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
decorators: import("@storybook/react
|
|
6
|
+
decorators: import("@storybook/react").Decorator[];
|
|
7
7
|
parameters: {
|
|
8
8
|
chromatic: {
|
|
9
9
|
disableSnapshot: boolean;
|
|
@@ -1,29 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Default = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
2
|
//
|
|
6
3
|
// Copyright 2023 DXOS.org
|
|
7
4
|
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
import '@dxos-theme';
|
|
6
|
+
import { AlertDialog } from '@dxos/react-ui';
|
|
7
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
8
|
+
import { useViewportContext, Viewport } from './Viewport';
|
|
9
|
+
import { Action } from '../Panel';
|
|
13
10
|
const Views = ({ __viewportScope }) => {
|
|
14
|
-
const { setActiveView } =
|
|
15
|
-
return ((
|
|
11
|
+
const { setActiveView } = useViewportContext('StorybookViews', __viewportScope);
|
|
12
|
+
return (_jsxs(Viewport.Views, { children: [_jsxs(Viewport.View, { id: 'one', classNames: 'p-4', children: [_jsx("p", { children: "One" }), _jsx("p", { className: 'invisible', children: "Two" }), _jsx("p", { className: 'invisible', children: "Three" }), _jsx(Action, { onClick: () => setActiveView('two'), children: "Next" })] }), _jsxs(Viewport.View, { id: 'two', classNames: 'p-4', children: [_jsx("p", { className: 'invisible', children: "One" }), _jsx("p", { children: "Two" }), _jsx("p", { className: 'invisible', children: "Three" }), _jsx(Action, { onClick: () => setActiveView('three'), children: "Next" })] }), _jsxs(Viewport.View, { id: 'three', classNames: 'p-4', children: [_jsx("p", { className: 'invisible', children: "One" }), _jsx("p", { className: 'invisible', children: "Two" }), _jsx("p", { children: "Three" }), _jsx(Action, { onClick: () => setActiveView('one'), children: "Next" })] })] }));
|
|
16
13
|
};
|
|
17
14
|
const StorybookViewport = (props) => {
|
|
18
|
-
return ((
|
|
15
|
+
return (_jsx(AlertDialog.Root, { defaultOpen: true, children: _jsx(AlertDialog.Overlay, { children: _jsx(AlertDialog.Content, { classNames: 'p-0', children: _jsx(Viewport.Root, { defaultActiveView: 'one', children: _jsx(Views, {}) }) }) }) }));
|
|
19
16
|
};
|
|
20
|
-
|
|
17
|
+
export default {
|
|
21
18
|
title: 'sdk/shell/StorybookViewport',
|
|
22
19
|
component: StorybookViewport,
|
|
23
|
-
decorators: [
|
|
20
|
+
decorators: [withTheme],
|
|
24
21
|
parameters: { chromatic: { disableSnapshot: false } },
|
|
25
22
|
};
|
|
26
|
-
|
|
23
|
+
export const Default = {
|
|
27
24
|
args: {},
|
|
28
25
|
};
|
|
29
26
|
//# sourceMappingURL=Viewport.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Viewport.stories.js","sourceRoot":"","sources":["../../../../../src/components/Viewport/Viewport.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Viewport.stories.js","sourceRoot":"","sources":["../../../../../src/components/Viewport/Viewport.stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,aAAa,CAAC;AAIrB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAA4B,MAAM,YAAY,CAAC;AACpF,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,MAAM,KAAK,GAAG,CAAC,EAAE,eAAe,EAA2B,EAAE,EAAE;IAC7D,MAAM,EAAE,aAAa,EAAE,GAAG,kBAAkB,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;IAChF,OAAO,CACL,MAAC,QAAQ,CAAC,KAAK,eACb,MAAC,QAAQ,CAAC,IAAI,IAAC,EAAE,EAAC,KAAK,EAAC,UAAU,EAAC,KAAK,aACtC,8BAAU,EACV,YAAG,SAAS,EAAC,WAAW,oBAAQ,EAChC,YAAG,SAAS,EAAC,WAAW,sBAAU,EAClC,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,qBAAe,IAC5C,EAChB,MAAC,QAAQ,CAAC,IAAI,IAAC,EAAE,EAAC,KAAK,EAAC,UAAU,EAAC,KAAK,aACtC,YAAG,SAAS,EAAC,WAAW,oBAAQ,EAChC,8BAAU,EACV,YAAG,SAAS,EAAC,WAAW,sBAAU,EAClC,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,qBAAe,IAC9C,EAChB,MAAC,QAAQ,CAAC,IAAI,IAAC,EAAE,EAAC,OAAO,EAAC,UAAU,EAAC,KAAK,aACxC,YAAG,SAAS,EAAC,WAAW,oBAAQ,EAChC,YAAG,SAAS,EAAC,WAAW,oBAAQ,EAChC,gCAAY,EACZ,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,qBAAe,IAC5C,IACD,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,KAA6B,EAAE,EAAE;IAC1D,OAAO,CACL,KAAC,WAAW,CAAC,IAAI,IAAC,WAAW,kBAC3B,KAAC,WAAW,CAAC,OAAO,cAClB,KAAC,WAAW,CAAC,OAAO,IAAC,UAAU,EAAC,KAAK,YACnC,KAAC,QAAQ,CAAC,IAAI,IAAC,iBAAiB,EAAC,KAAK,YACpC,KAAC,KAAK,KAAG,GACK,GACI,GACF,GACL,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe;IACb,KAAK,EAAE,6BAA6B;IACpC,SAAS,EAAE,iBAAiB;IAC5B,UAAU,EAAE,CAAC,SAAS,CAAC;IACvB,UAAU,EAAE,EAAE,SAAS,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE;CACtD,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,EAAE;CACT,CAAC"}
|
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
|
-
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
__exportStar(require("./Viewport"), exports);
|
|
4
|
+
export * from './Viewport';
|
|
21
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Viewport/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Viewport/index.tsx"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,YAAY,CAAC"}
|