@dxos/react-ui 0.1.20 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -137
- package/dist/lib/browser/index.mjs +160 -2022
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/components/IdentityListItem/IdentityListItem.d.ts +6 -0
- package/dist/types/src/components/IdentityListItem/IdentityListItem.d.ts.map +1 -0
- package/dist/types/src/components/IdentityListItem/IdentityListItem.stories.d.ts +20 -0
- package/dist/types/src/components/IdentityListItem/IdentityListItem.stories.d.ts.map +1 -0
- package/dist/types/src/composites/IdentityPopover/IdentityPopover.d.ts +9 -0
- package/dist/types/src/composites/IdentityPopover/IdentityPopover.d.ts.map +1 -0
- package/dist/types/src/composites/IdentityPopover/index.d.ts +2 -0
- package/dist/types/src/composites/IdentityPopover/index.d.ts.map +1 -0
- package/dist/types/src/composites/index.d.ts +2 -0
- package/dist/types/src/composites/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +4 -4
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/layouts/PanelPopover/PanelPopover.d.ts +11 -0
- package/dist/types/src/layouts/PanelPopover/PanelPopover.d.ts.map +1 -0
- package/dist/types/src/layouts/PanelPopover/index.d.ts +2 -0
- package/dist/types/src/layouts/PanelPopover/index.d.ts.map +1 -0
- package/dist/types/src/layouts/PanelSidebar/PanelSidebar.d.ts +20 -0
- package/dist/types/src/layouts/PanelSidebar/PanelSidebar.d.ts.map +1 -0
- package/dist/types/src/layouts/PanelSidebar/index.d.ts +2 -0
- package/dist/types/src/layouts/PanelSidebar/index.d.ts.map +1 -0
- package/dist/types/src/layouts/index.d.ts +3 -0
- package/dist/types/src/layouts/index.d.ts.map +1 -0
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts +6 -0
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -0
- package/dist/types/src/panels/IdentityPanel/index.d.ts +2 -0
- package/dist/types/src/panels/IdentityPanel/index.d.ts.map +1 -0
- package/dist/types/src/panels/index.d.ts +2 -0
- package/dist/types/src/panels/index.d.ts.map +1 -0
- package/dist/types/src/styles/index.d.ts +1 -11
- package/dist/types/src/styles/index.d.ts.map +1 -1
- package/dist/types/src/styles/panelStyles.d.ts +3 -0
- package/dist/types/src/styles/panelStyles.d.ts.map +1 -0
- package/dist/types/src/testing/ClientProvider.d.ts +3 -0
- package/dist/types/src/testing/ClientProvider.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +1 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/translations/index.d.ts +5 -0
- package/dist/types/src/translations/index.d.ts.map +1 -0
- package/dist/types/src/translations/locales/en-US.d.ts +6 -0
- package/dist/types/src/translations/locales/en-US.d.ts.map +1 -0
- package/package.json +16 -32
- package/src/components/IdentityListItem/IdentityListItem.stories.tsx +23 -0
- package/src/components/IdentityListItem/IdentityListItem.tsx +32 -0
- package/src/composites/IdentityPopover/IdentityPopover.tsx +54 -0
- package/src/composites/IdentityPopover/index.ts +5 -0
- package/src/composites/index.ts +4 -0
- package/src/index.ts +4 -4
- package/src/layouts/PanelPopover/PanelPopover.tsx +40 -0
- package/src/layouts/PanelPopover/index.ts +5 -0
- package/src/layouts/PanelSidebar/PanelSidebar.tsx +126 -0
- package/src/layouts/PanelSidebar/index.ts +5 -0
- package/src/layouts/index.ts +6 -0
- package/src/panels/IdentityPanel/IdentityPanel.tsx +39 -0
- package/src/panels/IdentityPanel/index.ts +5 -0
- package/src/panels/index.ts +5 -0
- package/src/styles/index.ts +2 -12
- package/src/styles/panelStyles.ts +6 -0
- package/src/testing/ClientProvider.tsx +18 -0
- package/src/testing/index.ts +1 -1
- package/src/translations/index.ts +7 -0
- package/src/translations/locales/en-US.ts +9 -0
- package/dist/plugin/node/esbuild-plugin.cjs +0 -469
- package/dist/plugin/node/esbuild-plugin.cjs.map +0 -7
- package/dist/plugin/node/meta.json +0 -1
- package/dist/plugin/node/plugin.cjs +0 -460
- package/dist/plugin/node/plugin.cjs.map +0 -7
- package/dist/plugin/node/theme.css +0 -61
- package/dist/plugin/node/theme.css.map +0 -7
- package/dist/types/src/components/Alert/Alert.d.ts +0 -15
- package/dist/types/src/components/Alert/Alert.d.ts.map +0 -1
- package/dist/types/src/components/Alert/Alert.stories.d.ts +0 -9
- package/dist/types/src/components/Alert/Alert.stories.d.ts.map +0 -1
- package/dist/types/src/components/Alert/index.d.ts +0 -2
- package/dist/types/src/components/Alert/index.d.ts.map +0 -1
- package/dist/types/src/components/AlertDialog/AlertDialog.d.ts +0 -26
- package/dist/types/src/components/AlertDialog/AlertDialog.d.ts.map +0 -1
- package/dist/types/src/components/AlertDialog/AlertDialog.stories.d.ts +0 -9
- package/dist/types/src/components/AlertDialog/AlertDialog.stories.d.ts.map +0 -1
- package/dist/types/src/components/AlertDialog/index.d.ts +0 -2
- package/dist/types/src/components/AlertDialog/index.d.ts.map +0 -1
- package/dist/types/src/components/Avatar/Avatar.d.ts +0 -22
- package/dist/types/src/components/Avatar/Avatar.d.ts.map +0 -1
- package/dist/types/src/components/Avatar/Avatar.stories.d.ts +0 -12
- package/dist/types/src/components/Avatar/Avatar.stories.d.ts.map +0 -1
- package/dist/types/src/components/Avatar/index.d.ts +0 -2
- package/dist/types/src/components/Avatar/index.d.ts.map +0 -1
- package/dist/types/src/components/Button/Button.d.ts +0 -4
- package/dist/types/src/components/Button/Button.d.ts.map +0 -1
- package/dist/types/src/components/Button/Button.stories.d.ts +0 -13
- package/dist/types/src/components/Button/Button.stories.d.ts.map +0 -1
- package/dist/types/src/components/Button/ButtonGroup.d.ts +0 -6
- package/dist/types/src/components/Button/ButtonGroup.d.ts.map +0 -1
- package/dist/types/src/components/Button/ButtonProps.d.ts +0 -7
- package/dist/types/src/components/Button/ButtonProps.d.ts.map +0 -1
- package/dist/types/src/components/Button/buttonStyles.d.ts +0 -6
- package/dist/types/src/components/Button/buttonStyles.d.ts.map +0 -1
- package/dist/types/src/components/Button/index.d.ts +0 -5
- package/dist/types/src/components/Button/index.d.ts.map +0 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.d.ts +0 -10
- package/dist/types/src/components/CompoundButton/CompoundButton.d.ts.map +0 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts +0 -10
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts.map +0 -1
- package/dist/types/src/components/CompoundButton/index.d.ts +0 -2
- package/dist/types/src/components/CompoundButton/index.d.ts.map +0 -1
- package/dist/types/src/components/Dialog/Dialog.d.ts +0 -26
- package/dist/types/src/components/Dialog/Dialog.d.ts.map +0 -1
- package/dist/types/src/components/Dialog/Dialog.stories.d.ts +0 -9
- package/dist/types/src/components/Dialog/Dialog.stories.d.ts.map +0 -1
- package/dist/types/src/components/Dialog/index.d.ts +0 -2
- package/dist/types/src/components/Dialog/index.d.ts.map +0 -1
- package/dist/types/src/components/Group/Group.d.ts +0 -10
- package/dist/types/src/components/Group/Group.d.ts.map +0 -1
- package/dist/types/src/components/Group/Group.stories.d.ts +0 -9
- package/dist/types/src/components/Group/Group.stories.d.ts.map +0 -1
- package/dist/types/src/components/Group/index.d.ts +0 -2
- package/dist/types/src/components/Group/index.d.ts.map +0 -1
- package/dist/types/src/components/Heading/Heading.d.ts +0 -266
- package/dist/types/src/components/Heading/Heading.d.ts.map +0 -1
- package/dist/types/src/components/Heading/Heading.stories.d.ts +0 -274
- package/dist/types/src/components/Heading/Heading.stories.d.ts.map +0 -1
- package/dist/types/src/components/Heading/index.d.ts +0 -2
- package/dist/types/src/components/Heading/index.d.ts.map +0 -1
- package/dist/types/src/components/Input/BarePinInput.d.ts +0 -314
- package/dist/types/src/components/Input/BarePinInput.d.ts.map +0 -1
- package/dist/types/src/components/Input/BareTextInput.d.ts +0 -7
- package/dist/types/src/components/Input/BareTextInput.d.ts.map +0 -1
- package/dist/types/src/components/Input/BareTextareaInput.d.ts +0 -7
- package/dist/types/src/components/Input/BareTextareaInput.d.ts.map +0 -1
- package/dist/types/src/components/Input/Input.d.ts +0 -4
- package/dist/types/src/components/Input/Input.d.ts.map +0 -1
- package/dist/types/src/components/Input/Input.stories.d.ts +0 -27
- package/dist/types/src/components/Input/Input.stories.d.ts.map +0 -1
- package/dist/types/src/components/Input/InputProps.d.ts +0 -37
- package/dist/types/src/components/Input/InputProps.d.ts.map +0 -1
- package/dist/types/src/components/Input/index.d.ts +0 -2
- package/dist/types/src/components/Input/index.d.ts.map +0 -1
- package/dist/types/src/components/Loading/Loading.d.ts +0 -15
- package/dist/types/src/components/Loading/Loading.d.ts.map +0 -1
- package/dist/types/src/components/Loading/Loading.stories.d.ts +0 -23
- package/dist/types/src/components/Loading/Loading.stories.d.ts.map +0 -1
- package/dist/types/src/components/Loading/index.d.ts +0 -2
- package/dist/types/src/components/Loading/index.d.ts.map +0 -1
- package/dist/types/src/components/NavMenu/NavMenu.d.ts +0 -39
- package/dist/types/src/components/NavMenu/NavMenu.d.ts.map +0 -1
- package/dist/types/src/components/NavMenu/NavMenu.stories.d.ts +0 -9
- package/dist/types/src/components/NavMenu/NavMenu.stories.d.ts.map +0 -1
- package/dist/types/src/components/NavMenu/index.d.ts +0 -2
- package/dist/types/src/components/NavMenu/index.d.ts.map +0 -1
- package/dist/types/src/components/Popover/Popover.d.ts +0 -21
- package/dist/types/src/components/Popover/Popover.d.ts.map +0 -1
- package/dist/types/src/components/Popover/Popover.stories.d.ts +0 -10
- package/dist/types/src/components/Popover/Popover.stories.d.ts.map +0 -1
- package/dist/types/src/components/Popover/index.d.ts +0 -2
- package/dist/types/src/components/Popover/index.d.ts.map +0 -1
- package/dist/types/src/components/QrCode/QrCode.d.ts +0 -39
- package/dist/types/src/components/QrCode/QrCode.d.ts.map +0 -1
- package/dist/types/src/components/QrCode/QrCode.stories.d.ts +0 -10
- package/dist/types/src/components/QrCode/QrCode.stories.d.ts.map +0 -1
- package/dist/types/src/components/QrCode/index.d.ts +0 -2
- package/dist/types/src/components/QrCode/index.d.ts.map +0 -1
- package/dist/types/src/components/Tag/Tag.d.ts +0 -8
- package/dist/types/src/components/Tag/Tag.d.ts.map +0 -1
- package/dist/types/src/components/Tag/Tag.stories.d.ts +0 -10
- package/dist/types/src/components/Tag/Tag.stories.d.ts.map +0 -1
- package/dist/types/src/components/Tag/index.d.ts +0 -2
- package/dist/types/src/components/Tag/index.d.ts.map +0 -1
- package/dist/types/src/components/Toast/Toast.d.ts +0 -25
- package/dist/types/src/components/Toast/Toast.d.ts.map +0 -1
- package/dist/types/src/components/Toast/Toast.stories.d.ts +0 -9
- package/dist/types/src/components/Toast/Toast.stories.d.ts.map +0 -1
- package/dist/types/src/components/Toast/index.d.ts +0 -2
- package/dist/types/src/components/Toast/index.d.ts.map +0 -1
- package/dist/types/src/components/Tooltip/Tooltip.d.ts +0 -19
- package/dist/types/src/components/Tooltip/Tooltip.d.ts.map +0 -1
- package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts +0 -9
- package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts.map +0 -1
- package/dist/types/src/components/Tooltip/index.d.ts +0 -2
- package/dist/types/src/components/Tooltip/index.d.ts.map +0 -1
- package/dist/types/src/components/UiProvider/UiProvider.d.ts +0 -10
- package/dist/types/src/components/UiProvider/UiProvider.d.ts.map +0 -1
- package/dist/types/src/components/UiProvider/index.d.ts +0 -2
- package/dist/types/src/components/UiProvider/index.d.ts.map +0 -1
- package/dist/types/src/components/index.d.ts +0 -18
- package/dist/types/src/components/index.d.ts.map +0 -1
- package/dist/types/src/config/index.d.ts +0 -2
- package/dist/types/src/config/index.d.ts.map +0 -1
- package/dist/types/src/config/tailwind.d.ts +0 -7
- package/dist/types/src/config/tailwind.d.ts.map +0 -1
- package/dist/types/src/esbuild-plugin.d.ts +0 -6
- package/dist/types/src/esbuild-plugin.d.ts.map +0 -1
- package/dist/types/src/hooks/index.d.ts +0 -4
- package/dist/types/src/hooks/index.d.ts.map +0 -1
- package/dist/types/src/hooks/useForwardedRef.d.ts +0 -2
- package/dist/types/src/hooks/useForwardedRef.d.ts.map +0 -1
- package/dist/types/src/hooks/useId.d.ts +0 -3
- package/dist/types/src/hooks/useId.d.ts.map +0 -1
- package/dist/types/src/hooks/useIsFocused.d.ts +0 -3
- package/dist/types/src/hooks/useIsFocused.d.ts.map +0 -1
- package/dist/types/src/plugin.d.ts +0 -9
- package/dist/types/src/plugin.d.ts.map +0 -1
- package/dist/types/src/props/Elevation.d.ts +0 -2
- package/dist/types/src/props/Elevation.d.ts.map +0 -1
- package/dist/types/src/props/MessageValence.d.ts +0 -2
- package/dist/types/src/props/MessageValence.d.ts.map +0 -1
- package/dist/types/src/props/Size.d.ts +0 -2
- package/dist/types/src/props/Size.d.ts.map +0 -1
- package/dist/types/src/props/index.d.ts +0 -4
- package/dist/types/src/props/index.d.ts.map +0 -1
- package/dist/types/src/styles/active.d.ts +0 -2
- package/dist/types/src/styles/active.d.ts.map +0 -1
- package/dist/types/src/styles/disabled.d.ts +0 -2
- package/dist/types/src/styles/disabled.d.ts.map +0 -1
- package/dist/types/src/styles/focus.d.ts +0 -3
- package/dist/types/src/styles/focus.d.ts.map +0 -1
- package/dist/types/src/styles/group.d.ts +0 -7
- package/dist/types/src/styles/group.d.ts.map +0 -1
- package/dist/types/src/styles/hover.d.ts +0 -4
- package/dist/types/src/styles/hover.d.ts.map +0 -1
- package/dist/types/src/styles/input.d.ts +0 -11
- package/dist/types/src/styles/input.d.ts.map +0 -1
- package/dist/types/src/styles/ornament.d.ts +0 -3
- package/dist/types/src/styles/ornament.d.ts.map +0 -1
- package/dist/types/src/styles/shimmer.d.ts +0 -3
- package/dist/types/src/styles/shimmer.d.ts.map +0 -1
- package/dist/types/src/styles/size.d.ts +0 -7
- package/dist/types/src/styles/size.d.ts.map +0 -1
- package/dist/types/src/styles/text.d.ts +0 -5
- package/dist/types/src/styles/text.d.ts.map +0 -1
- package/dist/types/src/styles/valence.d.ts +0 -19
- package/dist/types/src/styles/valence.d.ts.map +0 -1
- package/dist/types/src/testing/templateForComponent.d.ts +0 -4
- package/dist/types/src/testing/templateForComponent.d.ts.map +0 -1
- package/dist/types/src/util/index.d.ts +0 -2
- package/dist/types/src/util/index.d.ts.map +0 -1
- package/dist/types/src/util/mx.d.ts +0 -2
- package/dist/types/src/util/mx.d.ts.map +0 -1
- package/dist/types/src/util/withLogical.d.ts +0 -3
- package/dist/types/src/util/withLogical.d.ts.map +0 -1
- package/plugin.d.ts +0 -5
- package/plugin.js +0 -8
- package/src/components/Alert/Alert.stories.tsx +0 -31
- package/src/components/Alert/Alert.tsx +0 -40
- package/src/components/Alert/index.ts +0 -5
- package/src/components/AlertDialog/AlertDialog.stories.tsx +0 -35
- package/src/components/AlertDialog/AlertDialog.tsx +0 -147
- package/src/components/AlertDialog/index.ts +0 -5
- package/src/components/Avatar/Avatar.stories.tsx +0 -29
- package/src/components/Avatar/Avatar.tsx +0 -104
- package/src/components/Avatar/index.ts +0 -5
- package/src/components/Button/Button.stories.tsx +0 -45
- package/src/components/Button/Button.tsx +0 -20
- package/src/components/Button/ButtonGroup.tsx +0 -23
- package/src/components/Button/ButtonProps.ts +0 -11
- package/src/components/Button/buttonStyles.ts +0 -35
- package/src/components/Button/index.ts +0 -8
- package/src/components/CompoundButton/CompoundButton.stories.tsx +0 -46
- package/src/components/CompoundButton/CompoundButton.tsx +0 -53
- package/src/components/CompoundButton/index.ts +0 -5
- package/src/components/Dialog/Dialog.stories.tsx +0 -37
- package/src/components/Dialog/Dialog.tsx +0 -157
- package/src/components/Dialog/index.ts +0 -5
- package/src/components/Group/Group.stories.tsx +0 -25
- package/src/components/Group/Group.tsx +0 -32
- package/src/components/Group/index.ts +0 -5
- package/src/components/Heading/Heading.stories.tsx +0 -29
- package/src/components/Heading/Heading.tsx +0 -29
- package/src/components/Heading/index.ts +0 -5
- package/src/components/Input/BarePinInput.tsx +0 -67
- package/src/components/Input/BareTextInput.tsx +0 -48
- package/src/components/Input/BareTextareaInput.tsx +0 -39
- package/src/components/Input/Input.stories.tsx +0 -108
- package/src/components/Input/Input.tsx +0 -115
- package/src/components/Input/InputProps.ts +0 -47
- package/src/components/Input/index.ts +0 -5
- package/src/components/Loading/Loading.stories.tsx +0 -34
- package/src/components/Loading/Loading.tsx +0 -69
- package/src/components/Loading/index.ts +0 -5
- package/src/components/NavMenu/NavMenu.stories.tsx +0 -54
- package/src/components/NavMenu/NavMenu.tsx +0 -203
- package/src/components/NavMenu/index.ts +0 -5
- package/src/components/Popover/Popover.stories.tsx +0 -49
- package/src/components/Popover/Popover.tsx +0 -110
- package/src/components/Popover/index.ts +0 -5
- package/src/components/QrCode/QrCode.stories.tsx +0 -42
- package/src/components/QrCode/QrCode.tsx +0 -165
- package/src/components/QrCode/index.ts +0 -5
- package/src/components/Tag/Tag.stories.tsx +0 -23
- package/src/components/Tag/Tag.tsx +0 -32
- package/src/components/Tag/index.ts +0 -5
- package/src/components/Toast/Toast.stories.tsx +0 -31
- package/src/components/Toast/Toast.tsx +0 -106
- package/src/components/Toast/index.ts +0 -5
- package/src/components/Tooltip/Tooltip.stories.tsx +0 -28
- package/src/components/Tooltip/Tooltip.tsx +0 -88
- package/src/components/Tooltip/index.ts +0 -5
- package/src/components/UiProvider/UiProvider.tsx +0 -44
- package/src/components/UiProvider/index.ts +0 -5
- package/src/components/index.ts +0 -21
- package/src/config/index.ts +0 -5
- package/src/config/tailwind.ts +0 -250
- package/src/esbuild-plugin.ts +0 -42
- package/src/hooks/index.ts +0 -7
- package/src/hooks/useForwardedRef.ts +0 -22
- package/src/hooks/useId.ts +0 -21
- package/src/hooks/useIsFocused.ts +0 -38
- package/src/plugin.ts +0 -44
- package/src/props/Elevation.ts +0 -5
- package/src/props/MessageValence.ts +0 -5
- package/src/props/Size.ts +0 -40
- package/src/props/index.ts +0 -7
- package/src/styles/active.ts +0 -11
- package/src/styles/disabled.ts +0 -5
- package/src/styles/focus.ts +0 -9
- package/src/styles/group.ts +0 -35
- package/src/styles/hover.ts +0 -10
- package/src/styles/input.ts +0 -46
- package/src/styles/ornament.ts +0 -6
- package/src/styles/shimmer.ts +0 -9
- package/src/styles/size.ts +0 -86
- package/src/styles/text.ts +0 -10
- package/src/styles/valence.ts +0 -71
- package/src/testing/templateForComponent.tsx +0 -16
- package/src/theme.css +0 -65
- package/src/typings.d.ts +0 -7
- package/src/util/index.ts +0 -5
- package/src/util/mx.ts +0 -28
- package/src/util/withLogical.ts +0 -103
package/src/testing/index.ts
CHANGED
|
@@ -1,469 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
-
mod
|
|
23
|
-
));
|
|
24
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
-
|
|
26
|
-
// packages/common/react-ui/src/esbuild-plugin.ts
|
|
27
|
-
var esbuild_plugin_exports = {};
|
|
28
|
-
__export(esbuild_plugin_exports, {
|
|
29
|
-
ThemePlugins: () => ThemePlugins
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(esbuild_plugin_exports);
|
|
32
|
-
var import_autoprefixer = __toESM(require("autoprefixer"));
|
|
33
|
-
var import_esbuild_style_plugin = __toESM(require("esbuild-style-plugin"));
|
|
34
|
-
var import_promises = require("node:fs/promises");
|
|
35
|
-
var import_node_path2 = require("node:path");
|
|
36
|
-
var import_tailwindcss = __toESM(require("tailwindcss"));
|
|
37
|
-
|
|
38
|
-
// packages/common/react-ui/src/config/tailwind.ts
|
|
39
|
-
var import_forms = __toESM(require("@tailwindcss/forms"));
|
|
40
|
-
var import_node_path = require("node:path");
|
|
41
|
-
var import_tailwindcss_logical = __toESM(require("tailwindcss-logical"));
|
|
42
|
-
var import_tailwindcss_radix = __toESM(require("tailwindcss-radix"));
|
|
43
|
-
var import_colors = __toESM(require("tailwindcss/colors"));
|
|
44
|
-
var import_defaultConfig_stub = __toESM(require("tailwindcss/stubs/defaultConfig.stub.js"));
|
|
45
|
-
var tailwindConfig = ({ env = "production", root = "./", content = [] }) => ({
|
|
46
|
-
darkMode: "class",
|
|
47
|
-
theme: {
|
|
48
|
-
fontFamily: {
|
|
49
|
-
body: [
|
|
50
|
-
"Roboto FlexVariable",
|
|
51
|
-
...import_defaultConfig_stub.default.theme.fontFamily.sans
|
|
52
|
-
],
|
|
53
|
-
display: [
|
|
54
|
-
"Space GroteskVariable",
|
|
55
|
-
"Roboto FlexVariable",
|
|
56
|
-
...import_defaultConfig_stub.default.theme.fontFamily.sans
|
|
57
|
-
],
|
|
58
|
-
mono: [
|
|
59
|
-
"Fira CodeVariable",
|
|
60
|
-
...import_defaultConfig_stub.default.theme.fontFamily.mono
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
extend: {
|
|
64
|
-
colors: {
|
|
65
|
-
success: import_colors.default.emerald,
|
|
66
|
-
warning: import_colors.default.amber,
|
|
67
|
-
error: import_colors.default.rose,
|
|
68
|
-
info: import_colors.default.cyan,
|
|
69
|
-
neutral: {
|
|
70
|
-
950: "#101012",
|
|
71
|
-
900: "#1b1b1e",
|
|
72
|
-
850: "#252529",
|
|
73
|
-
800: "#303034",
|
|
74
|
-
750: "#3b3b3f",
|
|
75
|
-
700: "#46464b",
|
|
76
|
-
650: "#525257",
|
|
77
|
-
600: "#5e5e64",
|
|
78
|
-
550: "#6a6a70",
|
|
79
|
-
500: "#77767d",
|
|
80
|
-
450: "#838389",
|
|
81
|
-
400: "#909096",
|
|
82
|
-
350: "#9d9da4",
|
|
83
|
-
300: "#ababb1",
|
|
84
|
-
250: "#b8b8be",
|
|
85
|
-
200: "#c6c6cc",
|
|
86
|
-
150: "#d4d4d9",
|
|
87
|
-
100: "#e2e2e7",
|
|
88
|
-
50: "#f1f1f4"
|
|
89
|
-
},
|
|
90
|
-
primary: {
|
|
91
|
-
950: "#110c2a",
|
|
92
|
-
900: "#101940",
|
|
93
|
-
850: "#0b2453",
|
|
94
|
-
800: "#003164",
|
|
95
|
-
750: "#003e70",
|
|
96
|
-
700: "#004b7c",
|
|
97
|
-
650: "#005887",
|
|
98
|
-
600: "#006693",
|
|
99
|
-
550: "#00749e",
|
|
100
|
-
500: "#0082a9",
|
|
101
|
-
450: "#0091b3",
|
|
102
|
-
400: "#00a0be",
|
|
103
|
-
350: "#00afc7",
|
|
104
|
-
300: "#00bed0",
|
|
105
|
-
250: "#00ced8",
|
|
106
|
-
200: "#00dedf",
|
|
107
|
-
150: "#3cede4",
|
|
108
|
-
100: "#69fae8",
|
|
109
|
-
50: "#b9ffee"
|
|
110
|
-
},
|
|
111
|
-
transparent: "transparent",
|
|
112
|
-
current: "currentColor",
|
|
113
|
-
white: "#ffffff",
|
|
114
|
-
black: "#000000"
|
|
115
|
-
},
|
|
116
|
-
fontSize: {
|
|
117
|
-
xs: [
|
|
118
|
-
"0.790rem",
|
|
119
|
-
{
|
|
120
|
-
lineHeight: "1rem"
|
|
121
|
-
}
|
|
122
|
-
],
|
|
123
|
-
sm: [
|
|
124
|
-
"0.889rem",
|
|
125
|
-
{
|
|
126
|
-
lineHeight: "1.25rem"
|
|
127
|
-
}
|
|
128
|
-
],
|
|
129
|
-
base: [
|
|
130
|
-
"1rem",
|
|
131
|
-
{
|
|
132
|
-
lineHeight: "1.5rem"
|
|
133
|
-
}
|
|
134
|
-
],
|
|
135
|
-
lg: [
|
|
136
|
-
"1.125rem",
|
|
137
|
-
{
|
|
138
|
-
lineHeight: "1.75rem"
|
|
139
|
-
}
|
|
140
|
-
],
|
|
141
|
-
xl: [
|
|
142
|
-
"1.266rem",
|
|
143
|
-
{
|
|
144
|
-
lineHeight: "1.75rem"
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
"2xl": [
|
|
148
|
-
"1.424rem",
|
|
149
|
-
{
|
|
150
|
-
lineHeight: "2rem"
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
"3xl": [
|
|
154
|
-
"1.602rem",
|
|
155
|
-
{
|
|
156
|
-
lineHeight: "2.25rem"
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
"4xl": [
|
|
160
|
-
"1.802rem",
|
|
161
|
-
{
|
|
162
|
-
lineHeight: "2.5rem"
|
|
163
|
-
}
|
|
164
|
-
],
|
|
165
|
-
"5xl": [
|
|
166
|
-
"2.027rem",
|
|
167
|
-
{
|
|
168
|
-
lineHeight: "2.5rem"
|
|
169
|
-
}
|
|
170
|
-
],
|
|
171
|
-
"6xl": [
|
|
172
|
-
"2.281rem",
|
|
173
|
-
{
|
|
174
|
-
lineHeight: "2.5rem"
|
|
175
|
-
}
|
|
176
|
-
],
|
|
177
|
-
"7xl": [
|
|
178
|
-
"2.566rem",
|
|
179
|
-
{
|
|
180
|
-
lineHeight: "2.75rem"
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
"8xl": [
|
|
184
|
-
"2.887rem",
|
|
185
|
-
{
|
|
186
|
-
lineHeight: "3rem"
|
|
187
|
-
}
|
|
188
|
-
],
|
|
189
|
-
"9xl": [
|
|
190
|
-
"3.247rem",
|
|
191
|
-
{
|
|
192
|
-
lineHeight: "3.25rem"
|
|
193
|
-
}
|
|
194
|
-
]
|
|
195
|
-
},
|
|
196
|
-
outlineWidth: {
|
|
197
|
-
3: "3px"
|
|
198
|
-
},
|
|
199
|
-
boxShadow: {
|
|
200
|
-
slider: "0 0 0 5px rgba(0, 0, 0, 0.3)"
|
|
201
|
-
},
|
|
202
|
-
keyframes: {
|
|
203
|
-
"scale-in": {
|
|
204
|
-
"0%": {
|
|
205
|
-
opacity: "0",
|
|
206
|
-
transform: "scale(0)"
|
|
207
|
-
},
|
|
208
|
-
"100%": {
|
|
209
|
-
opacity: "1",
|
|
210
|
-
transform: "scale(1)"
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
"slide-down": {
|
|
214
|
-
"0%": {
|
|
215
|
-
opacity: "0",
|
|
216
|
-
transform: "translateY(-10px)"
|
|
217
|
-
},
|
|
218
|
-
"100%": {
|
|
219
|
-
opacity: "1",
|
|
220
|
-
transform: "translateY(0)"
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
"slide-up": {
|
|
224
|
-
"0%": {
|
|
225
|
-
opacity: "0",
|
|
226
|
-
transform: "translateY(10px)"
|
|
227
|
-
},
|
|
228
|
-
"100%": {
|
|
229
|
-
opacity: "1",
|
|
230
|
-
transform: "translateY(0)"
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
"slide-up-fade": {
|
|
234
|
-
"0%": {
|
|
235
|
-
opacity: "0",
|
|
236
|
-
transform: "translateY(2px)"
|
|
237
|
-
},
|
|
238
|
-
"100%": {
|
|
239
|
-
opacity: "1",
|
|
240
|
-
transform: "translateY(0)"
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
"slide-right-fade": {
|
|
244
|
-
"0%": {
|
|
245
|
-
opacity: "0",
|
|
246
|
-
transform: "translateX(-2px)"
|
|
247
|
-
},
|
|
248
|
-
"100%": {
|
|
249
|
-
opacity: "1",
|
|
250
|
-
transform: "translateX(0)"
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
"slide-down-fade": {
|
|
254
|
-
"0%": {
|
|
255
|
-
opacity: "0",
|
|
256
|
-
transform: "translateY(-2px)"
|
|
257
|
-
},
|
|
258
|
-
"100%": {
|
|
259
|
-
opacity: "1",
|
|
260
|
-
transform: "translateY(0)"
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
"slide-left-fade": {
|
|
264
|
-
"0%": {
|
|
265
|
-
opacity: "0",
|
|
266
|
-
transform: "translateX(2px)"
|
|
267
|
-
},
|
|
268
|
-
"100%": {
|
|
269
|
-
opacity: "1",
|
|
270
|
-
transform: "translateX(0)"
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
"enter-from-right": {
|
|
274
|
-
"0%": {
|
|
275
|
-
transform: "translateX(200px)",
|
|
276
|
-
opacity: "0"
|
|
277
|
-
},
|
|
278
|
-
"100%": {
|
|
279
|
-
transform: "translateX(0)",
|
|
280
|
-
opacity: "1"
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
"enter-from-left": {
|
|
284
|
-
"0%": {
|
|
285
|
-
transform: "translateX(-200px)",
|
|
286
|
-
opacity: "0"
|
|
287
|
-
},
|
|
288
|
-
"100%": {
|
|
289
|
-
transform: "translateX(0)",
|
|
290
|
-
opacity: "1"
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
"exit-to-right": {
|
|
294
|
-
"0%": {
|
|
295
|
-
transform: "translateX(0)",
|
|
296
|
-
opacity: "1"
|
|
297
|
-
},
|
|
298
|
-
"100%": {
|
|
299
|
-
transform: "translateX(200px)",
|
|
300
|
-
opacity: "0"
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
"exit-to-left": {
|
|
304
|
-
"0%": {
|
|
305
|
-
transform: "translateX(0)",
|
|
306
|
-
opacity: "1"
|
|
307
|
-
},
|
|
308
|
-
"100%": {
|
|
309
|
-
transform: "translateX(-200px)",
|
|
310
|
-
opacity: "0"
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
"scale-in-content": {
|
|
314
|
-
"0%": {
|
|
315
|
-
transform: "rotateX(-30deg) scale(0.9)",
|
|
316
|
-
opacity: "0"
|
|
317
|
-
},
|
|
318
|
-
"100%": {
|
|
319
|
-
transform: "rotateX(0deg) scale(1)",
|
|
320
|
-
opacity: "1"
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
"scale-out-content": {
|
|
324
|
-
"0%": {
|
|
325
|
-
transform: "rotateX(0deg) scale(1)",
|
|
326
|
-
opacity: "1"
|
|
327
|
-
},
|
|
328
|
-
"100%": {
|
|
329
|
-
transform: "rotateX(-10deg) scale(0.95)",
|
|
330
|
-
opacity: "0"
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
"fade-in": {
|
|
334
|
-
"0%": {
|
|
335
|
-
opacity: "0"
|
|
336
|
-
},
|
|
337
|
-
"100%": {
|
|
338
|
-
opacity: "1"
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
"fade-out": {
|
|
342
|
-
"0%": {
|
|
343
|
-
opacity: "1"
|
|
344
|
-
},
|
|
345
|
-
"100%": {
|
|
346
|
-
opacity: "0"
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
"toast-hide": {
|
|
350
|
-
"0%": {
|
|
351
|
-
opacity: "1"
|
|
352
|
-
},
|
|
353
|
-
"100%": {
|
|
354
|
-
opacity: "0"
|
|
355
|
-
}
|
|
356
|
-
},
|
|
357
|
-
"toast-slide-in-right": {
|
|
358
|
-
"0%": {
|
|
359
|
-
transform: "translateX(calc(100% + 1rem))"
|
|
360
|
-
},
|
|
361
|
-
"100%": {
|
|
362
|
-
transform: "translateX(0)"
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
"toast-slide-in-bottom": {
|
|
366
|
-
"0%": {
|
|
367
|
-
transform: "translateY(calc(100% + 1rem))"
|
|
368
|
-
},
|
|
369
|
-
"100%": {
|
|
370
|
-
transform: "translateY(0)"
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
"toast-swipe-out": {
|
|
374
|
-
"0%": {
|
|
375
|
-
transform: "translateX(var(--radix-toast-swipe-end-x))"
|
|
376
|
-
},
|
|
377
|
-
"100%": {
|
|
378
|
-
transform: "translateX(calc(100% + 1rem))"
|
|
379
|
-
}
|
|
380
|
-
},
|
|
381
|
-
"shimmer-loop": {
|
|
382
|
-
"100%": {
|
|
383
|
-
transform: "translateX(100%)"
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
animation: {
|
|
388
|
-
"scale-in": "scale-in 0.2s ease-in-out",
|
|
389
|
-
"slide-down": "slide-down 0.6s cubic-bezier(0.16, 1, 0.3, 1)",
|
|
390
|
-
"slide-up": "slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1)",
|
|
391
|
-
"slide-up-fade": "slide-up-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)",
|
|
392
|
-
"slide-right-fade": "slide-right-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)",
|
|
393
|
-
"slide-down-fade": "slide-down-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)",
|
|
394
|
-
"slide-left-fade": "slide-left-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)",
|
|
395
|
-
"enter-from-right": "enter-from-right 0.25s ease",
|
|
396
|
-
"enter-from-left": "enter-from-left 0.25s ease",
|
|
397
|
-
"exit-to-right": "exit-to-right 0.25s ease",
|
|
398
|
-
"exit-to-left": "exit-to-left 0.25s ease",
|
|
399
|
-
"scale-in-content": "scale-in-content 0.2s ease",
|
|
400
|
-
"scale-out-content": "scale-out-content 0.2s ease",
|
|
401
|
-
"fade-in": "fade-in 0.2s ease",
|
|
402
|
-
"fade-out": "fade-out 0.2s ease",
|
|
403
|
-
"toast-hide": "toast-hide 100ms ease-in forwards",
|
|
404
|
-
"toast-slide-in-right": "toast-slide-in-right 150ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
405
|
-
"toast-slide-in-bottom": "toast-slide-in-bottom 150ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
406
|
-
"toast-swipe-out": "toast-swipe-out 100ms ease-out forwards",
|
|
407
|
-
shimmer: "shimmer-loop 2s infinite"
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
},
|
|
411
|
-
plugins: [
|
|
412
|
-
import_tailwindcss_logical.default,
|
|
413
|
-
import_forms.default,
|
|
414
|
-
(0, import_tailwindcss_radix.default)()
|
|
415
|
-
],
|
|
416
|
-
...env === "development" && {
|
|
417
|
-
mode: "jit"
|
|
418
|
-
},
|
|
419
|
-
content: [
|
|
420
|
-
(0, import_node_path.resolve)(root, "node_modules/@dxos/react-ui/dist/**/*.mjs"),
|
|
421
|
-
...content
|
|
422
|
-
]
|
|
423
|
-
});
|
|
424
|
-
|
|
425
|
-
// packages/common/react-ui/src/esbuild-plugin.ts
|
|
426
|
-
var ThemePlugins = (options) => {
|
|
427
|
-
return [
|
|
428
|
-
{
|
|
429
|
-
name: "esbuild-plugin-dxos-ui-theme-resolvers",
|
|
430
|
-
setup: async (build) => {
|
|
431
|
-
const fontsDir = (0, import_node_path2.join)(options.outdir, "node_modules/@dxos/react-ui/fonts");
|
|
432
|
-
try {
|
|
433
|
-
await (0, import_promises.mkdir)(fontsDir);
|
|
434
|
-
} catch (_e) {
|
|
435
|
-
}
|
|
436
|
-
build.onResolve({
|
|
437
|
-
filter: /\.woff2$/
|
|
438
|
-
}, async (args) => {
|
|
439
|
-
const depPath = (0, import_node_path2.resolve)(args.resolveDir, args.path);
|
|
440
|
-
const destPath = (0, import_node_path2.join)(fontsDir, (0, import_node_path2.basename)(args.path));
|
|
441
|
-
try {
|
|
442
|
-
await (0, import_promises.cp)(depPath, destPath);
|
|
443
|
-
} catch (_e) {
|
|
444
|
-
}
|
|
445
|
-
return {
|
|
446
|
-
path: `./${(0, import_node_path2.relative)(options.outdir, (0, import_node_path2.join)("fonts", (0, import_node_path2.basename)(args.path)))}`,
|
|
447
|
-
external: true
|
|
448
|
-
};
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
},
|
|
452
|
-
(0, import_esbuild_style_plugin.default)({
|
|
453
|
-
postcss: {
|
|
454
|
-
plugins: [
|
|
455
|
-
(0, import_tailwindcss.default)(tailwindConfig({
|
|
456
|
-
env: process.env.NODE_ENV,
|
|
457
|
-
content: options.content
|
|
458
|
-
})),
|
|
459
|
-
import_autoprefixer.default
|
|
460
|
-
]
|
|
461
|
-
}
|
|
462
|
-
})
|
|
463
|
-
];
|
|
464
|
-
};
|
|
465
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
466
|
-
0 && (module.exports = {
|
|
467
|
-
ThemePlugins
|
|
468
|
-
});
|
|
469
|
-
//# sourceMappingURL=esbuild-plugin.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/esbuild-plugin.ts", "../../../src/config/tailwind.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2022 DXOS.org\n//\n\nimport autoprefixer from 'autoprefixer';\nimport type { Plugin } from 'esbuild';\nimport stylePlugin from 'esbuild-style-plugin';\nimport { mkdir, cp } from 'node:fs/promises';\nimport { resolve, relative, join, basename } from 'node:path';\nimport tailwindcss from 'tailwindcss';\n\nimport { tailwindConfig } from './config';\n\nexport const ThemePlugins = (options: { content: string[]; outdir: string }): Plugin[] => {\n return [\n // TODO (thure): This really shouldn’t be this way, but after hours of searching for a reasonable way to do this I came up empty. The prior art I found was mainly this thread, though it’s only tangentially related: https://github.com/evanw/esbuild/issues/800#issuecomment-786151076\n {\n name: 'esbuild-plugin-dxos-ui-theme-resolvers',\n setup: async (build) => {\n const fontsDir = join(options.outdir, 'node_modules/@dxos/react-ui/fonts');\n try {\n await mkdir(fontsDir);\n } catch (_e) {}\n build.onResolve({ filter: /\\.woff2$/ }, async (args) => {\n const depPath = resolve(args.resolveDir, args.path);\n const destPath = join(fontsDir, basename(args.path));\n try {\n await cp(depPath, destPath);\n } catch (_e) {}\n return { path: `./${relative(options.outdir, join('fonts', basename(args.path)))}`, external: true };\n });\n }\n },\n // TODO (thure): theme.css must be part of entryPoints in order to be processed with `stylePlugin`, but this should not be necessary. ESBuild would not load theme.css using stylePlugin if referenced within index.ts(x) as with the Vite plugin.\n // TODO (thure): Note also that because it is an entryPoint, the developer has to reference the built theme.css from `index.html`, which is inflexible and possibly inconvenient.\n stylePlugin({\n postcss: {\n plugins: [tailwindcss(tailwindConfig({ env: process.env.NODE_ENV, content: options.content })), autoprefixer]\n }\n })\n ];\n};\n", "//\n// Copyright 2022 DXOS.org\n//\n\nimport tailwindcssForms from '@tailwindcss/forms';\nimport { resolve } from 'node:path';\nimport type { Config } from 'tailwindcss';\nimport tailwindcssLogical from 'tailwindcss-logical';\nimport tailwindcssRadix from 'tailwindcss-radix';\nimport tailwindColors from 'tailwindcss/colors';\nimport defaultConfig from 'tailwindcss/stubs/defaultConfig.stub.js';\n\nexport const tailwindConfig = ({\n env = 'production',\n root = './',\n content = []\n}: {\n env?: string;\n root?: string;\n content?: string[];\n}): Config => ({\n darkMode: 'class',\n theme: {\n fontFamily: {\n body: ['Roboto FlexVariable', ...defaultConfig.theme.fontFamily.sans],\n display: ['Space GroteskVariable', 'Roboto FlexVariable', ...defaultConfig.theme.fontFamily.sans],\n mono: ['Fira CodeVariable', ...defaultConfig.theme.fontFamily.mono]\n },\n extend: {\n colors: {\n success: tailwindColors.emerald,\n warning: tailwindColors.amber,\n error: tailwindColors.rose,\n info: tailwindColors.cyan,\n neutral: {\n // Key color #707076\n // Hue torsion 0.0º\n // C*CP black 0.80, C*CP white 0.88\n 950: '#101012',\n 900: '#1b1b1e',\n 850: '#252529',\n 800: '#303034',\n 750: '#3b3b3f',\n 700: '#46464b',\n 650: '#525257',\n 600: '#5e5e64',\n 550: '#6a6a70',\n 500: '#77767d',\n 450: '#838389',\n 400: '#909096',\n 350: '#9d9da4',\n 300: '#ababb1',\n 250: '#b8b8be',\n 200: '#c6c6cc',\n 150: '#d4d4d9',\n 100: '#e2e2e7',\n 50: '#f1f1f4'\n },\n primary: {\n // Key color #00e0e0\n // Hue torsion -73.5º\n // C*CP black 1.0, C*CP white 1.0\n 950: '#110c2a',\n 900: '#101940',\n 850: '#0b2453',\n 800: '#003164',\n 750: '#003e70',\n 700: '#004b7c',\n 650: '#005887',\n 600: '#006693',\n 550: '#00749e',\n 500: '#0082a9',\n 450: '#0091b3',\n 400: '#00a0be',\n 350: '#00afc7',\n 300: '#00bed0',\n 250: '#00ced8',\n 200: '#00dedf',\n 150: '#3cede4',\n 100: '#69fae8',\n 50: '#b9ffee'\n },\n transparent: 'transparent',\n current: 'currentColor',\n white: '#ffffff',\n black: '#000000'\n },\n fontSize: {\n // Base size 16px\n // Scale 1.125\n xs: ['0.790rem', { lineHeight: '1rem' }],\n sm: ['0.889rem', { lineHeight: '1.25rem' }],\n base: ['1rem', { lineHeight: '1.5rem' }],\n lg: ['1.125rem', { lineHeight: '1.75rem' }],\n xl: ['1.266rem', { lineHeight: '1.75rem' }],\n '2xl': ['1.424rem', { lineHeight: '2rem' }],\n '3xl': ['1.602rem', { lineHeight: '2.25rem' }],\n '4xl': ['1.802rem', { lineHeight: '2.5rem' }],\n '5xl': ['2.027rem', { lineHeight: '2.5rem' }],\n '6xl': ['2.281rem', { lineHeight: '2.5rem' }],\n '7xl': ['2.566rem', { lineHeight: '2.75rem' }],\n '8xl': ['2.887rem', { lineHeight: '3rem' }],\n '9xl': ['3.247rem', { lineHeight: '3.25rem' }]\n },\n outlineWidth: {\n 3: '3px'\n },\n boxShadow: {\n slider: '0 0 0 5px rgba(0, 0, 0, 0.3)'\n },\n keyframes: {\n // Dropdown menu\n 'scale-in': {\n '0%': { opacity: '0', transform: 'scale(0)' },\n '100%': { opacity: '1', transform: 'scale(1)' }\n },\n 'slide-down': {\n '0%': { opacity: '0', transform: 'translateY(-10px)' },\n '100%': { opacity: '1', transform: 'translateY(0)' }\n },\n 'slide-up': {\n '0%': { opacity: '0', transform: 'translateY(10px)' },\n '100%': { opacity: '1', transform: 'translateY(0)' }\n },\n // Tooltip\n 'slide-up-fade': {\n '0%': { opacity: '0', transform: 'translateY(2px)' },\n '100%': { opacity: '1', transform: 'translateY(0)' }\n },\n 'slide-right-fade': {\n '0%': { opacity: '0', transform: 'translateX(-2px)' },\n '100%': { opacity: '1', transform: 'translateX(0)' }\n },\n 'slide-down-fade': {\n '0%': { opacity: '0', transform: 'translateY(-2px)' },\n '100%': { opacity: '1', transform: 'translateY(0)' }\n },\n 'slide-left-fade': {\n '0%': { opacity: '0', transform: 'translateX(2px)' },\n '100%': { opacity: '1', transform: 'translateX(0)' }\n },\n // Navigation menu\n 'enter-from-right': {\n '0%': { transform: 'translateX(200px)', opacity: '0' },\n '100%': { transform: 'translateX(0)', opacity: '1' }\n },\n 'enter-from-left': {\n '0%': { transform: 'translateX(-200px)', opacity: '0' },\n '100%': { transform: 'translateX(0)', opacity: '1' }\n },\n 'exit-to-right': {\n '0%': { transform: 'translateX(0)', opacity: '1' },\n '100%': { transform: 'translateX(200px)', opacity: '0' }\n },\n 'exit-to-left': {\n '0%': { transform: 'translateX(0)', opacity: '1' },\n '100%': {\n transform: 'translateX(-200px)',\n opacity: '0'\n }\n },\n 'scale-in-content': {\n '0%': {\n transform: 'rotateX(-30deg) scale(0.9)',\n opacity: '0'\n },\n '100%': {\n transform: 'rotateX(0deg) scale(1)',\n opacity: '1'\n }\n },\n 'scale-out-content': {\n '0%': {\n transform: 'rotateX(0deg) scale(1)',\n opacity: '1'\n },\n '100%': {\n transform: 'rotateX(-10deg) scale(0.95)',\n opacity: '0'\n }\n },\n 'fade-in': {\n '0%': { opacity: '0' },\n '100%': { opacity: '1' }\n },\n 'fade-out': {\n '0%': { opacity: '1' },\n '100%': { opacity: '0' }\n },\n // Toast\n 'toast-hide': {\n '0%': { opacity: '1' },\n '100%': { opacity: '0' }\n },\n 'toast-slide-in-right': {\n '0%': { transform: 'translateX(calc(100% + 1rem))' },\n '100%': { transform: 'translateX(0)' }\n },\n 'toast-slide-in-bottom': {\n '0%': { transform: 'translateY(calc(100% + 1rem))' },\n '100%': { transform: 'translateY(0)' }\n },\n 'toast-swipe-out': {\n '0%': {\n transform: 'translateX(var(--radix-toast-swipe-end-x))'\n },\n '100%': {\n transform: 'translateX(calc(100% + 1rem))'\n }\n },\n // Shimmer\n 'shimmer-loop': {\n '100%': {\n transform: 'translateX(100%)'\n }\n }\n },\n animation: {\n // Dropdown menu\n 'scale-in': 'scale-in 0.2s ease-in-out',\n 'slide-down': 'slide-down 0.6s cubic-bezier(0.16, 1, 0.3, 1)',\n 'slide-up': 'slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1)',\n // Tooltip\n 'slide-up-fade': 'slide-up-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)',\n 'slide-right-fade': 'slide-right-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)',\n 'slide-down-fade': 'slide-down-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)',\n 'slide-left-fade': 'slide-left-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)',\n // Navigation menu\n 'enter-from-right': 'enter-from-right 0.25s ease',\n 'enter-from-left': 'enter-from-left 0.25s ease',\n 'exit-to-right': 'exit-to-right 0.25s ease',\n 'exit-to-left': 'exit-to-left 0.25s ease',\n 'scale-in-content': 'scale-in-content 0.2s ease',\n 'scale-out-content': 'scale-out-content 0.2s ease',\n 'fade-in': 'fade-in 0.2s ease',\n 'fade-out': 'fade-out 0.2s ease',\n // Toast\n 'toast-hide': 'toast-hide 100ms ease-in forwards',\n 'toast-slide-in-right': 'toast-slide-in-right 150ms cubic-bezier(0.16, 1, 0.3, 1)',\n 'toast-slide-in-bottom': 'toast-slide-in-bottom 150ms cubic-bezier(0.16, 1, 0.3, 1)',\n 'toast-swipe-out': 'toast-swipe-out 100ms ease-out forwards',\n // Shimmer\n shimmer: 'shimmer-loop 2s infinite'\n }\n }\n },\n plugins: [tailwindcssLogical, tailwindcssForms, tailwindcssRadix()],\n ...(env === 'development' && { mode: 'jit' }),\n content: [resolve(root, 'node_modules/@dxos/react-ui/dist/**/*.mjs'), ...content]\n});\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;AAIA,0BAAyB;AAEzB,kCAAwB;AACxB,sBAA0B;AAC1B,IAAAA,oBAAkD;AAClD,yBAAwB;;;ACLxB,mBAA6B;AAC7B,uBAAwB;AAExB,iCAA+B;AAC/B,+BAA6B;AAC7B,oBAA2B;AAC3B,gCAA0B;AAEnB,IAAMC,iBAAiB,CAAC,EAC7BC,MAAM,cACNC,OAAO,MACPC,UAAU,CAAA,EAAE,OAKC;EACbC,UAAU;EACVC,OAAO;IACLC,YAAY;MACVC,MAAM;QAAC;WAA0BC,0BAAAA,QAAcH,MAAMC,WAAWG;;MAChEC,SAAS;QAAC;QAAyB;WAA0BF,0BAAAA,QAAcH,MAAMC,WAAWG;;MAC5FE,MAAM;QAAC;WAAwBH,0BAAAA,QAAcH,MAAMC,WAAWK;;IAChE;IACAC,QAAQ;MACNC,QAAQ;QACNC,SAASC,cAAAA,QAAeC;QACxBC,SAASF,cAAAA,QAAeG;QACxBC,OAAOJ,cAAAA,QAAeK;QACtBC,MAAMN,cAAAA,QAAeO;QACrBC,SAAS;UAIP,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK;UACL,IAAI;QACN;QACAC,SAAS;UAIR,KAAK;UACL,KAAK;UACL,KAAK;UACL,KAAK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IAAI,CAAA;AAClD,cAAI;AACF,sBAAMG,oBAAGN,SAASI,QAAAA;UACpB,SAASR,IAAP;UAAY;AACd,iBAAO;YAAEO,MAAM,SAAKI,4BAASnB,QAAQM,YAAQD,wBAAK,aAASY,4BAASN,KAAKI,IAAI,CAAA,CAAA;YAAOK,UAAU;UAAK;QACrG,CAAA;MACF;IACF;QAGAC,4BAAAA,SAAY;MACVC,SAAS;QACPC,SAAS;cAACC,mBAAAA,SAAYC,eAAe;YAAEC,KAAKC,QAAQD,IAAIE;YAAUC,SAAS7B,QAAQ6B;UAAQ,CAAA,CAAA;UAAKC,oBAAAA;;MAClG;IACF,CAAA;;AAEI;",
|
|
6
|
-
"names": ["import_node_path", "tailwindConfig", "env", "root", "content", "darkMode", "theme", "fontFamily", "body", "defaultConfig", "sans", "display", "mono", "extend", "colors", "success", "tailwindColors", "emerald", "warning", "amber", "error", "rose", "info", "cyan", "neutral", "primary", "transparent", "current", "white", "black", "fontSize", "xs", "lineHeight", "sm", "base", "lg", "xl", "outlineWidth", "boxShadow", "slider", "keyframes", "opacity", "transform", "animation", "shimmer", "plugins", "tailwindcssLogical", "tailwindcssForms", "tailwindcssRadix", "mode", "resolve", "ThemePlugins", "options", "name", "setup", "build", "fontsDir", "join", "outdir", "mkdir", "_e", "onResolve", "filter", "args", "depPath", "resolve", "resolveDir", "path", "destPath", "basename", "cp", "relative", "external", "stylePlugin", "postcss", "plugins", "tailwindcss", "tailwindConfig", "env", "process", "NODE_ENV", "content", "autoprefixer"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"packages/common/react-ui/src/config/tailwind.ts":{"bytes":33601,"imports":[]},"packages/common/react-ui/src/config/index.ts":{"bytes":376,"imports":[{"path":"packages/common/react-ui/src/config/tailwind.ts","kind":"import-statement"}]},"packages/common/react-ui/src/esbuild-plugin.ts":{"bytes":6989,"imports":[{"path":"packages/common/react-ui/src/config/index.ts","kind":"import-statement"}]},"packages/common/react-ui/src/plugin.ts":{"bytes":3769,"imports":[{"path":"packages/common/react-ui/src/config/index.ts","kind":"import-statement"}]},"packages/common/react-ui/src/theme.css":{"bytes":1407,"imports":[]}},"outputs":{"packages/common/react-ui/dist/plugin/node/esbuild-plugin.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":16246},"packages/common/react-ui/dist/plugin/node/esbuild-plugin.cjs":{"imports":[],"exports":[],"entryPoint":"packages/common/react-ui/src/esbuild-plugin.ts","inputs":{"packages/common/react-ui/src/esbuild-plugin.ts":{"bytesInOutput":1739},"packages/common/react-ui/src/config/tailwind.ts":{"bytesInOutput":9753},"packages/common/react-ui/src/config/index.ts":{"bytesInOutput":0}},"bytes":12906},"packages/common/react-ui/dist/plugin/node/plugin.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":14857},"packages/common/react-ui/dist/plugin/node/plugin.cjs":{"imports":[],"exports":[],"entryPoint":"packages/common/react-ui/src/plugin.ts","inputs":{"packages/common/react-ui/src/plugin.ts":{"bytesInOutput":1037},"packages/common/react-ui/src/config/tailwind.ts":{"bytesInOutput":9753},"packages/common/react-ui/src/config/index.ts":{"bytesInOutput":0}},"bytes":12179},"packages/common/react-ui/dist/plugin/node/theme.css.map":{"imports":[],"exports":[],"inputs":{},"bytes":1871},"packages/common/react-ui/dist/plugin/node/theme.css":{"imports":[],"entryPoint":"packages/common/react-ui/src/theme.css","inputs":{"packages/common/react-ui/src/theme.css":{"bytesInOutput":1209}},"bytes":1447}}}
|