@dxos/react-ui 0.1.9 → 0.1.10

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.
Files changed (66) hide show
  1. package/dist/src/components/Avatar/Avatar.d.ts +1 -1
  2. package/dist/src/components/Avatar/Avatar.d.ts.map +1 -1
  3. package/dist/src/components/Avatar/Avatar.stories.d.ts +1 -1
  4. package/dist/src/components/Button/Button.d.ts +1 -1
  5. package/dist/src/components/Button/Button.d.ts.map +1 -1
  6. package/dist/src/components/Button/Button.js +1 -1
  7. package/dist/src/components/Button/Button.js.map +1 -1
  8. package/dist/src/components/Button/Button.stories.d.ts +2 -1
  9. package/dist/src/components/Button/Button.stories.d.ts.map +1 -1
  10. package/dist/src/components/Button/Button.stories.js +3 -1
  11. package/dist/src/components/Button/Button.stories.js.map +1 -1
  12. package/dist/src/components/Button/ButtonProps.d.ts +2 -1
  13. package/dist/src/components/Button/ButtonProps.d.ts.map +1 -1
  14. package/dist/src/components/Button/buttonStyles.d.ts +1 -0
  15. package/dist/src/components/Button/buttonStyles.d.ts.map +1 -1
  16. package/dist/src/components/Button/buttonStyles.js +7 -5
  17. package/dist/src/components/Button/buttonStyles.js.map +1 -1
  18. package/dist/src/components/Heading/Heading.d.ts +3 -0
  19. package/dist/src/components/Heading/Heading.d.ts.map +1 -1
  20. package/dist/src/components/Heading/Heading.stories.d.ts +3 -0
  21. package/dist/src/components/Heading/Heading.stories.d.ts.map +1 -1
  22. package/dist/src/components/Input/BarePinInput.d.ts +4 -1
  23. package/dist/src/components/Input/BarePinInput.d.ts.map +1 -1
  24. package/dist/src/components/Input/BareTextInput.d.ts +2 -2
  25. package/dist/src/components/Input/BareTextInput.d.ts.map +1 -1
  26. package/dist/src/components/Input/BareTextInput.js +10 -4
  27. package/dist/src/components/Input/BareTextInput.js.map +1 -1
  28. package/dist/src/components/Input/BareTextareaInput.d.ts +2 -2
  29. package/dist/src/components/Input/BareTextareaInput.d.ts.map +1 -1
  30. package/dist/src/components/Input/BareTextareaInput.js +8 -2
  31. package/dist/src/components/Input/BareTextareaInput.js.map +1 -1
  32. package/dist/src/components/Input/Input.d.ts +2 -2
  33. package/dist/src/components/Input/Input.d.ts.map +1 -1
  34. package/dist/src/components/Input/Input.js +6 -3
  35. package/dist/src/components/Input/Input.js.map +1 -1
  36. package/dist/src/components/Input/Input.stories.d.ts +1 -1
  37. package/dist/src/components/Input/InputProps.d.ts +5 -1
  38. package/dist/src/components/Input/InputProps.d.ts.map +1 -1
  39. package/dist/src/components/Loading/Loading.d.ts +2 -2
  40. package/dist/src/components/Loading/Loading.d.ts.map +1 -1
  41. package/dist/src/components/NavMenu/NavMenu.d.ts +1 -1
  42. package/dist/src/components/NavMenu/NavMenu.d.ts.map +1 -1
  43. package/dist/src/components/QrCode/QrCode.d.ts +1 -1
  44. package/dist/src/components/QrCode/QrCode.d.ts.map +1 -1
  45. package/dist/src/components/UiProvider/UiProvider.d.ts +1 -1
  46. package/dist/src/components/UiProvider/UiProvider.d.ts.map +1 -1
  47. package/dist/src/props/Elevation.d.ts +1 -1
  48. package/dist/src/props/Elevation.d.ts.map +1 -1
  49. package/dist/src/props/MessageValence.d.ts +1 -1
  50. package/dist/src/props/MessageValence.d.ts.map +1 -1
  51. package/dist/src/props/Size.d.ts +1 -1
  52. package/dist/src/props/Size.d.ts.map +1 -1
  53. package/dist/src/styles/input.d.ts +8 -2
  54. package/dist/src/styles/input.d.ts.map +1 -1
  55. package/dist/src/styles/input.js +4 -4
  56. package/dist/src/styles/input.js.map +1 -1
  57. package/package.json +1 -1
  58. package/src/components/Button/Button.stories.tsx +2 -0
  59. package/src/components/Button/Button.tsx +2 -2
  60. package/src/components/Button/ButtonProps.ts +2 -1
  61. package/src/components/Button/buttonStyles.ts +8 -4
  62. package/src/components/Input/BareTextInput.tsx +19 -6
  63. package/src/components/Input/BareTextareaInput.tsx +10 -1
  64. package/src/components/Input/Input.tsx +9 -2
  65. package/src/components/Input/InputProps.ts +4 -0
  66. package/src/styles/input.ts +22 -4
@@ -9,5 +9,5 @@ export interface AvatarProps extends ComponentProps<typeof AvatarPrimitive.Root>
9
9
  mediaSrc?: string;
10
10
  children?: ReactNode;
11
11
  }
12
- export declare const Avatar: React.ForwardRefExoticComponent<Pick<React.PropsWithChildren<AvatarProps>, "label" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "size" | "asChild" | "fallbackValue" | "variant" | "mediaSrc"> & React.RefAttributes<HTMLSpanElement>>;
12
+ export declare const Avatar: React.ForwardRefExoticComponent<Pick<React.PropsWithChildren<AvatarProps>, "label" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "size" | "asChild" | "fallbackValue" | "variant" | "mediaSrc"> & React.RefAttributes<HTMLSpanElement>>;
13
13
  //# sourceMappingURL=Avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAG1D,OAAO,KAAK,EAAE,EAEZ,cAAc,EAId,gBAAgB,EAChB,SAAS,EAEV,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGnC,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC;IAC9E,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC;IAC3D,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAOD,eAAO,MAAM,MAAM,orJA6ClB,CAAC"}
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAG1D,OAAO,KAAK,EAAE,EAEZ,cAAc,EAId,gBAAgB,EAChB,SAAS,EAEV,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGnC,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC;IAC9E,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC;IAC3D,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAOD,eAAO,MAAM,MAAM,+tJA6ClB,CAAC"}
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { AvatarProps } from './Avatar';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Pick<React.PropsWithChildren<AvatarProps>, "label" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "size" | "asChild" | "fallbackValue" | "variant" | "mediaSrc"> & React.RefAttributes<HTMLSpanElement>>;
6
+ component: React.ForwardRefExoticComponent<Pick<React.PropsWithChildren<AvatarProps>, "label" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "size" | "asChild" | "fallbackValue" | "variant" | "mediaSrc"> & React.RefAttributes<HTMLSpanElement>>;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Default: import("@storybook/react").Story<AvatarProps>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { ButtonProps } from './ButtonProps';
3
- export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "rounding" | "disabled" | "form" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "value" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "variant" | "compact"> & React.RefAttributes<HTMLButtonElement>>;
3
+ export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "rounding" | "spacing" | "disabled" | "form" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "value" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "variant" | "compact"> & React.RefAttributes<HTMLButtonElement>>;
4
4
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,eAAO,MAAM,MAAM,wwJAWlB,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,eAAO,MAAM,MAAM,+zJAWlB,CAAC"}
@@ -33,5 +33,5 @@ exports.Button = void 0;
33
33
  const classnames_1 = __importDefault(require("classnames"));
34
34
  const react_1 = __importStar(require("react"));
35
35
  const buttonStyles_1 = require("./buttonStyles");
