@spothero/ui 25.11.0 → 25.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -112,7 +112,7 @@ var header$1 = _ref => {
112
112
  * @param {boolean} isOpen - Whether or not the Modal is open
113
113
  * @param {React.ReactNode} children - The header text of the modal
114
114
  * @param {()=>void} [onClose] - Callback invoked to close the Modal. Not required, but strongly suggested.
115
- * @param {('sm'|'md'|'lg')} [size] - The size of the modal. If unspecified, uses "md" styles.
115
+ * @param {('sm'|'sm-md'|'md'|'lg')} [size] - The size of the modal. If unspecified, uses "md" styles.
116
116
  * @param {object} [contentStyling] - Style props to be passed into the modal content
117
117
  * @param {object} [overlayProps] - Props to be passed into the ModalOverlay component. See: https://github.com/chakra-ui/chakra-ui/blob/main/packages/components/modal/src/modal-overlay.tsx
118
118
  * @param {boolean} [hasHeader] - Whether or not ModalHeader is a child. Will change the styling
@@ -153,7 +153,7 @@ Modal.propTypes = {
153
153
  /** Callback invoked to close the Modal. Not required, but strongly suggested. */
154
154
  onClose: PropTypes.func,
155
155
  /** The size of the modal. If unspecified, uses md styles. */
156
- size: PropTypes.oneOf(['sm', 'md', 'lg']),
156
+ size: PropTypes.oneOf(['sm', 'sm-md', 'md', 'lg']),
157
157
  /** Whether or not to show the close button (optional) */
158
158
  hideCloseButton: PropTypes.bool,
159
159
  /** Objects containing css-in-js styling*/
@@ -177,7 +177,7 @@ const fadeOutAndSlideDown = keyframes(_templateObject6 || (_templateObject6 = _t
177
177
  * @param {boolean} isOpen - Whether or not the Modal is open
178
178
  * @param {React.ReactNode} children - The header text of the modal
179
179
  * @param {()=>void} [onClose] - Callback invoked to close the Modal. Not required, but strongly suggested.
180
- * @param {('sm'|'md'|'lg')} [size] - The size of the modal. If unspecified, uses "md" styles.
180
+ * @param {('sm'|'sm-md'|'md'|'lg')} [size] - The size of the modal. If unspecified, uses "md" styles.
181
181
  * @param {object} [contentStyling] - Style props to be passed into the modal content
182
182
  * @param {object} [overlayProps] - Props to be passed into the ModalOverlay component. See: https://github.com/chakra-ui/chakra-ui/blob/main/packages/components/modal/src/modal-overlay.tsx
183
183
  * @param {boolean} [hasHeader] - Whether or not ModalHeader is a child. Will change the styling
@@ -246,7 +246,7 @@ AlwaysMountedModal.propTypes = {
246
246
  /** Callback invoked to close the Modal. Not required, but strongly suggested. */
247
247
  onClose: PropTypes.func,
248
248
  /** The size of the modal. If unspecified, uses md styles. */
249
- size: PropTypes.oneOf(['sm', 'md', 'lg']),
249
+ size: PropTypes.oneOf(['sm', 'sm-md', 'md', 'lg']),
250
250
  /** Whether or not to show the close button (optional) */
251
251
  hideCloseButton: PropTypes.bool,
252
252
  /** Objects containing css-in-js styling*/
@@ -3705,7 +3705,13 @@ var body$1 = _ref => {
3705
3705
  var footer$1 = {
3706
3706
  borderTop: '1px',
3707
3707
  borderColor: 'gray.100',
3708
- padding: 4
3708
+ padding: 4,
3709
+ gap: 4,
3710
+ justifyContent: 'flex-start',
3711
+ flexDirection: {
3712
+ base: 'column',
3713
+ desktop: 'row-reverse'
3714
+ }
3709
3715
  };
3710
3716
 
3711
3717
  const baseStyle$4 = props => ({
@@ -3726,6 +3732,13 @@ const sizes$3 = {
3726
3732
  minHeight: ['auto', 'auto', '32%', '32%', '24%']
3727
3733
  }
3728
3734
  },
3735
+ 'sm-md': {
3736
+ dialog: {
3737
+ maxHeight: ['100%', '100%', '65%', '65%', '65%'],
3738
+ minWidth: ['100%', '100%', 96, 96, 96],
3739
+ maxWidth: ['100%', '100%', '55%', '42%', '30%']
3740
+ }
3741
+ },
3729
3742
  md: {
3730
3743
  dialog: {
3731
3744
  maxWidth: ['100%', '100%', '84%', '60%', '48%'],