@jobber/components 9.5.1 → 9.5.3

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.
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { u as useDialogRootContext, h as useDialogPortalContext, i as DialogStore } from './ScrollAreaViewport-es.js';
2
+ import { u as useDialogRootContext, l as useDialogPortalContext, m as DialogStore } from './ScrollAreaViewport-es.js';
3
3
  import { u as useRenderElement } from './useRenderElement-es.js';
4
4
  import { p as popupStateMapping, t as transitionStatusMapping, u as useBaseUiId, C as CommonPopupDataAttributes, f as useOpenChangeComplete, h as createDefaultInitialFocus, F as FOCUSABLE_POPUP_PROPS, i as FloatingFocusManager, d as createChangeEventDetails, j as imperativeAction } from './useScrollLock-es.js';
5
5
  import { C as COMPOSITE_KEYS } from './scrollEdges-es.js';
package/dist/Menu-cjs.js CHANGED
@@ -90,7 +90,7 @@ function MenuLegacy({ activator, items, UNSAFE_className, UNSAFE_style, }) {
90
90
  [styles$2.fullWidth]: fullWidth,
91
91
  });
92
92
  jobberHooks.useRefocusOnActivator(visible);
93
- const isLargeScreen = width >= SMALL_SCREEN_BREAKPOINT;
93
+ const isLargeScreen = width !== undefined && width >= SMALL_SCREEN_BREAKPOINT;
94
94
  const middleware = React.useMemo(() => {
95
95
  if (isLargeScreen) {
96
96
  return [
@@ -905,8 +905,7 @@ function useMenuShell() {
905
905
  return isMobile ? MenuBottomSheet : MenuDropdown;
906
906
  }
907
907
  function MenuComposableRoot(props) {
908
- const { width } = jobberHooks.useWindowDimensions();
909
- const isMobile = width !== undefined && width <= SMALL_SCREEN_BREAKPOINT;
908
+ const isMobile = jobberHooks.useIsSmallScreen();
910
909
  const RootComponent = isMobile ? MenuBottomSheet : MenuDropdown;
911
910
  return (React.createElement(MenuContext.Provider, { value: { isMobile } },
912
911
  React.createElement(RootComponent, { onOpenChange: props.onOpenChange, open: props.open, defaultOpen: props.defaultOpen }, props.children)));
package/dist/Menu-es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React__default, { useState, useRef, useId, useMemo } from 'react';
2
- import { useWindowDimensions, useRefocusOnActivator } from '@jobber/hooks';
2
+ import { useWindowDimensions, useRefocusOnActivator, useIsSmallScreen } from '@jobber/hooks';
3
3
  import classnames from 'classnames';
4
4
  import { AnimatePresence, motion } from 'framer-motion';
5
5
  import { u as useFloating, c as useDismiss, g as useListNavigation, d as useInteractions, F as FloatingPortal } from './floating-ui.react-es.js';
@@ -88,7 +88,7 @@ function MenuLegacy({ activator, items, UNSAFE_className, UNSAFE_style, }) {
88
88
  [styles$2.fullWidth]: fullWidth,
89
89
  });
90
90
  useRefocusOnActivator(visible);
91
- const isLargeScreen = width >= SMALL_SCREEN_BREAKPOINT;
91
+ const isLargeScreen = width !== undefined && width >= SMALL_SCREEN_BREAKPOINT;
92
92
  const middleware = useMemo(() => {
93
93
  if (isLargeScreen) {
94
94
  return [
@@ -903,8 +903,7 @@ function useMenuShell() {
903
903
  return isMobile ? MenuBottomSheet : MenuDropdown;
904
904
  }
905
905
  function MenuComposableRoot(props) {
906
- const { width } = useWindowDimensions();
907
- const isMobile = width !== undefined && width <= SMALL_SCREEN_BREAKPOINT;
906
+ const isMobile = useIsSmallScreen();
908
907
  const RootComponent = isMobile ? MenuBottomSheet : MenuDropdown;
909
908
  return (React__default.createElement(MenuContext.Provider, { value: { isMobile } },
910
909
  React__default.createElement(RootComponent, { onOpenChange: props.onOpenChange, open: props.open, defaultOpen: props.defaultOpen }, props.children)));
@@ -4303,4 +4303,4 @@ function mergeHiddenState(prevState, nextState) {
4303
4303
  return nextState;
4304
4304
  }
4305
4305
 
4306
- export { getElementAtPoint as A, findScrollableTouchTarget as B, useScrollAreaRootContext as C, DrawerTrigger as D, getOffset as E, ScrollAreaRootCssVars as F, scrollAreaStateAttributesMapping as G, useScrollAreaViewportContext as H, ScrollAreaRoot as S, DrawerRoot as a, DrawerPortal as b, DrawerBackdrop as c, DrawerViewport as d, DrawerPopup as e, ScrollAreaViewport as f, DrawerContent as g, useDialogPortalContext as h, DialogStore as i, DialogRoot as j, DialogTrigger as k, DialogPortal as l, DialogViewport as m, createInitialPopupStoreState as n, useDrawerProviderContext as o, popupStoreSelectors as p, DrawerBackdropCssVars as q, DrawerPopupCssVars as r, DrawerProviderContext as s, useDrawerRootContext as t, useDialogRootContext as u, useSwipeDismiss as v, getDisplacement as w, DrawerPopupDataAttributes as x, getElementTransform as y, DrawerVirtualKeyboardContext as z };
4306
+ export { getElementAtPoint as A, findScrollableTouchTarget as B, useScrollAreaRootContext as C, DrawerTrigger as D, getOffset as E, ScrollAreaRootCssVars as F, scrollAreaStateAttributesMapping as G, useScrollAreaViewportContext as H, ScrollAreaRoot as S, DrawerRoot as a, DrawerPortal as b, DrawerBackdrop as c, DrawerViewport as d, DrawerPopup as e, ScrollAreaViewport as f, DrawerContent as g, DialogRoot as h, DialogTrigger as i, DialogPortal as j, DialogViewport as k, useDialogPortalContext as l, DialogStore as m, createInitialPopupStoreState as n, useDrawerProviderContext as o, popupStoreSelectors as p, DrawerBackdropCssVars as q, DrawerPopupCssVars as r, DrawerProviderContext as s, useDrawerRootContext as t, useDialogRootContext as u, useSwipeDismiss as v, getDisplacement as w, DrawerPopupDataAttributes as x, getElementTransform as y, DrawerVirtualKeyboardContext as z };
@@ -26,7 +26,7 @@ function SheetOption({ value, children, className, style }) {
26
26
  return (React.createElement("div", { role: "option", "aria-selected": selected, "data-value": value, tabIndex: -1, className: classnames(styles.sheetOption, className), style: style, onClick: () => onSelect(value) },
27
27
  React.createElement("span", { className: styles.sheetOptionLabel }, children),
28
28
  selected && (React.createElement("span", { className: styles.sheetOptionIndicator, "aria-hidden": "true" },
29
- React.createElement(Icon.Icon, { name: "checkmark", size: "small" })))));
29
+ React.createElement(Icon.Icon, { color: "icon", name: "checkmark" })))));
30
30
  }
31
31
  function SheetGroup({ children, className, style }) {
32
32
  const labelId = React.useId();
@@ -100,7 +100,7 @@ function SelectBottomSheetRoot({ value, onValueChange, onBlur, onFocus, disabled
100
100
  return (React.createElement(SheetContext.Provider, { value: { value: selectedValue, onSelect: select } },
101
101
  React.createElement(BottomSheet.BottomSheet.Root, { open: open, onOpenChange: setOpen },
102
102
  React.createElement(BottomSheet.BottomSheet.Trigger, { render: React.createElement(SelectPrimitive.SelectPrimitive.FieldTrigger, { id: triggerId, disabled: disabled, onBlur: onBlur, onFocus: onFocus, "data-placeholder": selectedValue ? undefined : "", "data-invalid": invalid ? "" : undefined, "data-popup-open": open ? "" : undefined, className: triggerClassName, valueSlot: React.createElement(SelectPrimitive.SelectPrimitive.ValueText, null, valueLabel) }) }),
103
- React.createElement(BottomSheet.BottomSheet.Popup, { initialFocus: getInitialFocus },
103
+ React.createElement(BottomSheet.BottomSheet.Popup, { "data-elevation": "elevated", initialFocus: getInitialFocus },
104
104
  React.createElement(BottomSheet.BottomSheet.Content, null,
105
105
  React.createElement("div", { ref: listRef, role: "listbox", "aria-label": ariaLabel, className: styles.sheetListbox, onKeyDown: handleListboxKeyDown }, children))))));
106
106
  }
@@ -140,7 +140,6 @@ function SelectDropdownRoot({ value, onValueChange, onBlur, onFocus, disabled, r
140
140
  React.createElement(SelectPrimitive.SelectPrimitive.List, null, children))))));
141
141
  }
142
142
 
143
- const SMALL_SCREEN_BREAKPOINT = jobberHooks.BREAKPOINT_SIZES.sm;
144
143
  const SelectShellContext = React.createContext(null);
145
144
  function useSelectShell() {
146
145
  const shell = React.useContext(SelectShellContext);
@@ -180,8 +179,7 @@ function Select({ label, description, error, invalid, value, onValueChange, onBl
180
179
  const isInvalid = hasError || Boolean(invalid);
181
180
  const showDescription = !inline && Boolean(description) && !hasError;
182
181
  const showError = !inline && hasError;
183
- const { width } = jobberHooks.useWindowDimensions();
184
- const isBottomSheet = width !== undefined && width <= SMALL_SCREEN_BREAKPOINT;
182
+ const isBottomSheet = jobberHooks.useIsSmallScreen();
185
183
  const shell = isBottomSheet ? selectBottomSheetShell : selectDropdownShell;
186
184
  const ShellRoot = isBottomSheet ? SelectBottomSheetRoot : SelectDropdownRoot;
187
185
  return (React.createElement(FieldDescription.FieldRoot, { className: classnames(styles.field, inline && styles.inline, size && styles[size], label && styles.hasLabel), disabled: disabled, invalid: isInvalid || undefined, name: name },
package/dist/Select-es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React__default, { useState, useRef, useId, useImperativeHandle } from 'react';
2
- import { BREAKPOINT_SIZES, useWindowDimensions } from '@jobber/hooks';
2
+ import { useIsSmallScreen } from '@jobber/hooks';
3
3
  import classnames from 'classnames';
4
4
  import { S as SelectPrimitive } from './SelectPrimitive-es.js';
5
5
  import { a as BottomSheet } from './BottomSheet-es.js';
@@ -24,7 +24,7 @@ function SheetOption({ value, children, className, style }) {
24
24
  return (React__default.createElement("div", { role: "option", "aria-selected": selected, "data-value": value, tabIndex: -1, className: classnames(styles.sheetOption, className), style: style, onClick: () => onSelect(value) },
25
25
  React__default.createElement("span", { className: styles.sheetOptionLabel }, children),
26
26
  selected && (React__default.createElement("span", { className: styles.sheetOptionIndicator, "aria-hidden": "true" },
27
- React__default.createElement(Icon, { name: "checkmark", size: "small" })))));
27
+ React__default.createElement(Icon, { color: "icon", name: "checkmark" })))));
28
28
  }
29
29
  function SheetGroup({ children, className, style }) {
30
30
  const labelId = useId();
@@ -98,7 +98,7 @@ function SelectBottomSheetRoot({ value, onValueChange, onBlur, onFocus, disabled
98
98
  return (React__default.createElement(SheetContext.Provider, { value: { value: selectedValue, onSelect: select } },
99
99
  React__default.createElement(BottomSheet.Root, { open: open, onOpenChange: setOpen },
100
100
  React__default.createElement(BottomSheet.Trigger, { render: React__default.createElement(SelectPrimitive.FieldTrigger, { id: triggerId, disabled: disabled, onBlur: onBlur, onFocus: onFocus, "data-placeholder": selectedValue ? undefined : "", "data-invalid": invalid ? "" : undefined, "data-popup-open": open ? "" : undefined, className: triggerClassName, valueSlot: React__default.createElement(SelectPrimitive.ValueText, null, valueLabel) }) }),
101
- React__default.createElement(BottomSheet.Popup, { initialFocus: getInitialFocus },
101
+ React__default.createElement(BottomSheet.Popup, { "data-elevation": "elevated", initialFocus: getInitialFocus },
102
102
  React__default.createElement(BottomSheet.Content, null,
103
103
  React__default.createElement("div", { ref: listRef, role: "listbox", "aria-label": ariaLabel, className: styles.sheetListbox, onKeyDown: handleListboxKeyDown }, children))))));
104
104
  }
@@ -138,7 +138,6 @@ function SelectDropdownRoot({ value, onValueChange, onBlur, onFocus, disabled, r
138
138
  React__default.createElement(SelectPrimitive.List, null, children))))));
139
139
  }
140
140
 
141
- const SMALL_SCREEN_BREAKPOINT = BREAKPOINT_SIZES.sm;
142
141
  const SelectShellContext = React__default.createContext(null);
143
142
  function useSelectShell() {
144
143
  const shell = React__default.useContext(SelectShellContext);
@@ -178,8 +177,7 @@ function Select({ label, description, error, invalid, value, onValueChange, onBl
178
177
  const isInvalid = hasError || Boolean(invalid);
179
178
  const showDescription = !inline && Boolean(description) && !hasError;
180
179
  const showError = !inline && hasError;
181
- const { width } = useWindowDimensions();
182
- const isBottomSheet = width !== undefined && width <= SMALL_SCREEN_BREAKPOINT;
180
+ const isBottomSheet = useIsSmallScreen();
183
181
  const shell = isBottomSheet ? selectBottomSheetShell : selectDropdownShell;
184
182
  const ShellRoot = isBottomSheet ? SelectBottomSheetRoot : SelectDropdownRoot;
185
183
  return (React__default.createElement(FieldRoot, { className: classnames(styles.field, inline && styles.inline, size && styles[size], label && styles.hasLabel), disabled: disabled, invalid: isInvalid || undefined, name: name },
@@ -56,7 +56,7 @@ function SelectPrimitivePositioner(_a) {
56
56
  // ─── Popup ────────────────────────────────────────────────────────────────────
57
57
  function SelectPrimitivePopup(_a) {
58
58
  var { className } = _a, props = tslib_es6.__rest(_a, ["className"]);
59
- return (React.createElement(SelectGroupLabel.SelectPopup, Object.assign({ className: mergeClassName(styles.popup, className) }, props)));
59
+ return (React.createElement(SelectGroupLabel.SelectPopup, Object.assign({ className: mergeClassName(styles.popup, className), "data-elevation": "elevated" }, props)));
60
60
  }
61
61
  // ─── List ─────────────────────────────────────────────────────────────────────
62
62
  function SelectPrimitiveList(_a) {
@@ -76,7 +76,7 @@ function SelectPrimitiveItemText(_a) {
76
76
  // ─── ItemIndicator ────────────────────────────────────────────────────────────
77
77
  function SelectPrimitiveItemIndicator(_a) {
78
78
  var { className, children } = _a, props = tslib_es6.__rest(_a, ["className", "children"]);
79
- return (React.createElement(SelectGroupLabel.SelectItemIndicator, Object.assign({ keepMounted: true, className: mergeClassName(styles.itemIndicator, className) }, props), children !== null && children !== void 0 ? children : React.createElement(Icon.Icon, { color: "icon", name: "checkmark", size: "base" })));
79
+ return (React.createElement(SelectGroupLabel.SelectItemIndicator, Object.assign({ keepMounted: true, className: mergeClassName(styles.itemIndicator, className) }, props), children !== null && children !== void 0 ? children : React.createElement(Icon.Icon, { color: "icon", name: "checkmark" })));
80
80
  }
81
81
  // ─── Group ────────────────────────────────────────────────────────────────────
82
82
  function SelectPrimitiveGroup(_a) {
@@ -54,7 +54,7 @@ function SelectPrimitivePositioner(_a) {
54
54
  // ─── Popup ────────────────────────────────────────────────────────────────────
55
55
  function SelectPrimitivePopup(_a) {
56
56
  var { className } = _a, props = __rest(_a, ["className"]);
57
- return (React__default.createElement(SelectPopup, Object.assign({ className: mergeClassName(styles.popup, className) }, props)));
57
+ return (React__default.createElement(SelectPopup, Object.assign({ className: mergeClassName(styles.popup, className), "data-elevation": "elevated" }, props)));
58
58
  }
59
59
  // ─── List ─────────────────────────────────────────────────────────────────────
60
60
  function SelectPrimitiveList(_a) {
@@ -74,7 +74,7 @@ function SelectPrimitiveItemText(_a) {
74
74
  // ─── ItemIndicator ────────────────────────────────────────────────────────────
75
75
  function SelectPrimitiveItemIndicator(_a) {
76
76
  var { className, children } = _a, props = __rest(_a, ["className", "children"]);
77
- return (React__default.createElement(SelectItemIndicator, Object.assign({ keepMounted: true, className: mergeClassName(styles.itemIndicator, className) }, props), children !== null && children !== void 0 ? children : React__default.createElement(Icon, { color: "icon", name: "checkmark", size: "base" })));
77
+ return (React__default.createElement(SelectItemIndicator, Object.assign({ keepMounted: true, className: mergeClassName(styles.itemIndicator, className) }, props), children !== null && children !== void 0 ? children : React__default.createElement(Icon, { color: "icon", name: "checkmark" })));
78
78
  }
79
79
  // ─── Group ────────────────────────────────────────────────────────────────────
80
80
  function SelectPrimitiveGroup(_a) {
@@ -17,11 +17,6 @@ var DrawerTitle = require('./DrawerTitle-cjs.js');
17
17
  var DrawerDescription = require('./DrawerDescription-cjs.js');
18
18
  var nestedEscape = require('./nestedEscape-cjs.js');
19
19
 
20
- // Copied from Menu's constant so the two surfaces agree on what "mobile" means.
21
- // (The proposal calls for copying shared Menu values into the component first
22
- // and deciding later whether to promote them to a shared location.)
23
- const SMALL_SCREEN_BREAKPOINT = 490;
24
-
25
20
  var styles = {"small":"uYYyCR3l6E8-","base":"X1jGz-sLWf4-","large":"_4zFf2PkFhaA-","fullScreen":"nJoCr8oWJ7w-","header":"XFKiCQ8QbQU-","close":"FDOhnO0TT08-","scrollRegion":"_8DjYA23vHXA-","scrollViewport":"Bwr9IUYpLfM-","body":"zp9kx9uue2I-","fullBleed":"EhtwBTy1ai4-","footer":"DRIJhI1knKw-","sheetSurface":"vmcZRwOcNMo-","popup":"mFX7qDCd17I-","backdrop":"NE-BIsVE-hE-","viewport":"hp70o-3Cf-w-","spinning":"Zf-Z8DJcC-Y-"};
26
21
 
27
22
  var actionsStyles = {"actions":"hKVNddbxkmo-","leftActions":"nslrozOH-v4-","buttonGroup":"BrXAnQBttWE-","align-left":"_9Vgd-3YJxlI-","align-right":"_8HC9NqvmJdo-","align-fullWidth":"ZZ3XuxGv6ow-","spinning":"PWf7wHPhd2A-"};
@@ -323,8 +318,7 @@ function Dialog(_a) {
323
318
  }
324
319
  onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(nextOpen, eventDetails);
325
320
  }
326
- const { width } = jobberHooks.useWindowDimensions();
327
- const isMobile = width !== undefined && width <= SMALL_SCREEN_BREAKPOINT;
321
+ const isMobile = jobberHooks.useIsSmallScreen();
328
322
  // The shell is the root component; its parts are reached via `useDialogShell`
329
323
  // in each part below (the Menu pattern).
330
324
  const RootComponent = isMobile ? DialogBottomSheet : DialogModal;
@@ -1,10 +1,10 @@
1
1
  import { _ as __rest } from './tslib.es6-es.js';
2
2
  import React__default, { isValidElement } from 'react';
3
- import { useWindowDimensions } from '@jobber/hooks';
3
+ import { useIsSmallScreen } from '@jobber/hooks';
4
4
  import classnames from 'classnames';
5
5
  import { n as normalizeBaseUiButtonProps, i as isAtlantisButtonRenderTarget, s as stripNativeTypeFromButtonRenderTarget, r as renderAtlantisButtonTarget } from './buttonRenderAdapter-es.js';
6
6
  import { B as Button } from './Button-es.js';
7
- import { S as ScrollAreaRoot, f as ScrollAreaViewport, g as DrawerContent, j as DialogRoot, k as DialogTrigger$1, l as DialogPortal, m as DialogViewport } from './ScrollAreaViewport-es.js';
7
+ import { S as ScrollAreaRoot, f as ScrollAreaViewport, g as DrawerContent, h as DialogRoot, i as DialogTrigger$1, j as DialogPortal, k as DialogViewport } from './ScrollAreaViewport-es.js';
8
8
  import { m as mergeProps } from './useRenderElement-es.js';
9
9
  import './OverlaySeparator-es.js';
10
10
  import { a as BottomSheet, B as BottomSheetScrollAreaContext } from './BottomSheet-es.js';
@@ -15,11 +15,6 @@ import { D as DrawerTitle, a as DrawerClose, b as DialogTitle$1, c as DialogClos
15
15
  import { D as DrawerDescription, a as DialogBackdrop, b as DialogPopup, c as DialogDescription, d as createDialogHandle } from './DrawerDescription-es.js';
16
16
  import { i as isEscapeHandledByModal } from './nestedEscape-es.js';
17
17
 
18
- // Copied from Menu's constant so the two surfaces agree on what "mobile" means.
19
- // (The proposal calls for copying shared Menu values into the component first
20
- // and deciding later whether to promote them to a shared location.)
21
- const SMALL_SCREEN_BREAKPOINT = 490;
22
-
23
18
  var styles = {"small":"uYYyCR3l6E8-","base":"X1jGz-sLWf4-","large":"_4zFf2PkFhaA-","fullScreen":"nJoCr8oWJ7w-","header":"XFKiCQ8QbQU-","close":"FDOhnO0TT08-","scrollRegion":"_8DjYA23vHXA-","scrollViewport":"Bwr9IUYpLfM-","body":"zp9kx9uue2I-","fullBleed":"EhtwBTy1ai4-","footer":"DRIJhI1knKw-","sheetSurface":"vmcZRwOcNMo-","popup":"mFX7qDCd17I-","backdrop":"NE-BIsVE-hE-","viewport":"hp70o-3Cf-w-","spinning":"Zf-Z8DJcC-Y-"};
24
19
 
25
20
  var actionsStyles = {"actions":"hKVNddbxkmo-","leftActions":"nslrozOH-v4-","buttonGroup":"BrXAnQBttWE-","align-left":"_9Vgd-3YJxlI-","align-right":"_8HC9NqvmJdo-","align-fullWidth":"ZZ3XuxGv6ow-","spinning":"PWf7wHPhd2A-"};
@@ -321,8 +316,7 @@ function Dialog(_a) {
321
316
  }
322
317
  onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(nextOpen, eventDetails);
323
318
  }
324
- const { width } = useWindowDimensions();
325
- const isMobile = width !== undefined && width <= SMALL_SCREEN_BREAKPOINT;
319
+ const isMobile = useIsSmallScreen();
326
320
  // The shell is the root component; its parts are reached via `useDialogShell`
327
321
  // in each part below (the Menu pattern).
328
322
  const RootComponent = isMobile ? DialogBottomSheet : DialogModal;
package/dist/styles.css CHANGED
@@ -5184,10 +5184,13 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
5184
5184
  border-radius: 4px;
5185
5185
  border-radius: var(--radius-small);
5186
5186
  outline: none;
5187
- color: inherit;
5187
+ color: hsl(198, 35%, 21%);
5188
+ color: var(--color-text);
5188
5189
  font-family: inherit;
5189
5190
  font-size: 14px;
5190
5191
  font-size: var(--typography--fontSize-base);
5192
+ line-height: 1.25;
5193
+ line-height: var(--typography--lineHeight-base);
5191
5194
  text-align: left;
5192
5195
  -webkit-user-select: none;
5193
5196
  -ms-user-select: none;
@@ -5218,6 +5221,7 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
5218
5221
  flex: 1;
5219
5222
  min-width: 0;
5220
5223
  overflow: hidden;
5224
+ font-weight: 600;
5221
5225
  text-overflow: ellipsis;
5222
5226
  white-space: nowrap;
5223
5227
  }
@@ -5280,8 +5284,6 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
5280
5284
  .ZhtKkgZiSQI- {
5281
5285
  display: -ms-flexbox;
5282
5286
  display: flex;
5283
- -ms-flex-align: center;
5284
- align-items: center;
5285
5287
  padding: 8px 8px 4px;
5286
5288
  padding: var(--space-small) var(--space-small) var(--space-smaller);
5287
5289
  color: hsl(197, 21%, 36%);
@@ -5289,6 +5291,10 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
5289
5291
  font-size: 14px;
5290
5292
  font-size: var(--typography--fontSize-base);
5291
5293
  font-weight: 400;
5294
+ line-height: 1.25;
5295
+ line-height: var(--typography--lineHeight-base);
5296
+ -ms-flex-align: center;
5297
+ align-items: center;
5292
5298
  }
5293
5299
 
5294
5300
  .kub1yKbFFN0- {
@@ -13378,10 +13384,12 @@ input.oOrjwubmsVA- {
13378
13384
  border-radius: 8px;
13379
13385
  border-radius: var(--radius-base);
13380
13386
  outline: none;
13381
- color: hsl(197, 90%, 12%);
13382
- color: var(--color-heading);
13387
+ color: hsl(198, 35%, 21%);
13388
+ color: var(--color-text);
13383
13389
  font-size: 14px;
13384
13390
  font-size: var(--typography--fontSize-base);
13391
+ line-height: 1.25;
13392
+ line-height: var(--typography--lineHeight-base);
13385
13393
  cursor: pointer;
13386
13394
  }
13387
13395
 
@@ -13396,6 +13404,7 @@ input.oOrjwubmsVA- {
13396
13404
  flex: 1;
13397
13405
  min-width: 0;
13398
13406
  overflow: hidden;
13407
+ font-weight: 600;
13399
13408
  text-overflow: ellipsis;
13400
13409
  white-space: nowrap;
13401
13410
  }
@@ -13437,6 +13446,9 @@ input.oOrjwubmsVA- {
13437
13446
  color: var(--color-text--secondary);
13438
13447
  font-size: 14px;
13439
13448
  font-size: var(--typography--fontSize-base);
13449
+ font-weight: 400;
13450
+ line-height: 1.25;
13451
+ line-height: var(--typography--lineHeight-base);
13440
13452
  }
13441
13453
 
13442
13454
  .RPsN9vqlzRw- {
@@ -6,7 +6,7 @@ import { bn as pointer, a as useIsoLayoutEffect, b as useStableCallback, C as Co
6
6
  import { S as Separator } from '../Separator-es.js';
7
7
  import { a as DialogBackdrop, c as DialogDescription, e as DialogHandle, b as DialogPopup, d as createDialogHandle, D as DrawerDescription } from '../DrawerDescription-es.js';
8
8
  import { c as DialogClose, b as DialogTitle, a as DrawerClose, D as DrawerTitle } from '../DrawerTitle-es.js';
9
- import { l as DialogPortal, j as DialogRoot, k as DialogTrigger, m as DialogViewport, o as useDrawerProviderContext, q as DrawerBackdropCssVars, r as DrawerPopupCssVars, s as DrawerProviderContext, u as useDialogRootContext, t as useDrawerRootContext, v as useSwipeDismiss, w as getDisplacement, x as DrawerPopupDataAttributes, y as getElementTransform, z as DrawerVirtualKeyboardContext, A as getElementAtPoint, B as findScrollableTouchTarget, c as DrawerBackdrop, g as DrawerContent, e as DrawerPopup, b as DrawerPortal, a as DrawerRoot, D as DrawerTrigger, d as DrawerViewport, C as useScrollAreaRootContext, E as getOffset, F as ScrollAreaRootCssVars, G as scrollAreaStateAttributesMapping, H as useScrollAreaViewportContext, S as ScrollAreaRoot, f as ScrollAreaViewport } from '../ScrollAreaViewport-es.js';
9
+ import { j as DialogPortal, h as DialogRoot, i as DialogTrigger, k as DialogViewport, o as useDrawerProviderContext, q as DrawerBackdropCssVars, r as DrawerPopupCssVars, s as DrawerProviderContext, u as useDialogRootContext, t as useDrawerRootContext, v as useSwipeDismiss, w as getDisplacement, x as DrawerPopupDataAttributes, y as getElementTransform, z as DrawerVirtualKeyboardContext, A as getElementAtPoint, B as findScrollableTouchTarget, c as DrawerBackdrop, g as DrawerContent, e as DrawerPopup, b as DrawerPortal, a as DrawerRoot, D as DrawerTrigger, d as DrawerViewport, C as useScrollAreaRootContext, E as getOffset, F as ScrollAreaRootCssVars, G as scrollAreaStateAttributesMapping, H as useScrollAreaViewportContext, S as ScrollAreaRoot, f as ScrollAreaViewport } from '../ScrollAreaViewport-es.js';
10
10
  import { u as useRenderElement, f as formatErrorMessage, N as NOOP, E as EMPTY_OBJECT } from '../useRenderElement-es.js';
11
11
  import { K as getWindow, h as getComputedStyle, i as isHTMLElement, e as getParentNode, G as round } from '../floating-ui.utils-es.js';
12
12
  import { c as clamp, g as getMaxScrollOffset, n as normalizeScrollOffset, S as SCROLL_EDGE_TOLERANCE_PX } from '../scrollEdges-es.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "9.5.1",
3
+ "version": "9.5.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -491,7 +491,7 @@
491
491
  "@apollo/client": "^3.7.10",
492
492
  "@csstools/postcss-global-data": "^1.0.3",
493
493
  "@jobber/design": "0.111.0",
494
- "@jobber/hooks": "2.21.0",
494
+ "@jobber/hooks": "2.21.1",
495
495
  "@rollup/plugin-alias": "^5.1.0",
496
496
  "@rollup/plugin-commonjs": "^25.0.7",
497
497
  "@rollup/plugin-node-resolve": "15.2.3",
@@ -544,5 +544,5 @@
544
544
  "> 1%",
545
545
  "IE 10"
546
546
  ],
547
- "gitHead": "fa434ac44221189da047b2e797df08269a76946e"
547
+ "gitHead": "2557e3892ae9903c706aebba90ff44bbb349618c"
548
548
  }
@@ -1 +0,0 @@
1
- export declare const SMALL_SCREEN_BREAKPOINT = 490;