36
- exports.Button = (0, react_1.forwardRef)(({ children, compact, variant, rounding, ...props }, ref) => (react_1.default.createElement("button", { ref: ref, ...props, className: (0, classnames_1.default)((0, buttonStyles_1.buttonStyles)({ compact, variant, rounding, disabled: props.disabled }), props.className), ...(props.disabled && { disabled: true }) }, children)));
36
+ exports.Button = (0, react_1.forwardRef)(({ children, compact, spacing, variant, rounding, ...props }, ref) => (react_1.default.createElement("button", { ref: ref, ...props, className: (0, classnames_1.default)((0, buttonStyles_1.buttonStyles)({ compact, spacing, variant, rounding, disabled: props.disabled }), props.className), ...(props.disabled && { disabled: true }) }, children)));
37
37
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/Button/Button.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;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ACF,CACV,CACF,CAAC"}
@@ -3,10 +3,11 @@ import React from 'react';
3
3
  import { ButtonProps } from './ButtonProps';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Pick<ButtonProps, "rounding" | "disabled" | "form" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "value" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "variant" | "compact"> & React.RefAttributes<HTMLButtonElement>>;
6
+ component: React.ForwardRefExoticComponent<Pick<ButtonProps, "rounding" | "spacing" | "disabled" | "form" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "value" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "variant" | "compact"> & React.RefAttributes<HTMLButtonElement>>;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Default: import("@storybook/react").Story<Omit<ButtonProps, "ref">>;
10
10
  export declare const Primary: () => JSX.Element;
11
11
  export declare const Outline: () => JSX.Element;
12
+ export declare const Ghost: () => JSX.Element;
12
13
  //# sourceMappingURL=Button.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AACpB,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;;;;;AAE5C,wBAGE;AAsBF,eAAO,MAAM,OAAO,4DAAqC,CAAC;AAG1D,eAAO,MAAM,OAAO,mBAAoE,CAAC;AAEzF,eAAO,MAAM,OAAO,mBAAoE,CAAC"}
1
+ {"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AACpB,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;;;;;AAE5C,wBAGE;AAsBF,eAAO,MAAM,OAAO,4DAAqC,CAAC;AAG1D,eAAO,MAAM,OAAO,mBAAoE,CAAC;AAEzF,eAAO,MAAM,OAAO,mBAAoE,CAAC;AAEzF,eAAO,MAAM,KAAK,mBAAkE,CAAC"}
@@ -6,7 +6,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
6
6
  return (mod && mod.__esModule) ? mod : { "default": mod };
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.Outline = exports.Primary = exports.Default = void 0;
9
+ exports.Ghost = exports.Outline = exports.Primary = exports.Default = void 0;
10
10
  require("@dxosTheme");
11
11
  const react_1 = __importDefault(require("react"));
12
12
  const testing_1 = require("../../testing");
