@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.
@@ -2,5 +2,11 @@ declare namespace _default {
2
2
  let borderTop: string;
3
3
  let borderColor: string;
4
4
  let padding: number;
5
+ let gap: number;
6
+ let justifyContent: string;
7
+ namespace flexDirection {
8
+ let base: string;
9
+ let desktop: string;
10
+ }
5
11
  }
6
12
  export default _default;
@@ -198,6 +198,12 @@ declare const _default: {
198
198
  borderTop: string;
199
199
  borderColor: string;
200
200
  padding: number;
201
+ gap: number;
202
+ justifyContent: string;
203
+ flexDirection: {
204
+ base: string;
205
+ desktop: string;
206
+ };
201
207
  };
202
208
  };
203
209
  sizes: {
@@ -208,6 +214,13 @@ declare const _default: {
208
214
  minHeight: string[];
209
215
  };
210
216
  };
217
+ 'sm-md': {
218
+ dialog: {
219
+ maxHeight: string[];
220
+ minWidth: (string | number)[];
221
+ maxWidth: string[];
222
+ };
223
+ };
211
224
  md: {
212
225
  dialog: {
213
226
  maxWidth: string[];
package/dist/index.cjs.js CHANGED
@@ -141,7 +141,7 @@ var header$1 = _ref => {
141
141
  * @param {boolean} isOpen - Whether or not the Modal is open
142
142
  * @param {React.ReactNode} children - The header text of the modal
143
143
  * @param {()=>void} [onClose] - Callback invoked to close the Modal. Not required, but strongly suggested.
144
- * @param {('sm'|'md'|'lg')} [size] - The size of the modal. If unspecified, uses "md" styles.
144
+ * @param {('sm'|'sm-md'|'md'|'lg')} [size] - The size of the modal. If unspecified, uses "md" styles.
145
145
  * @param {object} [contentStyling] - Style props to be passed into the modal content
146
146
  * @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
147
147
  * @param {boolean} [hasHeader] - Whether or not ModalHeader is a child. Will change the styling
@@ -182,7 +182,7 @@ Modal.propTypes = {
182
182
  /** Callback invoked to close the Modal. Not required, but strongly suggested. */
183
183
  onClose: PropTypes__default.default.func,
184
184
  /** The size of the modal. If unspecified, uses md styles. */
185
- size: PropTypes__default.default.oneOf(['sm', 'md', 'lg']),
185
+ size: PropTypes__default.default.oneOf(['sm', 'sm-md', 'md', 'lg']),
186
186
  /** Whether or not to show the close button (optional) */
187
187
  hideCloseButton: PropTypes__default.default.bool,
188
188
  /** Objects containing css-in-js styling*/
@@ -206,7 +206,7 @@ const fadeOutAndSlideDown = react.keyframes(_templateObject6 || (_templateObject
206
206
  * @param {boolean} isOpen - Whether or not the Modal is open
207
207
  * @param {React.ReactNode} children - The header text of the modal
208
208
  * @param {()=>void} [onClose] - Callback invoked to close the Modal. Not required, but strongly suggested.
209
- * @param {('sm'|'md'|'lg')} [size] - The size of the modal. If unspecified, uses "md" styles.
209
+ * @param {('sm'|'sm-md'|'md'|'lg')} [size] - The size of the modal. If unspecified, uses "md" styles.
210
210
  * @param {object} [contentStyling] - Style props to be passed into the modal content
211
211
  * @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
212
212
  * @param {boolean} [hasHeader] - Whether or not ModalHeader is a child. Will change the styling
@@ -275,7 +275,7 @@ AlwaysMountedModal.propTypes = {
275
275
  /** Callback invoked to close the Modal. Not required, but strongly suggested. */
276
276
  onClose: PropTypes__default.default.func,
277
277
  /** The size of the modal. If unspecified, uses md styles. */
278
- size: PropTypes__default.default.oneOf(['sm', 'md', 'lg']),
278
+ size: PropTypes__default.default.oneOf(['sm', 'sm-md', 'md', 'lg']),
279
279
  /** Whether or not to show the close button (optional) */
280
280
  hideCloseButton: PropTypes__default.default.bool,
281
281
  /** Objects containing css-in-js styling*/
@@ -3734,7 +3734,13 @@ var body$1 = _ref => {
3734
3734
  var footer$1 = {
3735
3735
  borderTop: '1px',
3736
3736
  borderColor: 'gray.100',
3737
- padding: 4
3737
+ padding: 4,
3738
+ gap: 4,
3739
+ justifyContent: 'flex-start',
3740
+ flexDirection: {
3741
+ base: 'column',
3742
+ desktop: 'row-reverse'
3743
+ }
3738
3744
  };
3739
3745
 
3740
3746
  const baseStyle$4 = props => ({
@@ -3755,6 +3761,13 @@ const sizes$3 = {
3755
3761
  minHeight: ['auto', 'auto', '32%', '32%', '24%']
3756
3762
  }
3757
3763
  },
3764
+ 'sm-md': {
3765
+ dialog: {
3766
+ maxHeight: ['100%', '100%', '65%', '65%', '65%'],
3767
+ minWidth: ['100%', '100%', 96, 96, 96],
3768
+ maxWidth: ['100%', '100%', '55%', '42%', '30%']
3769
+ }
3770
+ },
3758
3771
  md: {
3759
3772
  dialog: {
3760
3773
  maxWidth: ['100%', '100%', '84%', '60%', '48%'],