@dxos/react-ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +68 -0
- package/dist/src/components/Alert/Alert.d.ts +10 -0
- package/dist/src/components/Alert/Alert.d.ts.map +1 -0
- package/dist/src/components/Alert/Alert.js +21 -0
- package/dist/src/components/Alert/Alert.js.map +1 -0
- package/dist/src/components/Alert/Alert.stories.d.ts +9 -0
- package/dist/src/components/Alert/Alert.stories.d.ts.map +1 -0
- package/dist/src/components/Alert/Alert.stories.js +30 -0
- package/dist/src/components/Alert/Alert.stories.js.map +1 -0
- package/dist/src/components/Alert/index.d.ts +2 -0
- package/dist/src/components/Alert/index.d.ts.map +1 -0
- package/dist/src/components/Alert/index.js +21 -0
- package/dist/src/components/Alert/index.js.map +1 -0
- package/dist/src/components/AlertDialog/AlertDialog.d.ts +17 -0
- package/dist/src/components/AlertDialog/AlertDialog.d.ts.map +1 -0
- package/dist/src/components/AlertDialog/AlertDialog.js +65 -0
- package/dist/src/components/AlertDialog/AlertDialog.js.map +1 -0
- package/dist/src/components/AlertDialog/AlertDialog.stories.d.ts +9 -0
- package/dist/src/components/AlertDialog/AlertDialog.stories.d.ts.map +1 -0
- package/dist/src/components/AlertDialog/AlertDialog.stories.js +37 -0
- package/dist/src/components/AlertDialog/AlertDialog.stories.js.map +1 -0
- package/dist/src/components/AlertDialog/index.d.ts +2 -0
- package/dist/src/components/AlertDialog/index.d.ts.map +1 -0
- package/dist/src/components/AlertDialog/index.js +21 -0
- package/dist/src/components/AlertDialog/index.js.map +1 -0
- package/dist/src/components/Avatar/Avatar.d.ts +13 -0
- package/dist/src/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/src/components/Avatar/Avatar.js +53 -0
- package/dist/src/components/Avatar/Avatar.js.map +1 -0
- package/dist/src/components/Avatar/Avatar.stories.d.ts +10 -0
- package/dist/src/components/Avatar/Avatar.stories.d.ts.map +1 -0
- package/dist/src/components/Avatar/Avatar.stories.js +30 -0
- package/dist/src/components/Avatar/Avatar.stories.js.map +1 -0
- package/dist/src/components/Avatar/index.d.ts +2 -0
- package/dist/src/components/Avatar/index.d.ts.map +1 -0
- package/dist/src/components/Avatar/index.js +21 -0
- package/dist/src/components/Avatar/index.js.map +1 -0
- package/dist/src/components/Button/Button.d.ts +4 -0
- package/dist/src/components/Button/Button.d.ts.map +1 -0
- package/dist/src/components/Button/Button.js +37 -0
- package/dist/src/components/Button/Button.js.map +1 -0
- package/dist/src/components/Button/Button.stories.d.ts +12 -0
- package/dist/src/components/Button/Button.stories.d.ts.map +1 -0
- package/dist/src/components/Button/Button.stories.js +31 -0
- package/dist/src/components/Button/Button.stories.js.map +1 -0
- package/dist/src/components/Button/ButtonProps.d.ts +8 -0
- package/dist/src/components/Button/ButtonProps.d.ts.map +1 -0
- package/dist/src/components/Button/ButtonProps.js +6 -0
- package/dist/src/components/Button/ButtonProps.js.map +1 -0
- package/dist/src/components/Button/buttonStyles.d.ts +5 -0
- package/dist/src/components/Button/buttonStyles.d.ts.map +1 -0
- package/dist/src/components/Button/buttonStyles.js +24 -0
- package/dist/src/components/Button/buttonStyles.js.map +1 -0
- package/dist/src/components/Button/index.d.ts +4 -0
- package/dist/src/components/Button/index.d.ts.map +1 -0
- package/dist/src/components/Button/index.js +23 -0
- package/dist/src/components/Button/index.js.map +1 -0
- package/dist/src/components/CompoundButton/CompoundButton.d.ts +10 -0
- package/dist/src/components/CompoundButton/CompoundButton.d.ts.map +1 -0
- package/dist/src/components/CompoundButton/CompoundButton.js +27 -0
- package/dist/src/components/CompoundButton/CompoundButton.js.map +1 -0
- package/dist/src/components/CompoundButton/CompoundButton.stories.d.ts +10 -0
- package/dist/src/components/CompoundButton/CompoundButton.stories.d.ts.map +1 -0
- package/dist/src/components/CompoundButton/CompoundButton.stories.js +40 -0
- package/dist/src/components/CompoundButton/CompoundButton.stories.js.map +1 -0
- package/dist/src/components/CompoundButton/index.d.ts +2 -0
- package/dist/src/components/CompoundButton/index.d.ts.map +1 -0
- package/dist/src/components/CompoundButton/index.js +21 -0
- package/dist/src/components/CompoundButton/index.js.map +1 -0
- package/dist/src/components/Dialog/Dialog.d.ts +14 -0
- package/dist/src/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/src/components/Dialog/Dialog.js +59 -0
- package/dist/src/components/Dialog/Dialog.js.map +1 -0
- package/dist/src/components/Dialog/Dialog.stories.d.ts +9 -0
- package/dist/src/components/Dialog/Dialog.stories.d.ts.map +1 -0
- package/dist/src/components/Dialog/Dialog.stories.js +37 -0
- package/dist/src/components/Dialog/Dialog.stories.js.map +1 -0
- package/dist/src/components/Dialog/index.d.ts +2 -0
- package/dist/src/components/Dialog/index.d.ts.map +1 -0
- package/dist/src/components/Dialog/index.js +21 -0
- package/dist/src/components/Dialog/index.js.map +1 -0
- package/dist/src/components/Group/Group.d.ts +10 -0
- package/dist/src/components/Group/Group.d.ts.map +1 -0
- package/dist/src/components/Group/Group.js +22 -0
- package/dist/src/components/Group/Group.js.map +1 -0
- package/dist/src/components/Group/Group.stories.d.ts +9 -0
- package/dist/src/components/Group/Group.stories.d.ts.map +1 -0
- package/dist/src/components/Group/Group.stories.js +27 -0
- package/dist/src/components/Group/Group.stories.js.map +1 -0
- package/dist/src/components/Group/index.d.ts +2 -0
- package/dist/src/components/Group/index.d.ts.map +1 -0
- package/dist/src/components/Group/index.js +21 -0
- package/dist/src/components/Group/index.js.map +1 -0
- package/dist/src/components/Heading/Heading.d.ts +266 -0
- package/dist/src/components/Heading/Heading.d.ts.map +1 -0
- package/dist/src/components/Heading/Heading.js +28 -0
- package/dist/src/components/Heading/Heading.js.map +1 -0
- package/dist/src/components/Heading/Heading.stories.d.ts +274 -0
- package/dist/src/components/Heading/Heading.stories.d.ts.map +1 -0
- package/dist/src/components/Heading/Heading.stories.js +34 -0
- package/dist/src/components/Heading/Heading.stories.js.map +1 -0
- package/dist/src/components/Heading/index.d.ts +2 -0
- package/dist/src/components/Heading/index.d.ts.map +1 -0
- package/dist/src/components/Heading/index.js +21 -0
- package/dist/src/components/Heading/index.js.map +1 -0
- package/dist/src/components/Input/Input.d.ts +17 -0
- package/dist/src/components/Input/Input.d.ts.map +1 -0
- package/dist/src/components/Input/Input.js +70 -0
- package/dist/src/components/Input/Input.js.map +1 -0
- package/dist/src/components/Input/Input.stories.d.ts +23 -0
- package/dist/src/components/Input/Input.stories.d.ts.map +1 -0
- package/dist/src/components/Input/Input.stories.js +73 -0
- package/dist/src/components/Input/Input.stories.js.map +1 -0
- package/dist/src/components/Input/index.d.ts +2 -0
- package/dist/src/components/Input/index.d.ts.map +1 -0
- package/dist/src/components/Input/index.js +21 -0
- package/dist/src/components/Input/index.js.map +1 -0
- package/dist/src/components/Loading/Loading.d.ts +12 -0
- package/dist/src/components/Loading/Loading.d.ts.map +1 -0
- package/dist/src/components/Loading/Loading.js +29 -0
- package/dist/src/components/Loading/Loading.js.map +1 -0
- package/dist/src/components/Loading/Loading.stories.d.ts +25 -0
- package/dist/src/components/Loading/Loading.stories.d.ts.map +1 -0
- package/dist/src/components/Loading/Loading.stories.js +39 -0
- package/dist/src/components/Loading/Loading.stories.js.map +1 -0
- package/dist/src/components/Loading/index.d.ts +2 -0
- package/dist/src/components/Loading/index.d.ts.map +1 -0
- package/dist/src/components/Loading/index.js +21 -0
- package/dist/src/components/Loading/index.js.map +1 -0
- package/dist/src/components/NavMenu/NavMenu.d.ts +31 -0
- package/dist/src/components/NavMenu/NavMenu.d.ts.map +1 -0
- package/dist/src/components/NavMenu/NavMenu.js +71 -0
- package/dist/src/components/NavMenu/NavMenu.js.map +1 -0
- package/dist/src/components/NavMenu/NavMenu.stories.d.ts +9 -0
- package/dist/src/components/NavMenu/NavMenu.stories.d.ts.map +1 -0
- package/dist/src/components/NavMenu/NavMenu.stories.js +50 -0
- package/dist/src/components/NavMenu/NavMenu.stories.js.map +1 -0
- package/dist/src/components/NavMenu/index.d.ts +2 -0
- package/dist/src/components/NavMenu/index.d.ts.map +1 -0
- package/dist/src/components/NavMenu/index.js +21 -0
- package/dist/src/components/NavMenu/index.js.map +1 -0
- package/dist/src/components/Popover/Popover.d.ts +11 -0
- package/dist/src/components/Popover/Popover.d.ts.map +1 -0
- package/dist/src/components/Popover/Popover.js +56 -0
- package/dist/src/components/Popover/Popover.js.map +1 -0
- package/dist/src/components/Popover/Popover.stories.d.ts +10 -0
- package/dist/src/components/Popover/Popover.stories.d.ts.map +1 -0
- package/dist/src/components/Popover/Popover.stories.js +39 -0
- package/dist/src/components/Popover/Popover.stories.js.map +1 -0
- package/dist/src/components/Popover/index.d.ts +2 -0
- package/dist/src/components/Popover/index.d.ts.map +1 -0
- package/dist/src/components/Popover/index.js +21 -0
- package/dist/src/components/Popover/index.js.map +1 -0
- package/dist/src/components/QrCode/QrCode.d.ts +11 -0
- package/dist/src/components/QrCode/QrCode.d.ts.map +1 -0
- package/dist/src/components/QrCode/QrCode.js +51 -0
- package/dist/src/components/QrCode/QrCode.js.map +1 -0
- package/dist/src/components/QrCode/QrCode.stories.d.ts +9 -0
- package/dist/src/components/QrCode/QrCode.stories.d.ts.map +1 -0
- package/dist/src/components/QrCode/QrCode.stories.js +29 -0
- package/dist/src/components/QrCode/QrCode.stories.js.map +1 -0
- package/dist/src/components/QrCode/index.d.ts +2 -0
- package/dist/src/components/QrCode/index.d.ts.map +1 -0
- package/dist/src/components/QrCode/index.js +21 -0
- package/dist/src/components/QrCode/index.js.map +1 -0
- package/dist/src/components/Tag/Tag.d.ts +8 -0
- package/dist/src/components/Tag/Tag.d.ts.map +1 -0
- package/dist/src/components/Tag/Tag.js +23 -0
- package/dist/src/components/Tag/Tag.js.map +1 -0
- package/dist/src/components/Tag/Tag.stories.d.ts +10 -0
- package/dist/src/components/Tag/Tag.stories.d.ts.map +1 -0
- package/dist/src/components/Tag/Tag.stories.js +24 -0
- package/dist/src/components/Tag/Tag.stories.js.map +1 -0
- package/dist/src/components/Tag/index.d.ts +2 -0
- package/dist/src/components/Tag/index.d.ts.map +1 -0
- package/dist/src/components/Tag/index.js +21 -0
- package/dist/src/components/Tag/index.js.map +1 -0
- package/dist/src/components/Toast/Toast.d.ts +16 -0
- package/dist/src/components/Toast/Toast.d.ts.map +1 -0
- package/dist/src/components/Toast/Toast.js +54 -0
- package/dist/src/components/Toast/Toast.js.map +1 -0
- package/dist/src/components/Toast/Toast.stories.d.ts +9 -0
- package/dist/src/components/Toast/Toast.stories.d.ts.map +1 -0
- package/dist/src/components/Toast/Toast.stories.js +32 -0
- package/dist/src/components/Toast/Toast.stories.js.map +1 -0
- package/dist/src/components/Toast/index.d.ts +2 -0
- package/dist/src/components/Toast/index.d.ts.map +1 -0
- package/dist/src/components/Toast/index.js +21 -0
- package/dist/src/components/Toast/index.js.map +1 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +10 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/src/components/Tooltip/Tooltip.js +50 -0
- package/dist/src/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/src/components/Tooltip/Tooltip.stories.d.ts +9 -0
- package/dist/src/components/Tooltip/Tooltip.stories.d.ts.map +1 -0
- package/dist/src/components/Tooltip/Tooltip.stories.js +30 -0
- package/dist/src/components/Tooltip/Tooltip.stories.js.map +1 -0
- package/dist/src/components/Tooltip/index.d.ts +2 -0
- package/dist/src/components/Tooltip/index.d.ts.map +1 -0
- package/dist/src/components/Tooltip/index.js +21 -0
- package/dist/src/components/Tooltip/index.js.map +1 -0
- package/dist/src/components/UiProvider/UiProvider.d.ts +10 -0
- package/dist/src/components/UiProvider/UiProvider.d.ts.map +1 -0
- package/dist/src/components/UiProvider/UiProvider.js +21 -0
- package/dist/src/components/UiProvider/UiProvider.js.map +1 -0
- package/dist/src/components/UiProvider/index.d.ts +2 -0
- package/dist/src/components/UiProvider/index.d.ts.map +1 -0
- package/dist/src/components/UiProvider/index.js +21 -0
- package/dist/src/components/UiProvider/index.js.map +1 -0
- package/dist/src/components/index.d.ts +18 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/components/index.js +37 -0
- package/dist/src/components/index.js.map +1 -0
- package/dist/src/hooks/index.d.ts +2 -0
- package/dist/src/hooks/index.d.ts.map +1 -0
- package/dist/src/hooks/index.js +21 -0
- package/dist/src/hooks/index.js.map +1 -0
- package/dist/src/hooks/useId.d.ts +2 -0
- package/dist/src/hooks/useId.d.ts.map +1 -0
- package/dist/src/hooks/useId.js +19 -0
- package/dist/src/hooks/useId.js.map +1 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +24 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/plugin.d.ts +9 -0
- package/dist/src/plugin.d.ts.map +1 -0
- package/dist/src/plugin.js +268 -0
- package/dist/src/plugin.js.map +1 -0
- package/dist/src/props/Elevation.d.ts +2 -0
- package/dist/src/props/Elevation.d.ts.map +1 -0
- package/dist/src/props/Elevation.js +6 -0
- package/dist/src/props/Elevation.js.map +1 -0
- package/dist/src/props/MessageValence.d.ts +2 -0
- package/dist/src/props/MessageValence.d.ts.map +1 -0
- package/dist/src/props/MessageValence.js +6 -0
- package/dist/src/props/MessageValence.js.map +1 -0
- package/dist/src/props/Size.d.ts +2 -0
- package/dist/src/props/Size.d.ts.map +1 -0
- package/dist/src/props/Size.js +6 -0
- package/dist/src/props/Size.js.map +1 -0
- package/dist/src/props/index.d.ts +4 -0
- package/dist/src/props/index.d.ts.map +1 -0
- package/dist/src/props/index.js +23 -0
- package/dist/src/props/index.js.map +1 -0
- package/dist/src/styles/active.d.ts +2 -0
- package/dist/src/styles/active.d.ts.map +1 -0
- package/dist/src/styles/active.js +12 -0
- package/dist/src/styles/active.js.map +1 -0
- package/dist/src/styles/disabled.d.ts +2 -0
- package/dist/src/styles/disabled.d.ts.map +1 -0
- package/dist/src/styles/disabled.js +8 -0
- package/dist/src/styles/disabled.js.map +1 -0
- package/dist/src/styles/focus.d.ts +2 -0
- package/dist/src/styles/focus.d.ts.map +1 -0
- package/dist/src/styles/focus.js +8 -0
- package/dist/src/styles/focus.js.map +1 -0
- package/dist/src/styles/group.d.ts +5 -0
- package/dist/src/styles/group.d.ts.map +1 -0
- package/dist/src/styles/group.js +26 -0
- package/dist/src/styles/group.js.map +1 -0
- package/dist/src/styles/hover.d.ts +4 -0
- package/dist/src/styles/hover.d.ts.map +1 -0
- package/dist/src/styles/hover.js +12 -0
- package/dist/src/styles/hover.js.map +1 -0
- package/dist/src/styles/index.d.ts +10 -0
- package/dist/src/styles/index.d.ts.map +1 -0
- package/dist/src/styles/index.js +29 -0
- package/dist/src/styles/index.js.map +1 -0
- package/dist/src/styles/ornament.d.ts +3 -0
- package/dist/src/styles/ornament.d.ts.map +1 -0
- package/dist/src/styles/ornament.js +9 -0
- package/dist/src/styles/ornament.js.map +1 -0
- package/dist/src/styles/size.d.ts +7 -0
- package/dist/src/styles/size.d.ts.map +1 -0
- package/dist/src/styles/size.js +89 -0
- package/dist/src/styles/size.js.map +1 -0
- package/dist/src/styles/text.d.ts +5 -0
- package/dist/src/styles/text.d.ts.map +1 -0
- package/dist/src/styles/text.js +11 -0
- package/dist/src/styles/text.js.map +1 -0
- package/dist/src/styles/valence.d.ts +19 -0
- package/dist/src/styles/valence.d.ts.map +1 -0
- package/dist/src/styles/valence.js +66 -0
- package/dist/src/styles/valence.js.map +1 -0
- package/dist/src/testing/index.d.ts +2 -0
- package/dist/src/testing/index.d.ts.map +1 -0
- package/dist/src/testing/index.js +21 -0
- package/dist/src/testing/index.js.map +1 -0
- package/dist/src/testing/templateForComponent.d.ts +4 -0
- package/dist/src/testing/templateForComponent.d.ts.map +1 -0
- package/dist/src/testing/templateForComponent.js +18 -0
- package/dist/src/testing/templateForComponent.js.map +1 -0
- package/dist/src/theme.css +62 -0
- package/package.json +55 -0
- package/src/components/Alert/Alert.stories.tsx +31 -0
- package/src/components/Alert/Alert.tsx +34 -0
- package/src/components/Alert/index.ts +5 -0
- package/src/components/Avatar/Avatar.stories.tsx +29 -0
- package/src/components/Avatar/Avatar.tsx +82 -0
- package/src/components/Avatar/index.ts +5 -0
- package/src/components/Button/Button.stories.tsx +43 -0
- package/src/components/Button/Button.tsx +20 -0
- package/src/components/Button/ButtonProps.ts +10 -0
- package/src/components/Button/buttonStyles.ts +32 -0
- package/src/components/Button/index.ts +7 -0
- package/src/components/CompoundButton/CompoundButton.stories.tsx +46 -0
- package/src/components/CompoundButton/CompoundButton.tsx +53 -0
- package/src/components/CompoundButton/index.ts +5 -0
- package/src/components/Dialog/Dialog.stories.tsx +37 -0
- package/src/components/Dialog/Dialog.tsx +124 -0
- package/src/components/Dialog/index.ts +5 -0
- package/src/components/Group/Group.stories.tsx +25 -0
- package/src/components/Group/Group.tsx +48 -0
- package/src/components/Group/index.ts +5 -0
- package/src/components/Heading/Heading.stories.tsx +29 -0
- package/src/components/Heading/Heading.tsx +28 -0
- package/src/components/Heading/index.ts +5 -0
- package/src/components/Input/Input.stories.tsx +91 -0
- package/src/components/Input/Input.tsx +132 -0
- package/src/components/Input/index.ts +5 -0
- package/src/components/Loading/Loading.stories.tsx +34 -0
- package/src/components/Loading/Loading.tsx +59 -0
- package/src/components/Loading/index.ts +5 -0
- package/src/components/Main/Main.tsx +14 -0
- package/src/components/Main/index.ts +5 -0
- package/src/components/NavMenu/NavMenu.stories.tsx +54 -0
- package/src/components/NavMenu/NavMenu.tsx +180 -0
- package/src/components/NavMenu/index.ts +5 -0
- package/src/components/Popover/Popover.stories.tsx +45 -0
- package/src/components/Popover/Popover.tsx +76 -0
- package/src/components/Popover/index.ts +5 -0
- package/src/components/QrCode/QrCode.stories.tsx +27 -0
- package/src/components/QrCode/QrCode.tsx +42 -0
- package/src/components/QrCode/index.ts +5 -0
- package/src/components/Toast/Toast.stories.tsx +31 -0
- package/src/components/Toast/Toast.tsx +84 -0
- package/src/components/Toast/index.ts +5 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +28 -0
- package/src/components/Tooltip/Tooltip.tsx +57 -0
- package/src/components/Tooltip/index.ts +5 -0
- package/src/components/UiProvider/UiProvider.tsx +44 -0
- package/src/components/UiProvider/index.ts +5 -0
- package/src/components/index.ts +20 -0
- package/src/hooks/index.ts +5 -0
- package/src/hooks/useId.ts +21 -0
- package/src/index.ts +8 -0
- package/src/plugin.ts +270 -0
- package/src/props/MessageValence.ts +5 -0
- package/src/props/Size.ts +40 -0
- package/src/props/index.ts +6 -0
- package/src/styles/active.ts +11 -0
- package/src/styles/disabled.ts +5 -0
- package/src/styles/focus.ts +6 -0
- package/src/styles/hover.ts +10 -0
- package/src/styles/index.ts +11 -0
- package/src/styles/size.ts +87 -0
- package/src/styles/text.ts +10 -0
- package/src/styles/valence.ts +71 -0
- package/src/testing/index.ts +5 -0
- package/src/testing/templateForComponent.tsx +16 -0
- package/src/theme.css +62 -0
- package/src/typings.d.ts +7 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const defaultFocus = "focus:outline-none focus-visible:hover:outline-none dark:focus-visible:hover:outline-none focus-visible:ring focus-visible:ring-offset-1 focus-visible:ring-primary-500 focus-visible:ring-offset-white dark:focus-visible:ring-primary-200 dark:focus-visible:ring-offset-black";
|
|
2
|
+
//# sourceMappingURL=focus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../../src/styles/focus.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,qRAC2P,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2022 DXOS.org
|
|
4
|
+
//
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.defaultFocus = void 0;
|
|
7
|
+
exports.defaultFocus = 'focus:outline-none focus-visible:hover:outline-none dark:focus-visible:hover:outline-none focus-visible:ring focus-visible:ring-offset-1 focus-visible:ring-primary-500 focus-visible:ring-offset-white dark:focus-visible:ring-primary-200 dark:focus-visible:ring-offset-black';
|
|
8
|
+
//# sourceMappingURL=focus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus.js","sourceRoot":"","sources":["../../../src/styles/focus.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEW,QAAA,YAAY,GACvB,kRAAkR,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../src/styles/group.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAYrC,eAAO,MAAM,YAAY;eAAgC,SAAS;YAQjE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2022 DXOS.org
|
|
4
|
+
//
|
|
5
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.defaultGroup = void 0;
|
|
10
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
11
|
+
const elevationClassNameMap = new Map([
|
|
12
|
+
[0, 'shadow-none'],
|
|
13
|
+
[1, 'shadow-sm'],
|
|
14
|
+
[2, 'shadow'],
|
|
15
|
+
[3, 'shadow-md'],
|
|
16
|
+
[4, 'shadow-lg'],
|
|
17
|
+
[5, 'shadow-xl'],
|
|
18
|
+
[6, 'shadow-2xl']
|
|
19
|
+
]);
|
|
20
|
+
const defaultGroup = ({ elevation }) => {
|
|
21
|
+
return (0, classnames_1.default)('rounded-lg p-4', elevation === 0
|
|
22
|
+
? 'bg-transparent border border-neutral-200 dark:border-neutral-700'
|
|
23
|
+
: 'bg-white dark:bg-neutral-800 elevated-buttons', elevationClassNameMap.get(elevation));
|
|
24
|
+
};
|
|
25
|
+
exports.defaultGroup = defaultGroup;
|
|
26
|
+
//# sourceMappingURL=group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../../src/styles/group.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,4DAA4B;AAI5B,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAiB;IACpD,CAAC,CAAC,EAAE,aAAa,CAAC;IAClB,CAAC,CAAC,EAAE,WAAW,CAAC;IAChB,CAAC,CAAC,EAAE,QAAQ,CAAC;IACb,CAAC,CAAC,EAAE,WAAW,CAAC;IAChB,CAAC,CAAC,EAAE,WAAW,CAAC;IAChB,CAAC,CAAC,EAAE,WAAW,CAAC;IAChB,CAAC,CAAC,EAAE,YAAY,CAAC;CAClB,CAAC,CAAC;AAEI,MAAM,YAAY,GAAG,CAAC,EAAE,SAAS,EAA4B,EAAE,EAAE;IACtE,OAAO,IAAA,oBAAE,EACP,gBAAgB,EAChB,SAAS,KAAK,CAAC;QACb,CAAC,CAAC,kEAAkE;QACpE,CAAC,CAAC,+CAA+C,EACnD,qBAAqB,CAAC,GAAG,CAAC,SAAS,CAAC,CACrC,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,YAAY,gBAQvB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const defaultHover: ({ disabled }: {
|
|
2
|
+
disabled?: boolean | undefined;
|
|
3
|
+
}) => false | "outline outline-3 outline-transparent hover:outline-primary-300 dark:hover:outline-primary-400 hover:focus:outline-primary-300 dark:hover:focus:outline-primary-400";
|
|
4
|
+
//# sourceMappingURL=hover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hover.d.ts","sourceRoot":"","sources":["../../../src/styles/hover.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;mLAKxB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2022 DXOS.org
|
|
4
|
+
//
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.defaultHover = void 0;
|
|
7
|
+
const defaultHover = ({ disabled }) => {
|
|
8
|
+
return (!disabled &&
|
|
9
|
+
'outline outline-3 outline-transparent hover:outline-primary-300 dark:hover:outline-primary-400 hover:focus:outline-primary-300 dark:hover:focus:outline-primary-400');
|
|
10
|
+
};
|
|
11
|
+
exports.defaultHover = defaultHover;
|
|
12
|
+
//# sourceMappingURL=hover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hover.js","sourceRoot":"","sources":["../../../src/styles/hover.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEK,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,EAA0B,EAAE,EAAE;IACnE,OAAO,CACL,CAAC,QAAQ;QACT,qKAAqK,CACtK,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,YAAY,gBAKvB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './active';
|
|
2
|
+
export * from './disabled';
|
|
3
|
+
export * from './focus';
|
|
4
|
+
export * from './group';
|
|
5
|
+
export * from './hover';
|
|
6
|
+
export * from './ornament';
|
|
7
|
+
export * from './size';
|
|
8
|
+
export * from './text';
|
|
9
|
+
export * from './valence';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/styles/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2022 DXOS.org
|
|
4
|
+
//
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
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("./active"), exports);
|
|
21
|
+
__exportStar(require("./disabled"), exports);
|
|
22
|
+
__exportStar(require("./focus"), exports);
|
|
23
|
+
__exportStar(require("./group"), exports);
|
|
24
|
+
__exportStar(require("./hover"), exports);
|
|
25
|
+
__exportStar(require("./ornament"), exports);
|
|
26
|
+
__exportStar(require("./size"), exports);
|
|
27
|
+
__exportStar(require("./text"), exports);
|
|
28
|
+
__exportStar(require("./valence"), exports);
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/styles/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;AAEF,2CAAyB;AACzB,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B;AAC3B,yCAAuB;AACvB,yCAAuB;AACvB,4CAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ornament.d.ts","sourceRoot":"","sources":["../../../src/styles/ornament.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,yDAAyD,CAAC;AAC7F,eAAO,MAAM,qBAAqB,yDAAyD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2022 DXOS.org
|
|
4
|
+
//
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.defaultBlockSeparator = exports.defaultInlineSeparator = void 0;
|
|
7
|
+
exports.defaultInlineSeparator = 'border-is border-neutral-300 dark:border-neutral-700';
|
|
8
|
+
exports.defaultBlockSeparator = 'border-bs border-neutral-300 dark:border-neutral-700';
|
|
9
|
+
//# sourceMappingURL=ornament.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ornament.js","sourceRoot":"","sources":["../../../src/styles/ornament.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEW,QAAA,sBAAsB,GAAG,sDAAsD,CAAC;AAChF,QAAA,qBAAqB,GAAG,sDAAsD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Size } from '../props/Size';
|
|
2
|
+
export declare const sizeWidthMap: Map<Size, string>;
|
|
3
|
+
export declare const sizeHeightMap: Map<Size, string>;
|
|
4
|
+
export declare const getSizeHeight: (key: Size) => string | undefined;
|
|
5
|
+
export declare const getSizeWidth: (key: Size) => string | undefined;
|
|
6
|
+
export declare const getSize: (size: Size) => string;
|
|
7
|
+
//# sourceMappingURL=size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../../src/styles/size.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,YAAY,mBAoCvB,CAAC;AAEH,eAAO,MAAM,aAAa,mBAoCxB,CAAC;AAEH,eAAO,MAAM,aAAa,mCAAwC,CAAC;AACnE,eAAO,MAAM,YAAY,mCAAsC,CAAC;AAChE,eAAO,MAAM,OAAO,SAAU,IAAI,WAAgD,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2022 DXOS.org
|
|
4
|
+
//
|
|
5
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.getSize = exports.getSizeWidth = exports.getSizeHeight = exports.sizeHeightMap = exports.sizeWidthMap = void 0;
|
|
10
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
11
|
+
exports.sizeWidthMap = new Map([
|
|
12
|
+
[0, 'w-0'],
|
|
13
|
+
['px', 'w-px'],
|
|
14
|
+
[0.5, 'w-0.5'],
|
|
15
|
+
[1, 'w-1'],
|
|
16
|
+
[1.5, 'w-1.5'],
|
|
17
|
+
[2, 'w-2'],
|
|
18
|
+
[2.5, 'w-2.5'],
|
|
19
|
+
[3, 'w-3'],
|
|
20
|
+
[3.5, 'w-3.5'],
|
|
21
|
+
[4, 'w-4'],
|
|
22
|
+
[5, 'w-5'],
|
|
23
|
+
[6, 'w-6'],
|
|
24
|
+
[7, 'w-7'],
|
|
25
|
+
[8, 'w-8'],
|
|
26
|
+
[9, 'w-9'],
|
|
27
|
+
[10, 'w-10'],
|
|
28
|
+
[11, 'w-11'],
|
|
29
|
+
[12, 'w-12'],
|
|
30
|
+
[14, 'w-14'],
|
|
31
|
+
[16, 'w-16'],
|
|
32
|
+
[20, 'w-20'],
|
|
33
|
+
[24, 'w-24'],
|
|
34
|
+
[28, 'w-28'],
|
|
35
|
+
[32, 'w-32'],
|
|
36
|
+
[36, 'w-36'],
|
|
37
|
+
[40, 'w-40'],
|
|
38
|
+
[44, 'w-44'],
|
|
39
|
+
[48, 'w-48'],
|
|
40
|
+
[52, 'w-52'],
|
|
41
|
+
[56, 'w-56'],
|
|
42
|
+
[60, 'w-60'],
|
|
43
|
+
[64, 'w-64'],
|
|
44
|
+
[72, 'w-72'],
|
|
45
|
+
[80, 'w-80'],
|
|
46
|
+
[96, 'w-96']
|
|
47
|
+
]);
|
|
48
|
+
exports.sizeHeightMap = new Map([
|
|
49
|
+
[0, 'h-0'],
|
|
50
|
+
['px', 'h-px'],
|
|
51
|
+
[0.5, 'h-0.5'],
|
|
52
|
+
[1, 'h-1'],
|
|
53
|
+
[1.5, 'h-1.5'],
|
|
54
|
+
[2, 'h-2'],
|
|
55
|
+
[2.5, 'h-2.5'],
|
|
56
|
+
[3, 'h-3'],
|
|
57
|
+
[3.5, 'h-3.5'],
|
|
58
|
+
[4, 'h-4'],
|
|
59
|
+
[5, 'h-5'],
|
|
60
|
+
[6, 'h-6'],
|
|
61
|
+
[7, 'h-7'],
|
|
62
|
+
[8, 'h-8'],
|
|
63
|
+
[9, 'h-9'],
|
|
64
|
+
[10, 'h-10'],
|
|
65
|
+
[11, 'h-11'],
|
|
66
|
+
[12, 'h-12'],
|
|
67
|
+
[14, 'h-14'],
|
|
68
|
+
[16, 'h-16'],
|
|
69
|
+
[20, 'h-20'],
|
|
70
|
+
[24, 'h-24'],
|
|
71
|
+
[28, 'h-28'],
|
|
72
|
+
[32, 'h-32'],
|
|
73
|
+
[36, 'h-36'],
|
|
74
|
+
[40, 'h-40'],
|
|
75
|
+
[44, 'h-44'],
|
|
76
|
+
[48, 'h-48'],
|
|
77
|
+
[52, 'h-52'],
|
|
78
|
+
[56, 'h-56'],
|
|
79
|
+
[60, 'h-60'],
|
|
80
|
+
[64, 'h-64'],
|
|
81
|
+
[72, 'h-72'],
|
|
82
|
+
[80, 'h-80'],
|
|
83
|
+
[96, 'h-96']
|
|
84
|
+
]);
|
|
85
|
+
exports.getSizeHeight = exports.sizeHeightMap.get.bind(exports.sizeHeightMap);
|
|
86
|
+
exports.getSizeWidth = exports.sizeWidthMap.get.bind(exports.sizeWidthMap);
|
|
87
|
+
const getSize = (size) => (0, classnames_1.default)((0, exports.getSizeHeight)(size), (0, exports.getSizeWidth)(size));
|
|
88
|
+
exports.getSize = getSize;
|
|
89
|
+
//# sourceMappingURL=size.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"size.js","sourceRoot":"","sources":["../../../src/styles/size.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const defaultPlaceholder = "placeholder-neutral-500 dark:placeholder-neutral-400";
|
|
2
|
+
export declare const defaultDescription = "text-xs font-normal text-neutral-650 dark:text-neutral-300";
|
|
3
|
+
export declare const primaryDescription = "text-xs font-normal text-white/90";
|
|
4
|
+
export declare const defaultTooltip = "text-xs font-normal text-neutral-900 dark:text-neutral-50";
|
|
5
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/styles/text.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,yDAAyD,CAAC;AAEzF,eAAO,MAAM,kBAAkB,+DAA+D,CAAC;AAC/F,eAAO,MAAM,kBAAkB,sCAAsC,CAAC;AAEtE,eAAO,MAAM,cAAc,8DAA8D,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2022 DXOS.org
|
|
4
|
+
//
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.defaultTooltip = exports.primaryDescription = exports.defaultDescription = exports.defaultPlaceholder = void 0;
|
|
7
|
+
exports.defaultPlaceholder = 'placeholder-neutral-500 dark:placeholder-neutral-400';
|
|
8
|
+
exports.defaultDescription = 'text-xs font-normal text-neutral-650 dark:text-neutral-300';
|
|
9
|
+
exports.primaryDescription = 'text-xs font-normal text-white/90';
|
|
10
|
+
exports.defaultTooltip = 'text-xs font-normal text-neutral-900 dark:text-neutral-50';
|
|
11
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../src/styles/text.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEW,QAAA,kBAAkB,GAAG,sDAAsD,CAAC;AAE5E,QAAA,kBAAkB,GAAG,4DAA4D,CAAC;AAClF,QAAA,kBAAkB,GAAG,mCAAmC,CAAC;AAEzD,QAAA,cAAc,GAAG,2DAA2D,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MessageValence } from '../props';
|
|
2
|
+
export declare const successText = "text-xs font-medium text-success-700 dark:text-success-300";
|
|
3
|
+
export declare const infoText = "text-xs font-medium text-info-700 dark:text-info-300";
|
|
4
|
+
export declare const warningText = "text-xs font-medium text-warning-700 dark:text-warning-300";
|
|
5
|
+
export declare const errorText = "text-xs font-medium text-error-700 dark:text-error-300";
|
|
6
|
+
export declare const valenceColorText: (valence?: MessageValence) => "text-xs font-medium text-success-700 dark:text-success-300" | "text-xs font-medium text-info-700 dark:text-info-300" | "text-xs font-medium text-warning-700 dark:text-warning-300" | "text-xs font-medium text-error-700 dark:text-error-300" | undefined;
|
|
7
|
+
export declare const neutralInputBorder = "border-neutral-500 dark:border-neutral-600";
|
|
8
|
+
export declare const successInputBorder = "border-success-500 dark:border-success-600";
|
|
9
|
+
export declare const infoInputBorder = "border-info-500 dark:border-info-600";
|
|
10
|
+
export declare const warningInputBorder = "border-warning-500 dark:border-warning-600";
|
|
11
|
+
export declare const errorInputBorder = "border-error-500 dark:border-error-600";
|
|
12
|
+
export declare const valenceInputBorder: (valence?: MessageValence) => "border-neutral-500 dark:border-neutral-600" | "border-success-500 dark:border-success-600" | "border-info-500 dark:border-info-600" | "border-warning-500 dark:border-warning-600" | "border-error-500 dark:border-error-600";
|
|
13
|
+
export declare const neutralAlertColors = "border-neutral-500 dark:border-neutral-600";
|
|
14
|
+
export declare const successAlertColors = "border-success-500 dark:border-success-600 text-success-700 dark:text-success-100 bg-success-50 dark:bg-success-900";
|
|
15
|
+
export declare const infoAlertColors = "border-info-500 dark:border-info-600 text-info-700 dark:text-info-100 bg-info-50 dark:bg-info-900";
|
|
16
|
+
export declare const warningAlertColors = "border-warning-500 dark:border-warning-600 text-warning-700 dark:text-warning-100 bg-warning-50 dark:bg-warning-900";
|
|
17
|
+
export declare const errorAlertColors = "border-error-500 dark:border-error-600 text-error-700 dark:text-error-100 bg-error-50 dark:bg-error-900";
|
|
18
|
+
export declare const valenceAlertColors: (valence?: MessageValence) => "border-neutral-500 dark:border-neutral-600" | "border-success-500 dark:border-success-600 text-success-700 dark:text-success-100 bg-success-50 dark:bg-success-900" | "border-info-500 dark:border-info-600 text-info-700 dark:text-info-100 bg-info-50 dark:bg-info-900" | "border-warning-500 dark:border-warning-600 text-warning-700 dark:text-warning-100 bg-warning-50 dark:bg-warning-900" | "border-error-500 dark:border-error-600 text-error-700 dark:text-error-100 bg-error-50 dark:bg-error-900";
|
|
19
|
+
//# sourceMappingURL=valence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valence.d.ts","sourceRoot":"","sources":["../../../src/styles/valence.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,WAAW,+DAA+D,CAAC;AACxF,eAAO,MAAM,QAAQ,yDAAyD,CAAC;AAC/E,eAAO,MAAM,WAAW,+DAA+D,CAAC;AACxF,eAAO,MAAM,SAAS,2DAA2D,CAAC;AAElF,eAAO,MAAM,gBAAgB,aAAc,cAAc,gQAaxD,CAAC;AAEF,eAAO,MAAM,kBAAkB,+CAA+C,CAAC;AAC/E,eAAO,MAAM,kBAAkB,+CAA+C,CAAC;AAC/E,eAAO,MAAM,eAAe,yCAAyC,CAAC;AACtE,eAAO,MAAM,kBAAkB,+CAA+C,CAAC;AAC/E,eAAO,MAAM,gBAAgB,2CAA2C,CAAC;AAEzE,eAAO,MAAM,kBAAkB,aAAc,cAAc,mOAa1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,+CAA+C,CAAC;AAC/E,eAAO,MAAM,kBAAkB,wHACwF,CAAC;AACxH,eAAO,MAAM,eAAe,sGACyE,CAAC;AACtG,eAAO,MAAM,kBAAkB,wHACwF,CAAC;AACxH,eAAO,MAAM,gBAAgB,4GAC8E,CAAC;AAE5G,eAAO,MAAM,kBAAkB,aAAc,cAAc,mfAa1D,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2022 DXOS.org
|
|
4
|
+
//
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.valenceAlertColors = exports.errorAlertColors = exports.warningAlertColors = exports.infoAlertColors = exports.successAlertColors = exports.neutralAlertColors = exports.valenceInputBorder = exports.errorInputBorder = exports.warningInputBorder = exports.infoInputBorder = exports.successInputBorder = exports.neutralInputBorder = exports.valenceColorText = exports.errorText = exports.warningText = exports.infoText = exports.successText = void 0;
|
|
7
|
+
exports.successText = 'text-xs font-medium text-success-700 dark:text-success-300';
|
|
8
|
+
exports.infoText = 'text-xs font-medium text-info-700 dark:text-info-300';
|
|
9
|
+
exports.warningText = 'text-xs font-medium text-warning-700 dark:text-warning-300';
|
|
10
|
+
exports.errorText = 'text-xs font-medium text-error-700 dark:text-error-300';
|
|
11
|
+
const valenceColorText = (valence) => {
|
|
12
|
+
switch (valence) {
|
|
13
|
+
case 'success':
|
|
14
|
+
return exports.successText;
|
|
15
|
+
case 'info':
|
|
16
|
+
return exports.infoText;
|
|
17
|
+
case 'warning':
|
|
18
|
+
return exports.warningText;
|
|
19
|
+
case 'error':
|
|
20
|
+
return exports.errorText;
|
|
21
|
+
default:
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.valenceColorText = valenceColorText;
|
|
26
|
+
exports.neutralInputBorder = 'border-neutral-500 dark:border-neutral-600';
|
|
27
|
+
exports.successInputBorder = 'border-success-500 dark:border-success-600';
|
|
28
|
+
exports.infoInputBorder = 'border-info-500 dark:border-info-600';
|
|
29
|
+
exports.warningInputBorder = 'border-warning-500 dark:border-warning-600';
|
|
30
|
+
exports.errorInputBorder = 'border-error-500 dark:border-error-600';
|
|
31
|
+
const valenceInputBorder = (valence) => {
|
|
32
|
+
switch (valence) {
|
|
33
|
+
case 'success':
|
|
34
|
+
return exports.successInputBorder;
|
|
35
|
+
case 'info':
|
|
36
|
+
return exports.infoInputBorder;
|
|
37
|
+
case 'warning':
|
|
38
|
+
return exports.warningInputBorder;
|
|
39
|
+
case 'error':
|
|
40
|
+
return exports.errorInputBorder;
|
|
41
|
+
default:
|
|
42
|
+
return exports.neutralInputBorder;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
exports.valenceInputBorder = valenceInputBorder;
|
|
46
|
+
exports.neutralAlertColors = 'border-neutral-500 dark:border-neutral-600';
|
|
47
|
+
exports.successAlertColors = 'border-success-500 dark:border-success-600 text-success-700 dark:text-success-100 bg-success-50 dark:bg-success-900';
|
|
48
|
+
exports.infoAlertColors = 'border-info-500 dark:border-info-600 text-info-700 dark:text-info-100 bg-info-50 dark:bg-info-900';
|
|
49
|
+
exports.warningAlertColors = 'border-warning-500 dark:border-warning-600 text-warning-700 dark:text-warning-100 bg-warning-50 dark:bg-warning-900';
|
|
50
|
+
exports.errorAlertColors = 'border-error-500 dark:border-error-600 text-error-700 dark:text-error-100 bg-error-50 dark:bg-error-900';
|
|
51
|
+
const valenceAlertColors = (valence) => {
|
|
52
|
+
switch (valence) {
|
|
53
|
+
case 'success':
|
|
54
|
+
return exports.successAlertColors;
|
|
55
|
+
case 'info':
|
|
56
|
+
return exports.infoAlertColors;
|
|
57
|
+
case 'warning':
|
|
58
|
+
return exports.warningAlertColors;
|
|
59
|
+
case 'error':
|
|
60
|
+
return exports.errorAlertColors;
|
|
61
|
+
default:
|
|
62
|
+
return exports.neutralAlertColors;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
exports.valenceAlertColors = valenceAlertColors;
|
|
66
|
+
//# sourceMappingURL=valence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valence.js","sourceRoot":"","sources":["../../../src/styles/valence.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAIW,QAAA,WAAW,GAAG,4DAA4D,CAAC;AAC3E,QAAA,QAAQ,GAAG,sDAAsD,CAAC;AAClE,QAAA,WAAW,GAAG,4DAA4D,CAAC;AAC3E,QAAA,SAAS,GAAG,wDAAwD,CAAC;AAE3E,MAAM,gBAAgB,GAAG,CAAC,OAAwB,EAAE,EAAE;IAC3D,QAAQ,OAAO,EAAE;QACf,KAAK,SAAS;YACZ,OAAO,mBAAW,CAAC;QACrB,KAAK,MAAM;YACT,OAAO,gBAAQ,CAAC;QAClB,KAAK,SAAS;YACZ,OAAO,mBAAW,CAAC;QACrB,KAAK,OAAO;YACV,OAAO,iBAAS,CAAC;QACnB;YACE,OAAO,SAAS,CAAC;KACpB;AACH,CAAC,CAAC;AAbW,QAAA,gBAAgB,oBAa3B;AAEW,QAAA,kBAAkB,GAAG,4CAA4C,CAAC;AAClE,QAAA,kBAAkB,GAAG,4CAA4C,CAAC;AAClE,QAAA,eAAe,GAAG,sCAAsC,CAAC;AACzD,QAAA,kBAAkB,GAAG,4CAA4C,CAAC;AAClE,QAAA,gBAAgB,GAAG,wCAAwC,CAAC;AAElE,MAAM,kBAAkB,GAAG,CAAC,OAAwB,EAAE,EAAE;IAC7D,QAAQ,OAAO,EAAE;QACf,KAAK,SAAS;YACZ,OAAO,0BAAkB,CAAC;QAC5B,KAAK,MAAM;YACT,OAAO,uBAAe,CAAC;QACzB,KAAK,SAAS;YACZ,OAAO,0BAAkB,CAAC;QAC5B,KAAK,OAAO;YACV,OAAO,wBAAgB,CAAC;QAC1B;YACE,OAAO,0BAAkB,CAAC;KAC7B;AACH,CAAC,CAAC;AAbW,QAAA,kBAAkB,sBAa7B;AAEW,QAAA,kBAAkB,GAAG,4CAA4C,CAAC;AAClE,QAAA,kBAAkB,GAC7B,qHAAqH,CAAC;AAC3G,QAAA,eAAe,GAC1B,mGAAmG,CAAC;AACzF,QAAA,kBAAkB,GAC7B,qHAAqH,CAAC;AAC3G,QAAA,gBAAgB,GAC3B,yGAAyG,CAAC;AAErG,MAAM,kBAAkB,GAAG,CAAC,OAAwB,EAAE,EAAE;IAC7D,QAAQ,OAAO,EAAE;QACf,KAAK,SAAS;YACZ,OAAO,0BAAkB,CAAC;QAC5B,KAAK,MAAM;YACT,OAAO,uBAAe,CAAC;QACzB,KAAK,SAAS;YACZ,OAAO,0BAAkB,CAAC;QAC5B,KAAK,OAAO;YACV,OAAO,wBAAgB,CAAC;QAC1B;YACE,OAAO,0BAAkB,CAAC;KAC7B;AACH,CAAC,CAAC;AAbW,QAAA,kBAAkB,sBAa7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2022 DXOS.org
|
|
4
|
+
//
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
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("./templateForComponent"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;AAEF,yDAAuC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateForComponent.d.ts","sourceRoot":"","sources":["../../../src/testing/templateForComponent.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAkB,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,eAAO,MAAM,oBAAoB,kEAQ9B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2022 DXOS.org
|
|
4
|
+
//
|
|
5
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.templateForComponent = void 0;
|
|
10
|
+
const react_1 = __importDefault(require("react"));
|
|
11
|
+
const templateForComponent = (Component) => (props) => {
|
|
12
|
+
const template = (args) => react_1.default.createElement(Component, { ...args });
|
|
13
|
+
const story = template.bind({});
|
|
14
|
+
story.args = props;
|
|
15
|
+
return story;
|
|
16
|
+
};
|
|
17
|
+
exports.templateForComponent = templateForComponent;
|
|
18
|
+
//# sourceMappingURL=templateForComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateForComponent.js","sourceRoot":"","sources":["../../../src/testing/templateForComponent.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAGF,kDAAkC;AAE3B,MAAM,oBAAoB,GAC/B,CAAe,SAAgB,EAAE,EAAE,CACnC,CAAC,KAAQ,EAAY,EAAE;IACrB,MAAM,QAAQ,GAAqC,CAAC,IAAI,EAAE,EAAE,CAAC,8BAAC,SAAS,OAAK,IAAI,GAAI,CAAC;IAErF,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAChC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC;IACnB,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AARS,QAAA,oBAAoB,wBAQ7B"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@import '@fontsource/roboto-flex/variable-full.css';
|
|
2
|
+
@import '@fontsource/fira-code/variable.css';
|
|
3
|
+
@import '@fontsource/space-grotesk/variable-full.css';
|
|
4
|
+
|
|
5
|
+
@tailwind base;
|
|
6
|
+
@tailwind utilities;
|
|
7
|
+
@tailwind components;
|
|
8
|
+
|
|
9
|
+
@layer utilities {
|
|
10
|
+
/* Font weights */
|
|
11
|
+
.font-thin {
|
|
12
|
+
font-variation-settings: 'wght' 100;
|
|
13
|
+
}
|
|
14
|
+
.font-extralight {
|
|
15
|
+
font-variation-settings: 'wght' 200;
|
|
16
|
+
}
|
|
17
|
+
.font-light {
|
|
18
|
+
font-variation-settings: 'wght' 300;
|
|
19
|
+
}
|
|
20
|
+
.font-normal {
|
|
21
|
+
font-variation-settings: 'wght' 400;
|
|
22
|
+
}
|
|
23
|
+
.font-medium {
|
|
24
|
+
font-variation-settings: 'wght' 500;
|
|
25
|
+
}
|
|
26
|
+
.font-semibold {
|
|
27
|
+
font-variation-settings: 'wght' 600;
|
|
28
|
+
}
|
|
29
|
+
.font-bold {
|
|
30
|
+
font-variation-settings: 'wght' 700;
|
|
31
|
+
}
|
|
32
|
+
.font-extrabold {
|
|
33
|
+
font-variation-settings: 'wght' 800;
|
|
34
|
+
}
|
|
35
|
+
.font-black {
|
|
36
|
+
font-variation-settings: 'wght' 900;
|
|
37
|
+
}
|
|
38
|
+
/* Elevations */
|
|
39
|
+
.button-elevation {
|
|
40
|
+
box-shadow: var(--button-elevation)
|
|
41
|
+
}
|
|
42
|
+
.elevated-buttons {
|
|
43
|
+
--button-elevation: theme(boxShadow.sm);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:root {
|
|
48
|
+
--surface-bg: theme(colors.neutral.50);
|
|
49
|
+
--surface-text: theme(colors.neutral.900);
|
|
50
|
+
--button-elevation: theme(boxShadow.md);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.dark {
|
|
54
|
+
--surface-bg: theme(colors.neutral.900);
|
|
55
|
+
--surface-text: theme(colors.neutral.50);
|
|
56
|
+
--button-elevation: theme(boxShadow.lg);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
html {
|
|
60
|
+
background-color: var(--surface-bg);
|
|
61
|
+
color: var(--surface-text);
|
|
62
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dxos/react-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Vite plugin which configures a low-level design system for DXOS.",
|
|
5
|
+
"homepage": "https://dxos.org",
|
|
6
|
+
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"author": "DXOS.org",
|
|
9
|
+
"main": "dist/src/index.js",
|
|
10
|
+
"types": "dist/src/index.d.ts",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"src"
|
|
14
|
+
],
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@fontsource/fira-code": "^4.5.12",
|
|
17
|
+
"@fontsource/roboto-flex": "^4.5.2",
|
|
18
|
+
"@fontsource/space-grotesk": "^4.5.10",
|
|
19
|
+
"@headlessui/react": "^1.7.3",
|
|
20
|
+
"@radix-ui/react-avatar": "^1.0.1",
|
|
21
|
+
"@radix-ui/react-dialog": "^1.0.0",
|
|
22
|
+
"@radix-ui/react-navigation-menu": "^1.1.1",
|
|
23
|
+
"@radix-ui/react-popover": "^1.0.2",
|
|
24
|
+
"@radix-ui/react-toast": "^1.1.1",
|
|
25
|
+
"@radix-ui/react-tooltip": "^1.0.2",
|
|
26
|
+
"@tailwindcss/forms": "^0.5.3",
|
|
27
|
+
"alea": "^1.0.1",
|
|
28
|
+
"autoprefixer": "^10.4.12",
|
|
29
|
+
"classnames": "^2.3.2",
|
|
30
|
+
"jdenticon": "^3.2.0",
|
|
31
|
+
"postcss": "^8.4.17",
|
|
32
|
+
"qrcode.react": "^3.1.0",
|
|
33
|
+
"tailwindcss": "^3.1.8",
|
|
34
|
+
"tailwindcss-radix": "^2.6.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@dxos/vite-plugin": "0.1.0",
|
|
38
|
+
"@types/react": "^18.0.21",
|
|
39
|
+
"@types/react-dom": "^18.0.6",
|
|
40
|
+
"@vitejs/plugin-react": "^2.0.1",
|
|
41
|
+
"phosphor-react": "^1.4.1",
|
|
42
|
+
"react": "^18.2.0",
|
|
43
|
+
"react-dom": "^18.2.0",
|
|
44
|
+
"storybook-dark-mode": "^1.1.2",
|
|
45
|
+
"vite": "3.0.9"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"phosphor-react": "^1.4.1",
|
|
49
|
+
"react": "^18.2.0",
|
|
50
|
+
"react-dom": "^18.2.0"
|
|
51
|
+
},
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"access": "public"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2022 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import '@dxosTheme';
|
|
6
|
+
import { Info } from 'phosphor-react';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
|
|
9
|
+
import { templateForComponent } from '../../testing';
|
|
10
|
+
import { Alert, AlertProps } from './Alert';
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
title: 'react-ui/Alert',
|
|
14
|
+
component: Alert
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const Template = ({ children, ...props }: AlertProps) => {
|
|
18
|
+
return <Alert {...props}>{children}</Alert>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const Default = templateForComponent(Template)({ title: '' });
|
|
22
|
+
Default.args = {
|
|
23
|
+
title: (
|
|
24
|
+
<>
|
|
25
|
+
<Info className='inline w-5 h-5 mb-1' weight='duotone' />
|
|
26
|
+
{' Alert title'}
|
|
27
|
+
</>
|
|
28
|
+
),
|
|
29
|
+
valence: 'error',
|
|
30
|
+
children: 'Alert content'
|
|
31
|
+
};
|