@@ -28,4 +28,6 @@ const Primary = () => react_1.default.createElement(Template, { ...{ variant: 'p
28
28
  exports.Primary = Primary;
29
29
  const Outline = () => react_1.default.createElement(Template, { ...{ variant: 'outline', children: 'Hello' } });
30
30
  exports.Outline = Outline;
31
+ const Ghost = () => react_1.default.createElement(Template, { ...{ variant: 'ghost', children: 'Hello' } });
32
+ exports.Ghost = Ghost;
31
33
  //# sourceMappingURL=Button.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.stories.js","sourceRoot":"","sources":["../../../../src/components/Button/Button.stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,sBAAoB;AACpB,kDAAiD;AAEjD,2CAAqD;AACrD,oCAAiC;AACjC,qCAAkC;AAGlC,kBAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,eAAM;CAClB,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,EAAE,QAAQ,EAAyB,EAAE,EAAE,CAAC,CACzD;IACE,8BAAC,aAAK,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAC,sBAAsB,IAC7E,QAAQ,CACH;IACR,8BAAC,aAAK,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAC,iBAAiB,IACxE,QAAQ,CACH,CACP,CACJ,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,EAA4B,EAAE,EAAE,CAAC,CACpE,8BAAC,SAAS;IACR,8BAAC,eAAM,OAAK,IAAI,IAAG,QAAQ,CAAU;IACrC,8BAAC,eAAM,OAAK,IAAI,EAAE,QAAQ,qBAEjB,CACC,CACb,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,8BAAoB,EAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;AAC1D,eAAO,C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AM,OAAK,IAAI,EAAE,QAAQ,qBAEjB,CACC,CACb,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,8BAAoB,EAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;AAC1D,eAAO,CAAC,IAAI,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AAEnE,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,8BAAC,QAAQ,OAAK,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAI,CAAC;AAA5E,QAAA,OAAO,WAAqE;AAElF,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,8BAAC,QAAQ,OAAK,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAI,CAAC;AAA5E,QAAA,OAAO,WAAqE;AAElF,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,8BAAC,QAAQ,OAAK,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAI,CAAC;AAAxE,QAAA,KAAK,SAAmE"}
@@ -1,8 +1,9 @@
1
1
  import { ComponentProps } from 'react';
2
2
  export interface ButtonProps extends ComponentProps<'button'> {
3
- variant?: 'default' | 'primary' | 'outline';
3
+ variant?: 'default' | 'primary' | 'outline' | 'ghost';
4
4
  compact?: boolean;
5
5
  rounding?: string;
6
+ spacing?: string;
6
7
  disabled?: boolean;
7
8
  }
8
9
  //# sourceMappingURL=ButtonProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonProps.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/ButtonProps.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,QAAQ,CAAC;IAC3D,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
1
+ {"version":3,"file":"ButtonProps.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/ButtonProps.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,QAAQ,CAAC;IAC3D,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -1,5 +1,6 @@
1
1
  import { ButtonProps } from './ButtonProps';
2
2
  export declare const primaryButtonColors = "bg-primary-600 text-white hover:bg-primary-650";
3
3
  export declare const defaultButtonColors = "bg-white text-neutral-900 dark:bg-neutral-750 dark:text-neutral-50";
4
+ export declare const ghostButtonColors = "";
4
5
  export declare const buttonStyles: (props: ButtonProps) => string;
5
6
  //# sourceMappingURL=buttonStyles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buttonStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/buttonStyles.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,eAAO,MAAM,mBAAmB,mDAAmD,CAAC;AACpF,eAAO,MAAM,mBAAmB,uEAAuE,CAAC;AAExG,eAAO,MAAM,YAAY,UAAW,WAAW,WAqB9C,CAAC"}
1
+ {"version":3,"file":"buttonStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/buttonStyles.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,eAAO,MAAM,mBAAmB,mDAAmD,CAAC;AACpF,eAAO,MAAM,mBAAmB,uEAAuE,CAAC;AACxG,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,eAAO,MAAM,YAAY,UAAW,WAAW,WAwB9C,CAAC"}
@@ -6,17 +6,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
6
6
  return (mod && mod.__esModule) ? mod : { "default": mod };
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.buttonStyles = exports.defaultButtonColors = exports.primaryButtonColors = void 0;
9
+ exports.buttonStyles = exports.ghostButtonColors = exports.defaultButtonColors = exports.primaryButtonColors = void 0;
10
10
  const classnames_1 = __importDefault(require("classnames"));
11
11
  const styles_1 = require("../../styles");
12
12
  exports.primaryButtonColors = 'bg-primary-600 text-white hover:bg-primary-650';
13
13
  exports.defaultButtonColors = 'bg-white text-neutral-900 dark:bg-neutral-750 dark:text-neutral-50';
14
+ exports.ghostButtonColors = '';
14
15
  const buttonStyles = (props) => {
15
- var _a;
16
+ var _a, _b;
16
17
  const resolvedVariant = props.variant || 'default';
17
- return (0, classnames_1.default)('inline-flex select-none items-center justify-center text-sm font-medium', (_a = props.rounding) !== null && _a !== void 0 ? _a : 'rounded-md', props.compact ? 'p-1.5' : 'pli-4 plb-2', 'transition-color duration-100', (0, styles_1.defaultHover)(props), resolvedVariant === 'default' &&
18
- 'border border-neutral-100 dark:border-neutral-650 hover:focus:border-neutral-100 hover:border-transparent', resolvedVariant === 'default' && exports.defaultButtonColors, resolvedVariant === 'primary' && 'border border-primary-550 hover:border-transparent', resolvedVariant === 'primary' && exports.primaryButtonColors, resolvedVariant === 'outline' &&
19
- 'text-neutral-700 border border-neutral-600 dark:border-neutral-300 dark:text-neutral-150', styles_1.defaultFocus, props.disabled ? styles_1.defaultDisabled : resolvedVariant !== 'outline' && 'button-elevation',
18
+ return (0, classnames_1.default)('inline-flex select-none items-center justify-center text-sm font-medium', (_a = props.rounding) !== null && _a !== void 0 ? _a : 'rounded-md', (_b = props.spacing) !== null && _b !== void 0 ? _b : (props.compact ? 'p-1.5' : 'pli-4 plb-2'), 'transition-color duration-100', (0, styles_1.defaultHover)(props), resolvedVariant === 'default' && 'border border-neutral-100 dark:border-neutral-650', resolvedVariant !== 'ghost' && !props.disabled && 'hover:focus:border-neutral-100 hover:border-transparent', resolvedVariant === 'default' && exports.defaultButtonColors, resolvedVariant === 'ghost' && exports.ghostButtonColors, resolvedVariant === 'primary' && 'border border-primary-550 hover:border-transparent', resolvedVariant === 'primary' && exports.primaryButtonColors, resolvedVariant === 'outline' &&
19
+ 'text-neutral-700 border border-neutral-600 dark:border-neutral-300 dark:text-neutral-150', styles_1.defaultFocus, props.disabled
20
+ ? styles_1.defaultDisabled
21
+ : resolvedVariant !== 'outline' && resolvedVariant !== 'ghost' && 'button-elevation',
20
22
  // Register all radix states
21
23
  'group', styles_1.defaultActive);
22
24
  };
@@ -1 +1 @@
1
- {"version":3,"file":"buttonStyles.js","sourceRoot":"","sources":["../../../../src/components/Button/buttonStyles.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,4DAA4B;AAE5B,yCAA0F;AAG7E,QAAA,mBAAmB,GAAG,gDAAgD,CAAC;AACvE,QAAA,mBAAmB,GAAG,oEAAoE,CAAC;AAEjG,MAAM,YAAY,GAAG,CAAC,KAAkB,EAAE,EAAE;;IACjD,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,IAAI,SAAS,CAAC;IACnD,OAAO,IAAA,oBAAE,EACP,yEAAyE,EACzE,MAAA,KAAK,CAAC,QAAQ,mCAAI,YAAY,EAC9B,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,EACvC,+BAA+B,EAC/B,IAAA,qBAAY,EAAC,KAAK,CAAC,EACnB,eAAe,KAAK,SAAS;QAC3B,2GAA2G,EAC7G,eAAe,KAAK,SAAS,IAAI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AS,IAAI,2BAAmB,EACpD,eAAe,KAAK,SAAS;QAC3B,0FAA0F,EAC5F,qBAAY,EACZ,KAAK,CAAC,QAAQ;QACZ,CAAC,CAAC,wBAAe;QACjB,CAAC,CAAC,eAAe,KAAK,SAAS,IAAI,eAAe,KAAK,OAAO,IAAI,kBAAkB;IACtF,4BAA4B;IAC5B,OAAO,EACP,sBAAa,CACd,CAAC;AACJ,CAAC,CAAC;AAxBW,QAAA,YAAY,gBAwBvB"}
@@ -20,6 +20,7 @@ export declare const Heading: ({ level, ...props }: PropsWithChildren<HeadingPro
20
20
  hidden?: boolean | undefined;
21
21
  id?: string | undefined;
22
22
  lang?: string | undefined;
23
+ nonce?: string | undefined;
23
24
  placeholder?: string | undefined;
24
25
  slot?: string | undefined;
25
26
  spellCheck?: (boolean | "true" | "false") | undefined;
@@ -170,6 +171,8 @@ export declare const Heading: ({ level, ...props }: PropsWithChildren<HeadingPro
170
171
  onProgressCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
171
172
  onRateChange?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
172
173
  onRateChangeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
174
+ onResize?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
175
+ onResizeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
173
176
  onSeeked?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
174
177
  onSeekedCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
175
178
  onSeeking?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../../src/components/Heading/Heading.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAiB,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3E,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC;IAC9D,KAAK,CAAC,EAAE,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;;;;;;;;;;;;;;;;;;;;;;;sBAkBrB,CAAC"}
@@ -20,6 +20,7 @@ declare const _default: {
20
20
  hidden?: boolean | undefined;
21
21
  id?: string | undefined;
22
22
  lang?: string | undefined;
23
+ nonce?: string | undefined;
23
24
  placeholder?: string | undefined;
24
25
  slot?: string | undefined;
25
26
  spellCheck?: (boolean | "true" | "false") | undefined;
@@ -170,6 +171,8 @@ declare const _default: {
170
171
  onProgressCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
171
172
  onRateChange?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
172
173
  onRateChangeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
174
+ onResize?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
175
+ onResizeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
173
176
  onSeeked?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
174
177
  onSeekedCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
175
178
  onSeeking?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Heading/Heading.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AACpB,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAW,YAAY,EAAE,MAAM,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElD,wBAGE;AAQF,eAAO,MAAM,OAAO,gDAA+C,CAAC;AAGpE,eAAO,MAAM,MAAM,mBAA6C,CAAC;AACjE,eAAO,MAAM,MAAM,mBAA6C,CAAC;AACjE,eAAO,MAAM,MAAM,mBAA6C,CAAC;AACjE,eAAO,MAAM,MAAM,mBAA6C,CAAC;AACjE,eAAO,MAAM,MAAM,mBAA6C,CAAC"}
1
+ {"version":3,"file":"Heading.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Heading/Heading.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AACpB,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAW,YAAY,EAAE,MAAM,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElD,wBAGE;AAQF,eAAO,MAAM,OAAO,gDAA+C,CAAC;AAGpE,eAAO,MAAM,MAAM,mBAA6C,CAAC;AACjE,eAAO,MAAM,MAAM,mBAA6C,CAAC;AACjE,eAAO,MAAM,MAAM,mBAA6C,CAAC;AACjE,eAAO,MAAM,MAAM,mBAA6C,CAAC;AACjE,eAAO,MAAM,MAAM,mBAA6C,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { CodeInput } from 'rci';
2
2
  import React, { ComponentProps } from 'react';
3
3
  import { InputProps } from './InputProps';
4
- export declare type BarePinInputProps = Omit<InputProps, 'ref' | 'label' | 'onChange'> & Pick<ComponentProps<typeof CodeInput>, 'onChange' | 'value' | 'length'>;
4
+ export type BarePinInputProps = Omit<InputProps, 'ref' | 'label' | 'onChange'> & Pick<ComponentProps<typeof CodeInput>, 'onChange' | 'value' | 'length'>;
5
5
  export declare const BarePinInput: React.ForwardRefExoticComponent<Omit<InputProps, "label" | "ref" | "onChange"> & Pick<{
6
6
  disabled?: boolean | undefined;
7
7
  form?: string | undefined;
@@ -24,6 +24,7 @@ export declare const BarePinInput: React.ForwardRefExoticComponent<Omit<InputPro
24
24
  hidden?: boolean | undefined;
25
25
  id?: string | undefined;
26
26
  lang?: string | undefined;
27
+ nonce?: string | undefined;
27
28
  placeholder?: string | undefined;
28
29
  spellCheck?: (boolean | "true" | "false") | undefined;
29
30
  tabIndex?: number | undefined;
@@ -171,6 +172,8 @@ export declare const BarePinInput: React.ForwardRefExoticComponent<Omit<InputPro
171
172
  onProgressCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
172
173
  onRateChange?: React.ReactEventHandler<HTMLInputElement> | undefined;
173
174
  onRateChangeCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
175
+ onResize?: React.ReactEventHandler<HTMLInputElement> | undefined;
176
+ onResizeCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
174
177
  onSeeked?: React.ReactEventHandler<HTMLInputElement> | undefined;
175
178
  onSeekedCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
176
179
  onSeeking?: React.ReactEventHandler<HTMLInputElement> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BarePinInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/BarePinInput.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAsB,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,EAA2B,cAAc,EAAE,MAAM,OAAO,CAAC;AAIvE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ1C,oBAAY,iBAAiB,GAAG,IAAI,CAAC,UAAU,EAAE,KAAK,GAAG,OAAO,GAAG,UAAU,CAAC,GAC5E,IAAI,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,QA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;;;;;;;;;;;;;;;;;;;;;;;4EAuCxB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { InputProps } from './InputProps';
3
- export declare type BareTextInputProps = Omit<InputProps, 'label' | 'initialValue' | 'onChange'> & Pick<ComponentProps<'input'>, 'onChange'>;
4
- export declare const BareTextInput: ({ validationValence, validationMessage, size, ...inputProps }: BareTextInputProps) => JSX.Element;
3
+ export type BareTextInputProps = Omit<InputProps, 'label' | 'initialValue' | 'onChange'> & Pick<ComponentProps<'input'>, 'onChange'>;
4
+ export declare const BareTextInput: ({ validationValence, validationMessage, size, borders, typography, rounding, ...inputProps }: BareTextInputProps) => JSX.Element;
5
5
  //# sourceMappingURL=BareTextInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BareTextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/BareTextInput.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,UAAU,EAAa,MAAM,cAAc,CAAC;AASrD,oBAAY,kBAAkB,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,CAAC,GACtF,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC;AAE5C,eAAO,MAAM,aAAa,kEAAmE,kBAAkB,gBAW9G,CAAC"}
1
+ {"version":3,"file":"BareTextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/BareTextInput.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,UAAU,EAAa,MAAM,cAAc,CAAC;AASrD,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,CAAC,GACtF,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC;AAE5C,eAAO,MAAM,aAAa,iGAQvB,kBAAkB,gBAgBpB,CAAC"}
@@ -11,13 +11,19 @@ const classnames_1 = __importDefault(require("classnames"));
11
11
  const react_1 = __importDefault(require("react"));
12
12
  const input_1 = require("../../styles/input");
13
13
  const sizeMap = {
14
- md: 'text-sm',
15
- lg: 'text-base',
14
+ md: 'text-base',
15
+ lg: 'text-lg',
16
16
  pin: '',
17
17
  textarea: ''
18
18
  };
19
- const BareTextInput = ({ validationValence, validationMessage, size, ...inputProps }) => {
20
- return (react_1.default.createElement("input", { ...inputProps, className: (0, classnames_1.default)((0, input_1.defaultInput)({ disabled: inputProps.disabled, ...(validationMessage && { validationValence }) }), 'block w-full px-2.5 py-2', sizeMap[size !== null && size !== void 0 ? size : 'md']) }));
19
+ const BareTextInput = ({ validationValence, validationMessage, size, borders, typography, rounding, ...inputProps }) => {
20
+ return (react_1.default.createElement("input", { ...inputProps, className: (0, classnames_1.default)((0, input_1.defaultInput)({
21
+ borders,
22
+ rounding,
23
+ typography: typography !== null && typography !== void 0 ? typography : sizeMap[size !== null && size !== void 0 ? size : 'md'],
24
+ disabled: inputProps.disabled,
25
+ ...(validationMessage && { validationValence })
26
+ }), 'block w-full px-2.5 py-2') }));
21
27
  };
22
28
  exports.BareTextInput = BareTextInput;
23
29
  //# sourceMappingURL=BareTextInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BareTextInput.js","sourceRoot":"","sources":["../../../../src/components/Input/BareTextInput.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,4DAA4B;AAC5B,kDAA8C;AAE9C,8CAAkD;AAGlD,MAAM,OAAO,GAA8B;IACzC,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,WAAW;IACf,GAAG,EAAE,EAAE;IACP,QAAQ,EAAE,EAAE;CACb,CAAC;AAKK,MAAM,aAAa,GAAG,CAAC,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,IAAI,EAAE,GAAG,UAAU,E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-1,5 +1,5 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { TextareaProps } from './InputProps';
3
- export declare type BareTextareaInputProps = Omit<TextareaProps, 'label' | 'initialValue' | 'onChange'> & Pick<ComponentProps<'textarea'>, 'onChange'>;
4
- export declare const BareTextareaInput: ({ validationValence, validationMessage, size, ...inputProps }: BareTextareaInputProps) => JSX.Element;
3
+ export type BareTextareaInputProps = Omit<TextareaProps, 'label' | 'initialValue' | 'onChange'> & Pick<ComponentProps<'textarea'>, 'onChange'>;
4
+ export declare const BareTextareaInput: ({ validationValence, validationMessage, size, borders, typography, rounding, ...inputProps }: BareTextareaInputProps) => JSX.Element;
5
5
  //# sourceMappingURL=BareTextareaInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BareTextareaInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/BareTextareaInput.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,oBAAY,sBAAsB,GAAG,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,CAAC,GAC7F,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC,CAAC;AAE/C,eAAO,MAAM,iBAAiB,kEAK3B,sBAAsB,gBAUxB,CAAC"}
1
+ {"version":3,"file":"BareTextareaInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/BareTextareaInput.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,CAAC,GAC7F,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC,CAAC;AAE/C,eAAO,MAAM,iBAAiB,iGAQ3B,sBAAsB,gBAgBxB,CAAC"}
@@ -10,8 +10,14 @@ exports.BareTextareaInput = void 0;
10
10
  const classnames_1 = __importDefault(require("classnames"));
11
11
  const react_1 = __importDefault(require("react"));
12
12
  const input_1 = require("../../styles/input");
13
- const BareTextareaInput = ({ validationValence, validationMessage, size, ...inputProps }) => {
14
- return (react_1.default.createElement("textarea", { ...inputProps, className: (0, classnames_1.default)((0, input_1.defaultInput)({ disabled: inputProps.disabled, ...(validationMessage && { validationValence }) }), 'block w-full px-2.5 py-2') }));
13
+ const BareTextareaInput = ({ validationValence, validationMessage, size, borders, typography, rounding, ...inputProps }) => {
14
+ return (react_1.default.createElement("textarea", { ...inputProps, className: (0, classnames_1.default)((0, input_1.defaultInput)({
15
+ borders,
16
+ typography,
17
+ rounding,
18
+ disabled: inputProps.disabled,
19
+ ...(validationMessage && { validationValence })
20
+ }), 'block w-full px-2.5 py-2') }));
15
21
  };
16
22
  exports.BareTextareaInput = BareTextareaInput;
17
23
  //# sourceMappingURL=BareTextareaInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BareTextareaInput.js","sourceRoot":"","sources":["../../../../src/components/Input/BareTextareaInput.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,4DAA4B;AAC5B,kDAA8C;AAE9C,8CAAkD;AAM3C,MAAM,iBAAiB,GAAG,CAAC,EAChC,iBAAiB,EACjB,iBAAiB,EACjB,IAAI,EACJ,GAAG,UAAU,EACU,EAAE,EAAE;IAC3B,OAAO,CACL,+CACM,UAAU,EACd,SAAS,EAAE,IAAA,oBAAE,EACX,IAAA,oBAAY,EAAC,EAAE,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAAE,GAAG,CAAC,iBAAiB,IAAI,EAAE,iBAAiB,EAAE,CAAC,EAAE,CAAC,EAChG,0BAA0B,CAC3B,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,iBAAiB,qBAe5B"}
1
+ {"version":3,"file":"BareTextareaInput.js","sourceRoot":"","sources":["../../../../src/components/Input/BareTextareaInput.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,4DAA4B;AAC5B,kDAA8C;AAE9C,8CAAkD;AAM3C,MAAM,iBAAiB,GAAG,CAAC,EAChC,iBAAiB,EACjB,iBAAiB,EACjB,IAAI,EACJ,OAAO,EACP,UAAU,EACV,QAAQ,EACR,GAAG,UAAU,EACU,EAAE,EAAE;IAC3B,OAAO,CACL,+CACM,UAAU,EACd,SAAS,EAAE,IAAA,oBAAE,EACX,IAAA,oBAAY,EAAC;YACX,OAAO;YACP,UAAU;YACV,QAAQ;YACR,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,GAAG,CAAC,iBAAiB,IAAI,EAAE,iBAAiB,EAAE,CAAC;SAChD,CAAC,EACF,0BAA0B,CAC3B,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAxBW,QAAA,iBAAiB,qBAwB5B"}
@@ -1,4 +1,4 @@
1
1
  import { InputProps as NaturalInputProps } from './InputProps';
2
- export declare type InputProps = NaturalInputProps;
3
- export declare const Input: ({ label, labelVisuallyHidden, placeholder, description, descriptionVisuallyHidden, required, initialValue, onChange, disabled, className, size, length, validationMessage, validationValence, ...inputProps }: InputProps) => JSX.Element;
2
+ export type InputProps = NaturalInputProps;
3
+ export declare const Input: ({ label, labelVisuallyHidden, placeholder, description, descriptionVisuallyHidden, required, initialValue, onChange, disabled, className, size, length, spacing, borders, typography, rounding, validationMessage, validationValence, ...inputProps }: InputProps) => JSX.Element;
4
4
  //# sourceMappingURL=Input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAE/D,oBAAY,UAAU,GAAG,iBAAiB,CAAC;AAE3C,eAAO,MAAM,KAAK,kNAgBf,UAAU,gBAiFZ,CAAC"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAE/D,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC;AAE3C,eAAO,MAAM,KAAK,0PAoBf,UAAU,gBAoFZ,CAAC"}
@@ -37,7 +37,7 @@ const styles_1 = require("../../styles");
37
37
  const BarePinInput_1 = require("./BarePinInput");
38
38
  const BareTextInput_1 = require("./BareTextInput");
39
39
  const BareTextareaInput_1 = require("./BareTextareaInput");
40
- const Input = ({ label, labelVisuallyHidden, placeholder, description, descriptionVisuallyHidden, required, initialValue, onChange, disabled, className, size, length = 6, validationMessage, validationValence, ...inputProps }) => {
40
+ const Input = ({ label, labelVisuallyHidden, placeholder, description, descriptionVisuallyHidden, required, initialValue, onChange, disabled, className, size, length = 6, spacing, borders, typography, rounding, validationMessage, validationValence, ...inputProps }) => {
41
41
  var _a;
42
42
  const inputId = (_a = inputProps.id) !== null && _a !== void 0 ? _a : (0, hooks_1.useId)('input');
43
43
  const descriptionId = (0, hooks_1.useId)('input-description');
@@ -68,10 +68,13 @@ const Input = ({ label, labelVisuallyHidden, placeholder, description, descripti
68
68
  value: internalValue,
69
69
  onChange: onInternalChange,
70
70
  validationMessage,
71
- validationValence
71
+ validationValence,
72
+ borders,
73
+ typography,
74
+ rounding
72
75
  };
73
76
  const bareInput = size === 'pin' ? (react_1.default.createElement(BarePinInput_1.BarePinInput, { ...bareInputBaseProps, length: length })) : size === 'textarea' ? (react_1.default.createElement(BareTextareaInput_1.BareTextareaInput, { ...bareInputBaseProps })) : (react_1.default.createElement(BareTextInput_1.BareTextInput, { ...bareInputBaseProps, size: size }));
74
- return (react_1.default.createElement("div", { role: 'none', className: (0, classnames_1.default)('mlb-4', className) },
77
+ return (react_1.default.createElement("div", { role: 'none', className: (0, classnames_1.default)(spacing !== null && spacing !== void 0 ? spacing : 'mlb-4', className) },
75
78
  react_1.default.createElement("label", { htmlFor: inputId, className: (0, classnames_1.default)('block pbe-1 text-sm font-medium text-neutral-900 dark:text-neutral-100', labelVisuallyHidden && 'sr-only') }, label),
76
79
  bareInput,
77
80
  (description || validationMessage) && (react_1.default.createElement("p", { ...(!isInvalid && { id: descriptionId }), className: (0, classnames_1.default)(descriptionVisuallyHidden && !isInvalid && 'sr-only') },
@@ -1 +1 @@
1
- {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../src/components/Input/Input.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,4DAA4B;AAC5B,+CAAiF;AAEjF,uCAAoC;AACpC,yCAAoE;AACpE,iDAA8C;AAC9C,mDAAgD;AAChD,2DAAgF;AAKzE,MAAM,KAAK,GAAG,CAAC,EACpB,KAAK,EACL,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,yBAAyB,EACzB,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,MAAM,GAAG,CAAC,EACV,iBAAiB,EACjB,iBAAiB,EACjB,GAAG,UAAU,EACF,EAAE,EAAE;;IACf,MAAM,OAAO,GAAG,MAAA,UAAU,CAAC,EAAE,mCAAI,IAAA,aAAK,EAAC,OAAO,CAAC,CAAC;IAChD,MAAM,aAAa,GAAG,IAAA,aAAK,EAAC,mBAAmB,CAAC,CAAC;IACjD,MAAM,YAAY,GAAG,IAAA,aAAK,EAAC,kBAAkB,CAAC,CAAC;IAE/C,MAAM,SAAS,GAAG,CAAC,CAAC,iBAAiB,IAAI,iBAAiB,KAAK,OAAO,CAAC;IAEvE,MAAM,CAAC,UAAU,EAAE,eAAe,CAAC,GAAG,IAAA,qBAAa,GAAE,CAAC;IAEtD,MAAM,CAAC,aAAa,EAA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AAC,CACF,8BAAC,6BAAa,OAAK,kBAAkB,EAAE,IAAI,EAAE,IAAI,GAAI,CACtD,CAAC;IAEJ,OAAO,CACL,uCAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAE,IAAA,oBAAE,EAAC,OAAO,EAAE,SAAS,CAAC;QAChD,yCACE,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,IAAA,oBAAE,EACX,wEAAwE,EACxE,mBAAmB,IAAI,SAAS,CACjC,IAEA,KAAK,CACA;QACP,SAAS;QACT,CAAC,WAAW,IAAI,iBAAiB,CAAC,IAAI,CACrC,wCACM,CAAC,CAAC,SAAS,IAAI,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,EACzC,SAAS,EAAE,IAAA,oBAAE,EAAC,yBAAyB,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC;YAElE,iBAAiB,IAAI,CACpB,wCAAM,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,IAAA,yBAAgB,EAAC,iBAAiB,CAAC;gBACnE,iBAAiB;gBAAE,GAAG,CAClB,CACR;YACD,2CACM,CAAC,SAAS,IAAI,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,EACxC,SAAS,EAAE,IAAA,oBAAE,EAAC,2BAAkB,EAAE,yBAAyB,IAAI,SAAS,CAAC,IAExE,WAAW,CACP,CACL,CACL,CACG,CACP,CAAC;AACJ,CAAC,CAAC;AAjGW,QAAA,KAAK,SAiGhB"}
1
+ {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../src/components/Input/Input.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,4DAA4B;AAC5B,+CAAiF;AAEjF,uCAAoC;AACpC,yCAAoE;AACpE,iDAA8C;AAC9C,mDAAgD;AAChD,2DAAgF;AAKzE,MAAM,KAAK,GAAG,CAAC,EACpB,KAAK,EACL,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,y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AE,EAAE,YAAY,EAAE,SAAS,EAAE,IAAA,yBAAgB,EAAC,iBAAiB,CAAC;gBACnE,iBAAiB;gBAAE,GAAG,CAClB,CACR;YACD,2CACM,CAAC,SAAS,IAAI,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,EACxC,SAAS,EAAE,IAAA,oBAAE,EAAC,2BAAkB,EAAE,yBAAyB,IAAI,SAAS,CAAC,IAExE,WAAW,CACP,CACL,CACL,CACG,CACP,CAAC;AACJ,CAAC,CAAC;AAxGW,QAAA,KAAK,SAwGhB"}
@@ -1,7 +1,7 @@
1
1
  import '@dxosTheme';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: ({ label, labelVisuallyHidden, placeholder, description, descriptionVisuallyHidden, required, initialValue, onChange, disabled, className, size, length, validationMessage, validationValence, ...inputProps }: import("./InputProps").InputProps) => JSX.Element;
4
+ component: ({ label, labelVisuallyHidden, placeholder, description, descriptionVisuallyHidden, required, initialValue, onChange, disabled, className, size, length, spacing, borders, typography, rounding, validationMessage, validationValence, ...inputProps }: import("./InputProps").InputProps) => JSX.Element;
5
5
  argTypes: {
6
6
  description: {
7
7
  control: string;
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps, ReactNode } from 'react';
2
2
  import { MessageValence } from '../../props';
3
- export declare type InputSize = 'md' | 'lg' | 'pin' | 'textarea';
3
+ export type InputSize = 'md' | 'lg' | 'pin' | 'textarea';
4
4
  interface InputPropsExtension {
5
5
  label: ReactNode;
6
6
  labelVisuallyHidden?: boolean;
@@ -13,6 +13,10 @@ interface InputPropsExtension {
13
13
  validationMessage?: ReactNode;
14
14
  validationValence?: MessageValence;
15
15
  length?: number;
16
+ spacing?: string;
17
+ borders?: string;
18
+ typography?: string;
19
+ rounding?: string;
16
20
  }
17
21
  export interface InputProps extends Omit<ComponentProps<'input'>, 'value' | 'onChange' | 'size' | 'ref'>, InputPropsExtension {
18
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"InputProps.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/InputProps.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,oBAAY,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,UAAU,CAAC;AAEzD,UAAU,mBAAmB;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,iBAAiB,CAAC,EAAE,cAAc,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,EAC1E,mBAAmB;CAAG;AAE1B,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,EAC7E,mBAAmB;CAAG"}
1
+ {"version":3,"file":"InputProps.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/InputProps.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,UAAU,CAAC;AAEzD,UAAU,mBAAmB;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,iBAAiB,CAAC,EAAE,cAAc,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,EAC1E,mBAAmB;CAAG;AAE1B,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,EAC7E,mBAAmB;CAAG"}
@@ -1,5 +1,5 @@
1
- export declare type LoadingSize = 'sm' | 'md' | 'lg' | 'xl';
2
- export declare type LoadingColor = 'primary' | 'neutral';
1
+ export type LoadingSize = 'sm' | 'md' | 'lg' | 'xl';
2
+ export type LoadingColor = 'primary' | 'neutral';
3
3
  export interface LoadingProps {
4
4
  label: string;
5
5
  size?: LoadingSize;
@@ -1 +1 @@
1
- {"version":3,"file":"Loading.d.ts","sourceRoot":"","sources":["../../../../src/components/Loading/Loading.tsx"],"names":[],"mappings":"AASA,oBAAY,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpD,oBAAY,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAEjD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AASD,eAAO,MAAM,OAAO;WAA+D,MAAM;iBA+BxF,CAAC"}
1
+ {"version":3,"file":"Loading.d.ts","sourceRoot":"","sources":["../../../../src/components/Loading/Loading.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAEjD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AASD,eAAO,MAAM,OAAO;WAA+D,MAAM;iBA+BxF,CAAC"}
@@ -20,7 +20,7 @@ export interface NavMenuInvokerItemProps extends NavMenuItemSharedProps {
20
20
  export interface NavMenuSeparatorProps {
21
21
  separator: true;
22
22
  }
23
- export declare type NavMenuItem = NavMenuTooltipLinkItemProps | NavMenuLinkItemProps | NavMenuInvokerItemProps | NavMenuSeparatorProps;
23
+ export type NavMenuItem = NavMenuTooltipLinkItemProps | NavMenuLinkItemProps | NavMenuInvokerItemProps | NavMenuSeparatorProps;
24
24
  export interface NavMenuProps extends ComponentProps<typeof NavigationMenuPrimitive.Root> {
25
25
  items: NavMenuItem[];
26
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NavMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/NavMenu/NavMenu.tsx"],"names":[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uB,MAAM,iCAAiC,CAAC;AAE3E,OAAO,KAAK,EAAE,EAAE,cAAc,EAA4B,SAAS,EAAE,MAAM,OAAO,CAAC;AAInF,OAAO,EAAW,YAAY,EAAE,MAAM,YAAY,CAAC;AAEnD,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,KAAK,CAAC;CACnB;AAED,MAAM,WAAW,oBAAqB,SAAQ,sBAAsB;IAClE,gBAAgB,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,CAAC;IACxF,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,2BAA4B,SAAQ,oBAAoB;IACvE,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,MAAM,WAAW,GACnB,2BAA2B,GAC3B,oBAAoB,GACpB,uBAAuB,GACvB,qBAAqB,CAAC;AAE1B,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC;IACvF,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB;AA6ED,eAAO,MAAM,WAAW,2HAA+B,CAAC;AAExD,eAAO,MAAM,oBAAoB,WAAY,qBAAqB,gBAEjE,CAAC;AAMF,eAAO,MAAM,OAAO,4BAA6B,YAAY,gBAgD5D,CAAC"}
@@ -10,7 +10,7 @@ export interface FullQrCodeProps extends SharedQrCodeProps {
10
10
  label: string | Omit<ReactHTMLElement<HTMLElement>, 'ref'>;
11
11
  size?: Size;
12
12
  }
13
- export declare type QrCodeProps = FullQrCodeProps;
13
+ export type QrCodeProps = FullQrCodeProps;
14
14
  export interface CompactQrCodeProps extends SharedQrCodeProps {
15
15
  displayQrLabel: string | Omit<ReactHTMLElement<HTMLElement>, 'ref'>;
16
16
  copyLabel: string | Omit<ReactHTMLElement<HTMLElement>, 'ref'>;
@@ -1 +1 @@
1
- {"version":3,"file":"QrCode.d.ts","sourceRoot":"","sources":["../../../../src/components/QrCode/QrCode.tsx"],"names":[],"mappings":"AAOA,OAAc,EAAe,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAG7D,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,OAAO,EAAuB,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAW,YAAY,EAAE,MAAM,YAAY,CAAC;AAEnD,UAAU,iBACR,SAAQ,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,KAAK,GAAG,SAAS,CAAC,EACtD,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,YAAY,GAAG,kBAAkB,CAAC;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC;IAC3D,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,oBAAY,WAAW,GAAG,eAAe,CAAC;AAE1C,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC;IACpE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC;CAChE;AAED,eAAO,MAAM,UAAU,8FASpB,eAAe,gBAoBjB,CAAC;AAEF,eAAO,MAAM,aAA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1,7 @@
1
1
  import { ToastProviderProps, ToastViewportProps } from '@radix-ui/react-toast';
2
2
  import { TooltipProviderProps } from '@radix-ui/react-tooltip';
3
3
  import { PropsWithChildren } from 'react';
4
- export declare type UiProviderProps = PropsWithChildren<{
4
+ export type UiProviderProps = PropsWithChildren<{
5
5
  tooltipProviderProps?: TooltipProviderProps;
6
6
  toastProviderProps?: ToastProviderProps;
7
7
  toastViewportProps?: ToastViewportProps;
@@ -1 +1 @@
1
- {"version":3,"file":"UiProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/UiProvider/UiProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,kBAAkB,EAElB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAA+B,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE5F,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIjD,oBAAY,eAAe,GAAG,iBAAiB,CAAC;IAC9C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC,CAAC,CAAC;AAEH,eAAO,MAAM,UAAU,+EAKpB,eAAe,gBAgBjB,CAAC"}
1
+ {"version":3,"file":"UiProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/UiProvider/UiProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,kBAAkB,EAElB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAA+B,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE5F,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIjD,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC9C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC,CAAC,CAAC;AAEH,eAAO,MAAM,UAAU,+EAKpB,eAAe,gBAgBjB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare type Elevation = 0 | 1 | 2 | 3 | 4 | 5 | 6;
1
+ export type Elevation = 0 | 1 | 2 | 3 | 4 | 5 | 6;
2
2
  //# sourceMappingURL=Elevation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Elevation.d.ts","sourceRoot":"","sources":["../../../src/props/Elevation.ts"],"names":[],"mappings":"AAIA,oBAAY,SAAS,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"Elevation.d.ts","sourceRoot":"","sources":["../../../src/props/Elevation.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare type MessageValence = 'success' | 'info' | 'warning' | 'error' | 'neutral';
1
+ export type MessageValence = 'success' | 'info' | 'warning' | 'error' | 'neutral';
2
2
  //# sourceMappingURL=MessageValence.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageValence.d.ts","sourceRoot":"","sources":["../../../src/props/MessageValence.ts"],"names":[],"mappings":"AAIA,oBAAY,cAAc,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"MessageValence.d.ts","sourceRoot":"","sources":["../../../src/props/MessageValence.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare type Size = 0 | 'px' | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 72 | 80 | 96;
1
+ export type Size = 0 | 'px' | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 72 | 80 | 96;
2
2
  //# sourceMappingURL=Size.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Size.d.ts","sourceRoot":"","sources":["../../../src/props/Size.ts"],"names":[],"mappings":"AAIA,oBAAY,IAAI,GACZ,CAAC,GACD,IAAI,GACJ,GAAG,GACH,CAAC,GACD,GAAG,GACH,CAAC,GACD,GAAG,GACH,CAAC,GACD,GAAG,GACH,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,CAAC"}
1
+ {"version":3,"file":"Size.d.ts","sourceRoot":"","sources":["../../../src/props/Size.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,IAAI,GACZ,CAAC,GACD,IAAI,GACJ,GAAG,GACH,CAAC,GACD,GAAG,GACH,CAAC,GACD,GAAG,GACH,CAAC,GACD,GAAG,GACH,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,CAAC"}
@@ -1,9 +1,15 @@
1
1
  import { MessageValence } from '../props';
2
- export declare const defaultInput: ({ disabled, validationValence }: {
2
+ export declare const defaultInput: ({ borders, typography, rounding, disabled, validationValence }: {
3
+ borders?: string | undefined;
4
+ typography?: string | undefined;
5
+ rounding?: string | undefined;
3
6
  disabled?: boolean | undefined;
4
7
  validationValence?: MessageValence | undefined;
5
8
  }) => string;
6
- export declare const staticInput: ({ disabled, focused, validationValence }: {
9
+ export declare const staticInput: ({ borders, typography, rounding, disabled, focused, validationValence }: {
10
+ borders?: string | undefined;
11
+ typography?: string | undefined;
12
+ rounding?: string | undefined;
7
13
  disabled?: boolean | undefined;
8
14
  focused?: boolean | undefined;
9
15
  validationValence?: MessageValence | undefined;
@@ -1 +1 @@
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;;;YAexB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;YAgBvB,CAAC"}
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"}
@@ -13,12 +13,12 @@ const focus_1 = require("./focus");
13
13
  const hover_1 = require("./hover");
14
14
  const text_1 = require("./text");
15
15
  const valence_1 = require("./valence");
16
- const defaultInput = ({ disabled, validationValence }) => {
17
- return (0, classnames_1.default)(focus_1.defaultFocus, text_1.defaultPlaceholder, (0, hover_1.defaultHover)({ disabled }), 'bg-white/50 border text-neutral-900 text-sm rounded-lg dark:bg-neutral-700/50 dark:text-white', (0, valence_1.valenceInputBorder)(validationValence), disabled && disabled_1.defaultDisabled);
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
18
  };
19
19
  exports.defaultInput = defaultInput;
20
- const staticInput = ({ disabled, focused, validationValence }) => {
21
- return (0, classnames_1.default)(text_1.defaultPlaceholder, 'bg-white/50 border text-neutral-900 text-sm rounded-lg dark:bg-neutral-700/50 dark:text-white', (0, valence_1.valenceInputBorder)(validationValence), disabled && disabled_1.defaultDisabled, focused && focus_1.staticFocus);
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
22
  };
23
23
  exports.staticInput = staticInput;
24
24
  //# sourceMappingURL=input.js.map
@@ -1 +1 @@
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,QAAQ,EACR,i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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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Vite plugin which configures a low-level design system for DXOS.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -41,3 +41,5 @@ Default.args = { children: 'Hello', disabled: false, variant: 'default' };
41
41
  export const Primary = () => <Template {...{ variant: 'primary', children: 'Hello' }} />;
42
42
 
43
43
  export const Outline = () => <Template {...{ variant: 'outline', children: 'Hello' }} />;
44
+
45
+ export const Ghost = () => <Template {...{ variant: 'ghost', children: 'Hello' }} />;
@@ -9,11 +9,11 @@ import { ButtonProps } from './ButtonProps';
9
9
  import { buttonStyles } from './buttonStyles';
10
10
 
11
11
  export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
12
- ({ children, compact, variant, rounding, ...props }, ref) => (
12
+ ({ children, compact, spacing, variant, rounding, ...props }, ref) => (
13
13
  <button
14
14
  ref={ref}
15
15
  {...props}
16
- className={cx(buttonStyles({ compact, variant, rounding, disabled: props.disabled }), props.className)}
16
+ className={cx(buttonStyles({ compact, spacing, variant, rounding, disabled: props.disabled }), props.className)}
17
17
  {...(props.disabled && { disabled: true })}
18
18
  >
19
19
  {children}
@@ -5,8 +5,9 @@
5
5
  import { ComponentProps } from 'react';
6
6
 
7
7
  export interface ButtonProps extends ComponentProps<'button'> {
8
- variant?: 'default' | 'primary' | 'outline';
8
+ variant?: 'default' | 'primary' | 'outline' | 'ghost';
9
9
  compact?: boolean;
10
10
  rounding?: string;
11
+ spacing?: string;
11
12
  disabled?: boolean;
12
13
  }
@@ -9,24 +9,28 @@ import { ButtonProps } from './ButtonProps';
9
9
 
10
10
  export const primaryButtonColors = 'bg-primary-600 text-white hover:bg-primary-650';
11
11
  export const defaultButtonColors = 'bg-white text-neutral-900 dark:bg-neutral-750 dark:text-neutral-50';
12
+ export const ghostButtonColors = '';
12
13
 
13
14
  export const buttonStyles = (props: ButtonProps) => {
14
15
  const resolvedVariant = props.variant || 'default';
15
16
  return cx(
16
17
  'inline-flex select-none items-center justify-center text-sm font-medium',
17
18
  props.rounding ?? 'rounded-md',
18
- props.compact ? 'p-1.5' : 'pli-4 plb-2',
19
+ props.spacing ?? (props.compact ? 'p-1.5' : 'pli-4 plb-2'),
19
20
  'transition-color duration-100',
20
21
  defaultHover(props),
21
- resolvedVariant === 'default' &&
22
- 'border border-neutral-100 dark:border-neutral-650 hover:focus:border-neutral-100 hover:border-transparent',
22
+ resolvedVariant === 'default' && 'border border-neutral-100 dark:border-neutral-650',
23
+ resolvedVariant !== 'ghost' && !props.disabled && 'hover:focus:border-neutral-100 hover:border-transparent',
23
24
  resolvedVariant === 'default' && defaultButtonColors,
25
+ resolvedVariant === 'ghost' && ghostButtonColors,
24
26
  resolvedVariant === 'primary' && 'border border-primary-550 hover:border-transparent',
25
27
  resolvedVariant === 'primary' && primaryButtonColors,
26
28
  resolvedVariant === 'outline' &&
27
29
  'text-neutral-700 border border-neutral-600 dark:border-neutral-300 dark:text-neutral-150',
28
30
  defaultFocus,
29
- props.disabled ? defaultDisabled : resolvedVariant !== 'outline' && 'button-elevation',
31
+ props.disabled
32
+ ? defaultDisabled
33
+ : resolvedVariant !== 'outline' && resolvedVariant !== 'ghost' && 'button-elevation',
30
34
  // Register all radix states
31
35
  'group',
32
36
  defaultActive
@@ -9,8 +9,8 @@ import { defaultInput } from '../../styles/input';
9
9
  import { InputProps, InputSize } from './InputProps';
10
10
 
11
11
  const sizeMap: Record<InputSize, string> = {
12
- md: 'text-sm',
13
- lg: 'text-base',
12
+ md: 'text-base',
13
+ lg: 'text-lg',
14
14
  pin: '',
15
15
  textarea: ''
16
16
  };
@@ -18,14 +18,27 @@ const sizeMap: Record<InputSize, string> = {
18
18
  export type BareTextInputProps = Omit<InputProps, 'label' | 'initialValue' | 'onChange'> &
19
19
  Pick<ComponentProps<'input'>, 'onChange'>;
20
20
 
21
- export const BareTextInput = ({ validationValence, validationMessage, size, ...inputProps }: BareTextInputProps) => {
21
+ export const BareTextInput = ({
22
+ validationValence,
23
+ validationMessage,
24
+ size,
25
+ borders,
26
+ typography,
27
+ rounding,
28
+ ...inputProps
29
+ }: BareTextInputProps) => {
22
30
  return (
23
31
  <input
24
32
  {...inputProps}
25
33
  className={cx(
26
- defaultInput({ disabled: inputProps.disabled, ...(validationMessage && { validationValence }) }),
27
- 'block w-full px-2.5 py-2',
28
- sizeMap[size ?? 'md']
34
+ defaultInput({
35
+ borders,
36
+ rounding,
37
+ typography: typography ?? sizeMap[size ?? 'md'],
38
+ disabled: inputProps.disabled,
39
+ ...(validationMessage && { validationValence })
40
+ }),
41
+ 'block w-full px-2.5 py-2'
29
42
  )}
30
43
  />
31
44
  );
@@ -15,13 +15,22 @@ export const BareTextareaInput = ({
15
15
  validationValence,
16
16
  validationMessage,
17
17
  size,
18
+ borders,
19
+ typography,
20
+ rounding,
18
21
  ...inputProps
19
22
  }: BareTextareaInputProps) => {
20
23
  return (
21
24
  <textarea
22
25
  {...inputProps}
23
26
  className={cx(
24
- defaultInput({ disabled: inputProps.disabled, ...(validationMessage && { validationValence }) }),
27
+ defaultInput({
28
+ borders,
29
+ typography,
30
+ rounding,
31
+ disabled: inputProps.disabled,
32
+ ...(validationMessage && { validationValence })
33
+ }),
25
34
  'block w-full px-2.5 py-2'
26
35
  )}
27
36
  />
@@ -27,6 +27,10 @@ export const Input = ({
27
27
  className,
28
28
  size,
29
29
  length = 6,
30
+ spacing,
31
+ borders,
32
+ typography,
33
+ rounding,
30
34
  validationMessage,
31
35
  validationValence,
32
36
  ...inputProps
@@ -67,7 +71,10 @@ export const Input = ({
67
71
  value: internalValue,
68
72
  onChange: onInternalChange,
69
73
  validationMessage,
70
- validationValence
74
+ validationValence,
75
+ borders,
76
+ typography,
77
+ rounding
71
78
  };
72
79
 
73
80
  const bareInput =
@@ -80,7 +87,7 @@ export const Input = ({
80
87
  );
81
88
 
82
89
  return (
83
- <div role='none' className={cx('mlb-4', className)}>
90
+ <div role='none' className={cx(spacing ?? 'mlb-4', className)}>
84
91
  <label
85
92
  htmlFor={inputId}
86
93
  className={cx(
@@ -20,6 +20,10 @@ interface InputPropsExtension {
20
20
  validationMessage?: ReactNode;
21
21
  validationValence?: MessageValence;
22
22
  length?: number;
23
+ spacing?: string;
24
+ borders?: string;
25
+ typography?: string;
26
+ rounding?: string;
23
27
  }
24
28
 
25
29
  export interface InputProps
@@ -12,9 +12,15 @@ import { defaultPlaceholder } from './text';
12
12
  import { valenceInputBorder } from './valence';
13
13
 
14
14
  export const defaultInput = ({
15
+ borders,
16
+ typography,
17
+ rounding,
15
18
  disabled,
16
19
  validationValence
17
20
  }: {
21
+ borders?: string;
22
+ typography?: string;
23
+ rounding?: string;
18
24
  disabled?: boolean;
19
25
  validationValence?: MessageValence;
20
26
  }) => {
@@ -22,25 +28,37 @@ export const defaultInput = ({
22
28
  defaultFocus,
23
29
  defaultPlaceholder,
24
30
  defaultHover({ disabled }),
25
- 'bg-white/50 border text-neutral-900 text-sm rounded-lg dark:bg-neutral-700/50 dark:text-white',
26
- valenceInputBorder(validationValence),
31
+ 'bg-white/50 text-neutral-900 dark:bg-neutral-700/50 dark:text-white',
32
+ typography ?? 'text-base',
33
+ borders ?? 'border',
34
+ borders ?? valenceInputBorder(validationValence),
35
+ rounding ?? 'rounded',
27
36
  disabled && defaultDisabled
28
37
  );
29
38
  };
30
39
 
31
40
  export const staticInput = ({
41
+ borders,
42
+ typography,
43
+ rounding,
32
44
  disabled,
33
45
  focused,
34
46
  validationValence
35
47
  }: {
48
+ borders?: string;
49
+ typography?: string;
50
+ rounding?: string;
36
51
  disabled?: boolean;
37
52
  focused?: boolean;
38
53
  validationValence?: MessageValence;
39
54
  }) => {
40
55
  return cx(
41
56
  defaultPlaceholder,
42
- 'bg-white/50 border text-neutral-900 text-sm rounded-lg dark:bg-neutral-700/50 dark:text-white',
43
- valenceInputBorder(validationValence),
57
+ 'bg-white/50 text-neutral-900 dark:bg-neutral-700/50 dark:text-white',
58
+ typography ?? 'text-base',
59
+ borders ?? 'border',
60
+ borders ?? valenceInputBorder(validationValence),
61
+ rounding ?? 'rounded',
44
62
  disabled && defaultDisabled,
45
63
  focused && staticFocus
46
64
  );