@dxos/react-ui 0.1.12 → 0.1.14
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 +83 -5
- package/dist/lib/browser/index.mjs +2092 -0
- package/dist/lib/browser/index.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -0
- package/dist/plugin/node/esbuild-plugin.cjs +469 -0
- package/dist/plugin/node/esbuild-plugin.cjs.map +7 -0
- package/dist/plugin/node/meta.json +1 -0
- package/dist/plugin/node/plugin.cjs +460 -0
- package/dist/plugin/node/plugin.cjs.map +7 -0
- package/dist/{src → plugin/node}/theme.css +15 -19
- package/dist/plugin/node/theme.css.map +7 -0
- package/dist/{src → types/src}/components/Alert/Alert.d.ts +7 -2
- package/dist/types/src/components/Alert/Alert.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Alert/Alert.stories.d.ts +1 -1
- package/dist/types/src/components/Alert/Alert.stories.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Alert/index.d.ts +0 -0
- package/dist/types/src/components/Alert/index.d.ts.map +1 -0
- package/dist/types/src/components/AlertDialog/AlertDialog.d.ts +26 -0
- package/dist/types/src/components/AlertDialog/AlertDialog.d.ts.map +1 -0
- package/dist/{src → types/src}/components/AlertDialog/AlertDialog.stories.d.ts +1 -1
- package/dist/types/src/components/AlertDialog/AlertDialog.stories.d.ts.map +1 -0
- package/dist/{src → types/src}/components/AlertDialog/index.d.ts +0 -0
- package/dist/types/src/components/AlertDialog/index.d.ts.map +1 -0
- package/dist/types/src/components/Avatar/Avatar.d.ts +22 -0
- package/dist/types/src/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/types/src/components/Avatar/Avatar.stories.d.ts +12 -0
- package/dist/types/src/components/Avatar/Avatar.stories.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Avatar/index.d.ts +0 -0
- package/dist/types/src/components/Avatar/index.d.ts.map +1 -0
- package/dist/types/src/components/Button/Button.d.ts +4 -0
- package/dist/types/src/components/Button/Button.d.ts.map +1 -0
- package/dist/types/src/components/Button/Button.stories.d.ts +13 -0
- package/dist/types/src/components/Button/Button.stories.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Button/ButtonGroup.d.ts +0 -0
- package/dist/types/src/components/Button/ButtonGroup.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Button/ButtonProps.d.ts +0 -2
- package/dist/types/src/components/Button/ButtonProps.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Button/buttonStyles.d.ts +0 -0
- package/dist/types/src/components/Button/buttonStyles.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Button/index.d.ts +0 -0
- package/dist/types/src/components/Button/index.d.ts.map +1 -0
- package/dist/{src → types/src}/components/CompoundButton/CompoundButton.d.ts +0 -0
- package/dist/types/src/components/CompoundButton/CompoundButton.d.ts.map +1 -0
- package/dist/{src → types/src}/components/CompoundButton/CompoundButton.stories.d.ts +0 -0
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts.map +1 -0
- package/dist/{src → types/src}/components/CompoundButton/index.d.ts +0 -0
- package/dist/types/src/components/CompoundButton/index.d.ts.map +1 -0
- package/dist/types/src/components/Dialog/Dialog.d.ts +26 -0
- package/dist/types/src/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Dialog/Dialog.stories.d.ts +1 -1
- package/dist/types/src/components/Dialog/Dialog.stories.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Dialog/index.d.ts +0 -0
- package/dist/types/src/components/Dialog/index.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Group/Group.d.ts +1 -1
- package/dist/types/src/components/Group/Group.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Group/Group.stories.d.ts +1 -1
- package/dist/types/src/components/Group/Group.stories.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Group/index.d.ts +0 -0
- package/dist/types/src/components/Group/index.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Heading/Heading.d.ts +5 -8
- package/dist/types/src/components/Heading/Heading.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Heading/Heading.stories.d.ts +5 -8
- package/dist/{src → types/src}/components/Heading/Heading.stories.d.ts.map +1 -1
- package/dist/{src → types/src}/components/Heading/index.d.ts +0 -0
- package/dist/types/src/components/Heading/index.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Input/BarePinInput.d.ts +17 -16
- package/dist/types/src/components/Input/BarePinInput.d.ts.map +1 -0
- package/dist/types/src/components/Input/BareTextInput.d.ts +7 -0
- package/dist/types/src/components/Input/BareTextInput.d.ts.map +1 -0
- package/dist/types/src/components/Input/BareTextareaInput.d.ts +7 -0
- package/dist/types/src/components/Input/BareTextareaInput.d.ts.map +1 -0
- package/dist/types/src/components/Input/Input.d.ts +4 -0
- package/dist/types/src/components/Input/Input.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Input/Input.stories.d.ts +1 -1
- package/dist/types/src/components/Input/Input.stories.d.ts.map +1 -0
- package/dist/types/src/components/Input/InputProps.d.ts +37 -0
- package/dist/types/src/components/Input/InputProps.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Input/index.d.ts +0 -0
- package/dist/types/src/components/Input/index.d.ts.map +1 -0
- package/dist/types/src/components/Loading/Loading.d.ts +15 -0
- package/dist/types/src/components/Loading/Loading.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Loading/Loading.stories.d.ts +1 -3
- package/dist/types/src/components/Loading/Loading.stories.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Loading/index.d.ts +0 -0
- package/dist/types/src/components/Loading/index.d.ts.map +1 -0
- package/dist/{src → types/src}/components/NavMenu/NavMenu.d.ts +11 -3
- package/dist/types/src/components/NavMenu/NavMenu.d.ts.map +1 -0
- package/dist/{src → types/src}/components/NavMenu/NavMenu.stories.d.ts +1 -1
- package/dist/types/src/components/NavMenu/NavMenu.stories.d.ts.map +1 -0
- package/dist/{src → types/src}/components/NavMenu/index.d.ts +0 -0
- package/dist/types/src/components/NavMenu/index.d.ts.map +1 -0
- package/dist/types/src/components/Popover/Popover.d.ts +21 -0
- package/dist/types/src/components/Popover/Popover.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Popover/Popover.stories.d.ts +1 -1
- package/dist/types/src/components/Popover/Popover.stories.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Popover/index.d.ts +0 -0
- package/dist/types/src/components/Popover/index.d.ts.map +1 -0
- package/dist/types/src/components/QrCode/QrCode.d.ts +39 -0
- package/dist/types/src/components/QrCode/QrCode.d.ts.map +1 -0
- package/dist/{src → types/src}/components/QrCode/QrCode.stories.d.ts +1 -1
- package/dist/types/src/components/QrCode/QrCode.stories.d.ts.map +1 -0
- package/dist/{src → types/src}/components/QrCode/index.d.ts +0 -0
- package/dist/types/src/components/QrCode/index.d.ts.map +1 -0
- package/dist/types/src/components/Tag/Tag.d.ts +8 -0
- package/dist/types/src/components/Tag/Tag.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Tag/Tag.stories.d.ts +1 -1
- package/dist/types/src/components/Tag/Tag.stories.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Tag/index.d.ts +0 -0
- package/dist/types/src/components/Tag/index.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Toast/Toast.d.ts +10 -1
- package/dist/types/src/components/Toast/Toast.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Toast/Toast.stories.d.ts +1 -1
- package/dist/types/src/components/Toast/Toast.stories.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Toast/index.d.ts +0 -0
- package/dist/types/src/components/Toast/index.d.ts.map +1 -0
- package/dist/types/src/components/Tooltip/Tooltip.d.ts +19 -0
- package/dist/types/src/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts.map +1 -0
- package/dist/{src → types/src}/components/Tooltip/index.d.ts +0 -0
- package/dist/types/src/components/Tooltip/index.d.ts.map +1 -0
- package/dist/{src → types/src}/components/UiProvider/UiProvider.d.ts +1 -1
- package/dist/types/src/components/UiProvider/UiProvider.d.ts.map +1 -0
- package/dist/{src → types/src}/components/UiProvider/index.d.ts +0 -0
- package/dist/types/src/components/UiProvider/index.d.ts.map +1 -0
- package/dist/{src → types/src}/components/index.d.ts +0 -0
- package/dist/types/src/components/index.d.ts.map +1 -0
- package/dist/types/src/config/index.d.ts +2 -0
- package/dist/types/src/config/index.d.ts.map +1 -0
- package/dist/types/src/config/tailwind.d.ts +7 -0
- package/dist/types/src/config/tailwind.d.ts.map +1 -0
- package/dist/types/src/esbuild-plugin.d.ts +6 -0
- package/dist/types/src/esbuild-plugin.d.ts.map +1 -0
- package/dist/{src → types/src}/hooks/index.d.ts +0 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -0
- package/dist/{src → types/src}/hooks/useForwardedRef.d.ts +0 -0
- package/dist/types/src/hooks/useForwardedRef.d.ts.map +1 -0
- package/dist/{src → types/src}/hooks/useId.d.ts +0 -0
- package/dist/types/src/hooks/useId.d.ts.map +1 -0
- package/dist/{src → types/src}/hooks/useIsFocused.d.ts +0 -0
- package/dist/types/src/hooks/useIsFocused.d.ts.map +1 -0
- package/dist/{src → types/src}/index.d.ts +3 -2
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/{src → types/src}/plugin.d.ts +1 -1
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/props/Elevation.d.ts +2 -0
- package/dist/types/src/props/Elevation.d.ts.map +1 -0
- package/dist/types/src/props/MessageValence.d.ts +2 -0
- package/dist/types/src/props/MessageValence.d.ts.map +1 -0
- package/dist/types/src/props/Size.d.ts +2 -0
- package/dist/types/src/props/Size.d.ts.map +1 -0
- package/dist/{src → types/src}/props/index.d.ts +0 -0
- package/dist/types/src/props/index.d.ts.map +1 -0
- package/dist/{src → types/src}/styles/active.d.ts +0 -0
- package/dist/types/src/styles/active.d.ts.map +1 -0
- package/dist/{src → types/src}/styles/disabled.d.ts +0 -0
- package/dist/types/src/styles/disabled.d.ts.map +1 -0
- package/dist/{src → types/src}/styles/focus.d.ts +0 -0
- package/dist/types/src/styles/focus.d.ts.map +1 -0
- package/dist/{src → types/src}/styles/group.d.ts +0 -0
- package/dist/types/src/styles/group.d.ts.map +1 -0
- package/dist/{src → types/src}/styles/hover.d.ts +0 -0
- package/dist/types/src/styles/hover.d.ts.map +1 -0
- package/dist/{src → types/src}/styles/index.d.ts +0 -0
- package/dist/types/src/styles/index.d.ts.map +1 -0
- package/dist/types/src/styles/input.d.ts +11 -0
- package/dist/types/src/styles/input.d.ts.map +1 -0
- package/dist/{src → types/src}/styles/ornament.d.ts +0 -0
- package/dist/types/src/styles/ornament.d.ts.map +1 -0
- package/dist/{src → types/src}/styles/shimmer.d.ts +0 -0
- package/dist/types/src/styles/shimmer.d.ts.map +1 -0
- package/dist/{src → types/src}/styles/size.d.ts +1 -1
- package/dist/types/src/styles/size.d.ts.map +1 -0
- package/dist/{src → types/src}/styles/text.d.ts +0 -0
- package/dist/types/src/styles/text.d.ts.map +1 -0
- package/dist/{src → types/src}/styles/valence.d.ts +0 -0
- package/dist/types/src/styles/valence.d.ts.map +1 -0
- package/dist/{src → types/src}/testing/index.d.ts +0 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/{src → types/src}/testing/templateForComponent.d.ts +0 -0
- package/dist/types/src/testing/templateForComponent.d.ts.map +1 -0
- package/dist/types/src/util/index.d.ts +2 -0
- package/dist/types/src/util/index.d.ts.map +1 -0
- package/dist/types/src/util/mx.d.ts +2 -0
- package/dist/types/src/util/mx.d.ts.map +1 -0
- package/dist/types/src/util/withLogical.d.ts +3 -0
- package/dist/types/src/util/withLogical.d.ts.map +1 -0
- package/package.json +9 -5
- package/plugin.d.ts +1 -1
- package/plugin.js +1 -1
- package/src/components/Alert/Alert.tsx +12 -6
- package/src/components/AlertDialog/AlertDialog.tsx +31 -11
- package/src/components/Avatar/Avatar.tsx +35 -13
- package/src/components/Button/Button.tsx +11 -13
- package/src/components/Button/ButtonGroup.tsx +3 -2
- package/src/components/Button/ButtonProps.ts +0 -2
- package/src/components/Button/buttonStyles.ts +4 -7
- package/src/components/CompoundButton/CompoundButton.tsx +3 -3
- package/src/components/Dialog/Dialog.tsx +47 -14
- package/src/components/Group/Group.tsx +10 -5
- package/src/components/Heading/Heading.tsx +5 -4
- package/src/components/Input/BarePinInput.tsx +18 -13
- package/src/components/Input/BareTextInput.tsx +18 -15
- package/src/components/Input/BareTextareaInput.tsx +17 -16
- package/src/components/Input/Input.tsx +17 -23
- package/src/components/Input/InputProps.ts +23 -11
- package/src/components/Loading/Loading.tsx +18 -8
- package/src/components/NavMenu/NavMenu.stories.tsx +1 -1
- package/src/components/NavMenu/NavMenu.tsx +42 -19
- package/src/components/Popover/Popover.stories.tsx +7 -3
- package/src/components/Popover/Popover.tsx +54 -20
- package/src/components/QrCode/QrCode.tsx +61 -49
- package/src/components/Tag/Tag.tsx +6 -6
- package/src/components/Toast/Toast.tsx +48 -26
- package/src/components/Tooltip/Tooltip.tsx +32 -13
- package/src/components/UiProvider/UiProvider.tsx +3 -3
- package/src/config/index.ts +5 -0
- package/src/config/tailwind.ts +250 -0
- package/src/esbuild-plugin.ts +42 -0
- package/src/index.ts +3 -2
- package/src/plugin.ts +5 -240
- package/src/styles/active.ts +2 -2
- package/src/styles/group.ts +2 -3
- package/src/styles/input.ts +7 -26
- package/src/styles/size.ts +3 -4
- package/src/typings.d.ts +0 -1
- package/src/util/index.ts +5 -0
- package/src/util/mx.ts +28 -0
- package/src/util/withLogical.ts +103 -0
- package/dist/src/components/Alert/Alert.d.ts.map +0 -1
- package/dist/src/components/Alert/Alert.js +0 -21
- package/dist/src/components/Alert/Alert.js.map +0 -1
- package/dist/src/components/Alert/Alert.stories.d.ts.map +0 -1
- package/dist/src/components/Alert/Alert.stories.js +0 -30
- package/dist/src/components/Alert/Alert.stories.js.map +0 -1
- package/dist/src/components/Alert/index.d.ts.map +0 -1
- package/dist/src/components/Alert/index.js +0 -21
- package/dist/src/components/Alert/index.js.map +0 -1
- package/dist/src/components/AlertDialog/AlertDialog.d.ts +0 -17
- package/dist/src/components/AlertDialog/AlertDialog.d.ts.map +0 -1
- package/dist/src/components/AlertDialog/AlertDialog.js +0 -65
- package/dist/src/components/AlertDialog/AlertDialog.js.map +0 -1
- package/dist/src/components/AlertDialog/AlertDialog.stories.d.ts.map +0 -1
- package/dist/src/components/AlertDialog/AlertDialog.stories.js +0 -37
- package/dist/src/components/AlertDialog/AlertDialog.stories.js.map +0 -1
- package/dist/src/components/AlertDialog/index.d.ts.map +0 -1
- package/dist/src/components/AlertDialog/index.js +0 -21
- package/dist/src/components/AlertDialog/index.js.map +0 -1
- package/dist/src/components/Avatar/Avatar.d.ts +0 -13
- package/dist/src/components/Avatar/Avatar.d.ts.map +0 -1
- package/dist/src/components/Avatar/Avatar.js +0 -53
- package/dist/src/components/Avatar/Avatar.js.map +0 -1
- package/dist/src/components/Avatar/Avatar.stories.d.ts +0 -10
- package/dist/src/components/Avatar/Avatar.stories.d.ts.map +0 -1
- package/dist/src/components/Avatar/Avatar.stories.js +0 -30
- package/dist/src/components/Avatar/Avatar.stories.js.map +0 -1
- package/dist/src/components/Avatar/index.d.ts.map +0 -1
- package/dist/src/components/Avatar/index.js +0 -21
- package/dist/src/components/Avatar/index.js.map +0 -1
- package/dist/src/components/Button/Button.d.ts +0 -4
- package/dist/src/components/Button/Button.d.ts.map +0 -1
- package/dist/src/components/Button/Button.js +0 -37
- package/dist/src/components/Button/Button.js.map +0 -1
- package/dist/src/components/Button/Button.stories.d.ts +0 -13
- package/dist/src/components/Button/Button.stories.d.ts.map +0 -1
- package/dist/src/components/Button/Button.stories.js +0 -33
- package/dist/src/components/Button/Button.stories.js.map +0 -1
- package/dist/src/components/Button/ButtonGroup.d.ts.map +0 -1
- package/dist/src/components/Button/ButtonGroup.js +0 -16
- package/dist/src/components/Button/ButtonGroup.js.map +0 -1
- package/dist/src/components/Button/ButtonProps.d.ts.map +0 -1
- package/dist/src/components/Button/ButtonProps.js +0 -6
- package/dist/src/components/Button/ButtonProps.js.map +0 -1
- package/dist/src/components/Button/buttonStyles.d.ts.map +0 -1
- package/dist/src/components/Button/buttonStyles.js +0 -26
- package/dist/src/components/Button/buttonStyles.js.map +0 -1
- package/dist/src/components/Button/index.d.ts.map +0 -1
- package/dist/src/components/Button/index.js +0 -24
- package/dist/src/components/Button/index.js.map +0 -1
- package/dist/src/components/CompoundButton/CompoundButton.d.ts.map +0 -1
- package/dist/src/components/CompoundButton/CompoundButton.js +0 -27
- package/dist/src/components/CompoundButton/CompoundButton.js.map +0 -1
- package/dist/src/components/CompoundButton/CompoundButton.stories.d.ts.map +0 -1
- package/dist/src/components/CompoundButton/CompoundButton.stories.js +0 -40
- package/dist/src/components/CompoundButton/CompoundButton.stories.js.map +0 -1
- package/dist/src/components/CompoundButton/index.d.ts.map +0 -1
- package/dist/src/components/CompoundButton/index.js +0 -21
- package/dist/src/components/CompoundButton/index.js.map +0 -1
- package/dist/src/components/Dialog/Dialog.d.ts +0 -14
- package/dist/src/components/Dialog/Dialog.d.ts.map +0 -1
- package/dist/src/components/Dialog/Dialog.js +0 -59
- package/dist/src/components/Dialog/Dialog.js.map +0 -1
- package/dist/src/components/Dialog/Dialog.stories.d.ts.map +0 -1
- package/dist/src/components/Dialog/Dialog.stories.js +0 -37
- package/dist/src/components/Dialog/Dialog.stories.js.map +0 -1
- package/dist/src/components/Dialog/index.d.ts.map +0 -1
- package/dist/src/components/Dialog/index.js +0 -21
- package/dist/src/components/Dialog/index.js.map +0 -1
- package/dist/src/components/Group/Group.d.ts.map +0 -1
- package/dist/src/components/Group/Group.js +0 -22
- package/dist/src/components/Group/Group.js.map +0 -1
- package/dist/src/components/Group/Group.stories.d.ts.map +0 -1
- package/dist/src/components/Group/Group.stories.js +0 -27
- package/dist/src/components/Group/Group.stories.js.map +0 -1
- package/dist/src/components/Group/index.d.ts.map +0 -1
- package/dist/src/components/Group/index.js +0 -21
- package/dist/src/components/Group/index.js.map +0 -1
- package/dist/src/components/Heading/Heading.d.ts.map +0 -1
- package/dist/src/components/Heading/Heading.js +0 -28
- package/dist/src/components/Heading/Heading.js.map +0 -1
- package/dist/src/components/Heading/Heading.stories.js +0 -34
- package/dist/src/components/Heading/Heading.stories.js.map +0 -1
- package/dist/src/components/Heading/index.d.ts.map +0 -1
- package/dist/src/components/Heading/index.js +0 -21
- package/dist/src/components/Heading/index.js.map +0 -1
- package/dist/src/components/Input/BarePinInput.d.ts.map +0 -1
- package/dist/src/components/Input/BarePinInput.js +0 -62
- package/dist/src/components/Input/BarePinInput.js.map +0 -1
- package/dist/src/components/Input/BareTextInput.d.ts +0 -5
- package/dist/src/components/Input/BareTextInput.d.ts.map +0 -1
- package/dist/src/components/Input/BareTextInput.js +0 -29
- package/dist/src/components/Input/BareTextInput.js.map +0 -1
- package/dist/src/components/Input/BareTextareaInput.d.ts +0 -5
- package/dist/src/components/Input/BareTextareaInput.d.ts.map +0 -1
- package/dist/src/components/Input/BareTextareaInput.js +0 -23
- package/dist/src/components/Input/BareTextareaInput.js.map +0 -1
- package/dist/src/components/Input/Input.d.ts +0 -4
- package/dist/src/components/Input/Input.d.ts.map +0 -1
- package/dist/src/components/Input/Input.js +0 -87
- package/dist/src/components/Input/Input.js.map +0 -1
- package/dist/src/components/Input/Input.stories.d.ts.map +0 -1
- package/dist/src/components/Input/Input.stories.js +0 -86
- package/dist/src/components/Input/Input.stories.js.map +0 -1
- package/dist/src/components/Input/InputProps.d.ts +0 -26
- package/dist/src/components/Input/InputProps.d.ts.map +0 -1
- package/dist/src/components/Input/InputProps.js +0 -6
- package/dist/src/components/Input/InputProps.js.map +0 -1
- package/dist/src/components/Input/index.d.ts.map +0 -1
- package/dist/src/components/Input/index.js +0 -21
- package/dist/src/components/Input/index.js.map +0 -1
- package/dist/src/components/Loading/Loading.d.ts +0 -12
- package/dist/src/components/Loading/Loading.d.ts.map +0 -1
- package/dist/src/components/Loading/Loading.js +0 -29
- package/dist/src/components/Loading/Loading.js.map +0 -1
- package/dist/src/components/Loading/Loading.stories.d.ts.map +0 -1
- package/dist/src/components/Loading/Loading.stories.js +0 -39
- package/dist/src/components/Loading/Loading.stories.js.map +0 -1
- package/dist/src/components/Loading/index.d.ts.map +0 -1
- package/dist/src/components/Loading/index.js +0 -21
- package/dist/src/components/Loading/index.js.map +0 -1
- package/dist/src/components/NavMenu/NavMenu.d.ts.map +0 -1
- package/dist/src/components/NavMenu/NavMenu.js +0 -71
- package/dist/src/components/NavMenu/NavMenu.js.map +0 -1
- package/dist/src/components/NavMenu/NavMenu.stories.d.ts.map +0 -1
- package/dist/src/components/NavMenu/NavMenu.stories.js +0 -50
- package/dist/src/components/NavMenu/NavMenu.stories.js.map +0 -1
- package/dist/src/components/NavMenu/index.d.ts.map +0 -1
- package/dist/src/components/NavMenu/index.js +0 -21
- package/dist/src/components/NavMenu/index.js.map +0 -1
- package/dist/src/components/Popover/Popover.d.ts +0 -11
- package/dist/src/components/Popover/Popover.d.ts.map +0 -1
- package/dist/src/components/Popover/Popover.js +0 -56
- package/dist/src/components/Popover/Popover.js.map +0 -1
- package/dist/src/components/Popover/Popover.stories.d.ts.map +0 -1
- package/dist/src/components/Popover/Popover.stories.js +0 -39
- package/dist/src/components/Popover/Popover.stories.js.map +0 -1
- package/dist/src/components/Popover/index.d.ts.map +0 -1
- package/dist/src/components/Popover/index.js +0 -21
- package/dist/src/components/Popover/index.js.map +0 -1
- package/dist/src/components/QrCode/QrCode.d.ts +0 -22
- package/dist/src/components/QrCode/QrCode.d.ts.map +0 -1
- package/dist/src/components/QrCode/QrCode.js +0 -79
- package/dist/src/components/QrCode/QrCode.js.map +0 -1
- package/dist/src/components/QrCode/QrCode.stories.d.ts.map +0 -1
- package/dist/src/components/QrCode/QrCode.stories.js +0 -42
- package/dist/src/components/QrCode/QrCode.stories.js.map +0 -1
- package/dist/src/components/QrCode/index.d.ts.map +0 -1
- package/dist/src/components/QrCode/index.js +0 -21
- package/dist/src/components/QrCode/index.js.map +0 -1
- package/dist/src/components/Tag/Tag.d.ts +0 -8
- package/dist/src/components/Tag/Tag.d.ts.map +0 -1
- package/dist/src/components/Tag/Tag.js +0 -23
- package/dist/src/components/Tag/Tag.js.map +0 -1
- package/dist/src/components/Tag/Tag.stories.d.ts.map +0 -1
- package/dist/src/components/Tag/Tag.stories.js +0 -24
- package/dist/src/components/Tag/Tag.stories.js.map +0 -1
- package/dist/src/components/Tag/index.d.ts.map +0 -1
- package/dist/src/components/Tag/index.js +0 -21
- package/dist/src/components/Tag/index.js.map +0 -1
- package/dist/src/components/Toast/Toast.d.ts.map +0 -1
- package/dist/src/components/Toast/Toast.js +0 -54
- package/dist/src/components/Toast/Toast.js.map +0 -1
- package/dist/src/components/Toast/Toast.stories.d.ts.map +0 -1
- package/dist/src/components/Toast/Toast.stories.js +0 -32
- package/dist/src/components/Toast/Toast.stories.js.map +0 -1
- package/dist/src/components/Toast/index.d.ts.map +0 -1
- package/dist/src/components/Toast/index.js +0 -21
- package/dist/src/components/Toast/index.js.map +0 -1
- package/dist/src/components/Tooltip/Tooltip.d.ts +0 -12
- package/dist/src/components/Tooltip/Tooltip.d.ts.map +0 -1
- package/dist/src/components/Tooltip/Tooltip.js +0 -50
- package/dist/src/components/Tooltip/Tooltip.js.map +0 -1
- package/dist/src/components/Tooltip/Tooltip.stories.d.ts.map +0 -1
- package/dist/src/components/Tooltip/Tooltip.stories.js +0 -30
- package/dist/src/components/Tooltip/Tooltip.stories.js.map +0 -1
- package/dist/src/components/Tooltip/index.d.ts.map +0 -1
- package/dist/src/components/Tooltip/index.js +0 -21
- package/dist/src/components/Tooltip/index.js.map +0 -1
- package/dist/src/components/UiProvider/UiProvider.d.ts.map +0 -1
- package/dist/src/components/UiProvider/UiProvider.js +0 -21
- package/dist/src/components/UiProvider/UiProvider.js.map +0 -1
- package/dist/src/components/UiProvider/index.d.ts.map +0 -1
- package/dist/src/components/UiProvider/index.js +0 -21
- package/dist/src/components/UiProvider/index.js.map +0 -1
- package/dist/src/components/index.d.ts.map +0 -1
- package/dist/src/components/index.js +0 -37
- package/dist/src/components/index.js.map +0 -1
- package/dist/src/hooks/index.d.ts.map +0 -1
- package/dist/src/hooks/index.js +0 -23
- package/dist/src/hooks/index.js.map +0 -1
- package/dist/src/hooks/useForwardedRef.d.ts.map +0 -1
- package/dist/src/hooks/useForwardedRef.js +0 -24
- package/dist/src/hooks/useForwardedRef.js.map +0 -1
- package/dist/src/hooks/useId.d.ts.map +0 -1
- package/dist/src/hooks/useId.js +0 -20
- package/dist/src/hooks/useId.js.map +0 -1
- package/dist/src/hooks/useIsFocused.d.ts.map +0 -1
- package/dist/src/hooks/useIsFocused.js +0 -34
- package/dist/src/hooks/useIsFocused.js.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -24
- package/dist/src/index.js.map +0 -1
- package/dist/src/plugin.d.ts.map +0 -1
- package/dist/src/plugin.js +0 -276
- package/dist/src/plugin.js.map +0 -1
- package/dist/src/props/Elevation.d.ts +0 -2
- package/dist/src/props/Elevation.d.ts.map +0 -1
- package/dist/src/props/Elevation.js +0 -6
- package/dist/src/props/Elevation.js.map +0 -1
- package/dist/src/props/MessageValence.d.ts +0 -2
- package/dist/src/props/MessageValence.d.ts.map +0 -1
- package/dist/src/props/MessageValence.js +0 -6
- package/dist/src/props/MessageValence.js.map +0 -1
- package/dist/src/props/Size.d.ts +0 -2
- package/dist/src/props/Size.d.ts.map +0 -1
- package/dist/src/props/Size.js +0 -6
- package/dist/src/props/Size.js.map +0 -1
- package/dist/src/props/index.d.ts.map +0 -1
- package/dist/src/props/index.js +0 -23
- package/dist/src/props/index.js.map +0 -1
- package/dist/src/styles/active.d.ts.map +0 -1
- package/dist/src/styles/active.js +0 -12
- package/dist/src/styles/active.js.map +0 -1
- package/dist/src/styles/disabled.d.ts.map +0 -1
- package/dist/src/styles/disabled.js +0 -8
- package/dist/src/styles/disabled.js.map +0 -1
- package/dist/src/styles/focus.d.ts.map +0 -1
- package/dist/src/styles/focus.js +0 -9
- package/dist/src/styles/focus.js.map +0 -1
- package/dist/src/styles/group.d.ts.map +0 -1
- package/dist/src/styles/group.js +0 -26
- package/dist/src/styles/group.js.map +0 -1
- package/dist/src/styles/hover.d.ts.map +0 -1
- package/dist/src/styles/hover.js +0 -12
- package/dist/src/styles/hover.js.map +0 -1
- package/dist/src/styles/index.d.ts.map +0 -1
- package/dist/src/styles/index.js +0 -30
- package/dist/src/styles/index.js.map +0 -1
- package/dist/src/styles/input.d.ts +0 -17
- package/dist/src/styles/input.d.ts.map +0 -1
- package/dist/src/styles/input.js +0 -24
- package/dist/src/styles/input.js.map +0 -1
- package/dist/src/styles/ornament.d.ts.map +0 -1
- package/dist/src/styles/ornament.js +0 -9
- package/dist/src/styles/ornament.js.map +0 -1
- package/dist/src/styles/shimmer.d.ts.map +0 -1
- package/dist/src/styles/shimmer.js +0 -9
- package/dist/src/styles/shimmer.js.map +0 -1
- package/dist/src/styles/size.d.ts.map +0 -1
- package/dist/src/styles/size.js +0 -89
- package/dist/src/styles/size.js.map +0 -1
- package/dist/src/styles/text.d.ts.map +0 -1
- package/dist/src/styles/text.js +0 -11
- package/dist/src/styles/text.js.map +0 -1
- package/dist/src/styles/valence.d.ts.map +0 -1
- package/dist/src/styles/valence.js +0 -66
- package/dist/src/styles/valence.js.map +0 -1
- package/dist/src/testing/index.d.ts.map +0 -1
- package/dist/src/testing/index.js +0 -21
- package/dist/src/testing/index.js.map +0 -1
- package/dist/src/testing/templateForComponent.d.ts.map +0 -1
- package/dist/src/testing/templateForComponent.js +0 -18
- package/dist/src/testing/templateForComponent.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hover.d.ts","sourceRoot":"","sources":["../../../src/styles/hover.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;+LAKxB,CAAC"}
|
package/dist/src/styles/hover.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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:z-[1] 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
|
|
@@ -1 +0,0 @@
|
|
|
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,iLAAiL,CAClL,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,YAAY,gBAKvB"}
|
|
@@ -1 +0,0 @@
|
|
|
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,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
|
package/dist/src/styles/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
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("./shimmer"), exports);
|
|
27
|
-
__exportStar(require("./size"), exports);
|
|
28
|
-
__exportStar(require("./text"), exports);
|
|
29
|
-
__exportStar(require("./valence"), exports);
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,4CAA0B;AAC1B,yCAAuB;AACvB,yCAAuB;AACvB,4CAA0B"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { MessageValence } from '../props';
|
|
2
|
-
export declare const defaultInput: ({ borders, typography, rounding, disabled, validationValence }: {
|
|
3
|
-
borders?: string | undefined;
|
|
4
|
-
typography?: string | undefined;
|
|
5
|
-
rounding?: string | undefined;
|
|
6
|
-
disabled?: boolean | undefined;
|
|
7
|
-
validationValence?: MessageValence | undefined;
|
|
8
|
-
}) => string;
|
|
9
|
-
export declare const staticInput: ({ borders, typography, rounding, disabled, focused, validationValence }: {
|
|
10
|
-
borders?: string | undefined;
|
|
11
|
-
typography?: string | undefined;
|
|
12
|
-
rounding?: string | undefined;
|
|
13
|
-
disabled?: boolean | undefined;
|
|
14
|
-
focused?: boolean | undefined;
|
|
15
|
-
validationValence?: MessageValence | undefined;
|
|
16
|
-
}) => string;
|
|
17
|
-
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/styles/input.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAO1C,eAAO,MAAM,YAAY;;;;;;YAwBxB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;YAyBvB,CAAC"}
|
package/dist/src/styles/input.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
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.staticInput = exports.defaultInput = void 0;
|
|
10
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
11
|
-
const disabled_1 = require("./disabled");
|
|
12
|
-
const focus_1 = require("./focus");
|
|
13
|
-
const hover_1 = require("./hover");
|
|
14
|
-
const text_1 = require("./text");
|
|
15
|
-
const valence_1 = require("./valence");
|
|
16
|
-
const defaultInput = ({ borders, typography, rounding, disabled, validationValence }) => {
|
|
17
|
-
return (0, classnames_1.default)(focus_1.defaultFocus, text_1.defaultPlaceholder, (0, hover_1.defaultHover)({ disabled }), 'bg-white/50 text-neutral-900 dark:bg-neutral-700/50 dark:text-white', typography !== null && typography !== void 0 ? typography : 'text-base', borders !== null && borders !== void 0 ? borders : 'border', borders !== null && borders !== void 0 ? borders : (0, valence_1.valenceInputBorder)(validationValence), rounding !== null && rounding !== void 0 ? rounding : 'rounded', disabled && disabled_1.defaultDisabled);
|
|
18
|
-
};
|
|
19
|
-
exports.defaultInput = defaultInput;
|
|
20
|
-
const staticInput = ({ borders, typography, rounding, disabled, focused, validationValence }) => {
|
|
21
|
-
return (0, classnames_1.default)(text_1.defaultPlaceholder, 'bg-white/50 text-neutral-900 dark:bg-neutral-700/50 dark:text-white', typography !== null && typography !== void 0 ? typography : 'text-base', borders !== null && borders !== void 0 ? borders : 'border', borders !== null && borders !== void 0 ? borders : (0, valence_1.valenceInputBorder)(validationValence), rounding !== null && rounding !== void 0 ? rounding : 'rounded', disabled && disabled_1.defaultDisabled, focused && focus_1.staticFocus);
|
|
22
|
-
};
|
|
23
|
-
exports.staticInput = staticInput;
|
|
24
|
-
//# sourceMappingURL=input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/styles/input.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,4DAA4B;AAG5B,yCAA6C;AAC7C,mCAAoD;AACpD,mCAAuC;AACvC,iCAA4C;AAC5C,uCAA+C;AAExC,MAAM,YAAY,GAAG,CAAC,EAC3B,OAAO,EACP,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,iBAAiB,EAOlB,EAAE,EAAE;IACH,OAAO,IAAA,oBAAE,EACP,oBAAY,EACZ,yBAAkB,EAClB,IAAA,oBAAY,EAAC,EAAE,QAAQ,EAAE,CAAC,EAC1B,qEAAqE,EACrE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,WAAW,EACzB,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,QAAQ,EACnB,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,IAAA,4BAAkB,EAAC,iBAAiB,CAAC,EAChD,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,SAAS,EACrB,QAAQ,IAAI,0BAAe,CAC5B,CAAC;AACJ,CAAC,CAAC;AAxBW,QAAA,YAAY,gBAwBvB;AAEK,MAAM,WAAW,GAAG,CAAC,EAC1B,OAAO,EACP,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,iBAAiB,EAQlB,EAAE,EAAE;IACH,OAAO,IAAA,oBAAE,EACP,yBAAkB,EAClB,qEAAqE,EACrE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,WAAW,EACzB,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,QAAQ,EACnB,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,IAAA,4BAAkB,EAAC,iBAAiB,CAAC,EAChD,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,SAAS,EACrB,QAAQ,IAAI,0BAAe,EAC3B,OAAO,IAAI,mBAAW,CACvB,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,WAAW,eAyBtB"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shimmer.d.ts","sourceRoot":"","sources":["../../../src/styles/shimmer.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,oNACwL,CAAC;AAEpN,eAAO,MAAM,aAAa,oNACyL,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//
|
|
3
|
-
// Copyright 2022 DXOS.org
|
|
4
|
-
//
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.strongShimmer = exports.defaultShimmer = void 0;
|
|
7
|
-
exports.defaultShimmer = 'relative before:absolute before:inset-0 before:-translate-x-full before:animate-shimmer before:bg-gradient-to-r before:from-transparent before:via-neutral-100/10 before:to-transparent isolate overflow-hidden';
|
|
8
|
-
exports.strongShimmer = 'relative before:absolute before:inset-0 before:-translate-x-full before:animate-shimmer before:bg-gradient-to-r before:from-transparent before:via-primary-100/80 before:to-transparent isolate overflow-hidden';
|
|
9
|
-
//# sourceMappingURL=shimmer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shimmer.js","sourceRoot":"","sources":["../../../src/styles/shimmer.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEW,QAAA,cAAc,GACzB,iNAAiN,CAAC;AAEvM,QAAA,aAAa,GACxB,iNAAiN,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/src/styles/size.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"size.js","sourceRoot":"","sources":["../../../src/styles/size.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/src/styles/text.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,66 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;AAEF,yDAAuC"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|