@jobber/components 6.98.2 → 6.99.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/Autocomplete/index.mjs +1 -1
- package/dist/Card/index.cjs +2 -0
- package/dist/Card/index.mjs +2 -0
- package/dist/ComboboxContent-es.js +1 -1
- package/dist/DataDump/index.cjs +2 -0
- package/dist/DataDump/index.mjs +2 -0
- package/dist/DatePicker-es.js +1 -1
- package/dist/InputNumber/index.cjs +1954 -7663
- package/dist/InputNumber/index.mjs +1909 -7618
- package/dist/Menu/Menu.d.ts +27 -76
- package/dist/Menu/Menu.types.d.ts +183 -0
- package/dist/Menu/constants.d.ts +13 -0
- package/dist/Menu/index.cjs +2 -0
- package/dist/Menu/index.d.ts +2 -1
- package/dist/Menu/index.mjs +2 -0
- package/dist/Menu-cjs.js +260 -26
- package/dist/Menu-es.js +264 -30
- package/dist/Modal/Modal.types.d.ts +5 -0
- package/dist/Modal/index.cjs +35 -7
- package/dist/Modal/index.mjs +37 -9
- package/dist/Modal/useModal.d.ts +4 -2
- package/dist/Page/index.cjs +2 -0
- package/dist/Page/index.mjs +2 -0
- package/dist/Popover-es.js +1 -1
- package/dist/RecurringSelect/index.cjs +1 -0
- package/dist/RecurringSelect/index.mjs +1 -0
- package/dist/Tooltip-es.js +1 -1
- package/dist/Tree-cjs.js +11867 -0
- package/dist/Tree-es.js +11820 -0
- package/dist/floating-ui.react-es.js +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.mjs +1 -0
- package/dist/styles.css +108 -12
- package/dist/useScrollToActive-es.js +1 -1
- package/dist/utils/meta/meta.json +9 -0
- package/package.json +2 -2
|
@@ -5908,4 +5908,4 @@ function useTransitionStyles(context, props) {
|
|
|
5908
5908
|
};
|
|
5909
5909
|
}
|
|
5910
5910
|
|
|
5911
|
-
export { FloatingPortal as F,
|
|
5911
|
+
export { FloatingPortal as F, arrow as a, autoUpdate as b, size as c, useDismiss as d, useListNavigation as e, flip as f, useInteractions as g, useFloatingParentNodeId as h, useFloatingNodeId as i, FloatingTree as j, FloatingNode as k, limitShift as l, autoPlacement as m, useRole as n, offset as o, FloatingFocusManager as p, FloatingOverlay as q, useTransitionStyles as r, shift as s, FloatingArrow as t, useFloating as u };
|
package/dist/index.cjs
CHANGED
|
@@ -178,6 +178,7 @@ require('./useFormFieldFocus-cjs.js');
|
|
|
178
178
|
require('filesize');
|
|
179
179
|
require('./GridCell-cjs.js');
|
|
180
180
|
require('axios');
|
|
181
|
+
require('./Tree-cjs.js');
|
|
181
182
|
require('./AtlantisPortalContent-cjs.js');
|
|
182
183
|
require('@jobber/formatters');
|
|
183
184
|
require('react-dom/client');
|
package/dist/index.mjs
CHANGED
package/dist/styles.css
CHANGED
|
@@ -2886,6 +2886,7 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
|
|
|
2886
2886
|
padding-bottom: calc(env(safe-area-inset-bottom) + var(--menu-space));
|
|
2887
2887
|
border-radius: 8px 8px 0 0;
|
|
2888
2888
|
border-radius: var(--radius-base) var(--radius-base) 0 0;
|
|
2889
|
+
outline: none;
|
|
2889
2890
|
overflow-y: scroll;
|
|
2890
2891
|
background-color: rgba(255, 255, 255, 1);
|
|
2891
2892
|
background-color: var(--color-surface);
|
|
@@ -2942,19 +2943,85 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
|
|
|
2942
2943
|
}
|
|
2943
2944
|
}
|
|
2944
2945
|
|
|
2945
|
-
.
|
|
2946
|
+
.VsRRunpS6Yo- {
|
|
2946
2947
|
padding: var(--menu-space) 0;
|
|
2948
|
+
}
|
|
2949
|
+
|
|
2950
|
+
.VsRRunpS6Yo-,
|
|
2951
|
+
.jnggqK3YTIU- {
|
|
2947
2952
|
border-bottom: 1px solid hsl(200, 13%, 87%);
|
|
2948
2953
|
border-bottom: var(--border-base) solid var(--color-border);
|
|
2949
2954
|
}
|
|
2950
2955
|
|
|
2951
|
-
.
|
|
2956
|
+
.VsRRunpS6Yo-:last-of-type {
|
|
2957
|
+
padding-bottom: 0;
|
|
2958
|
+
border-bottom: none;
|
|
2959
|
+
}
|
|
2960
|
+
|
|
2961
|
+
.VsRRunpS6Yo-:first-of-type {
|
|
2952
2962
|
padding-top: 0;
|
|
2953
2963
|
}
|
|
2954
2964
|
|
|
2955
|
-
.
|
|
2956
|
-
|
|
2957
|
-
|
|
2965
|
+
.jnggqK3YTIU- {
|
|
2966
|
+
margin: 8px 0;
|
|
2967
|
+
margin: var(--space-small) 0;
|
|
2968
|
+
grid-column: 1 / -1;
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
.oRQQVVq-yxA- {
|
|
2972
|
+
display: -ms-inline-flexbox;
|
|
2973
|
+
display: inline-flex;
|
|
2974
|
+
outline: none;
|
|
2975
|
+
}
|
|
2976
|
+
|
|
2977
|
+
.QInUBKqkrl0- {
|
|
2978
|
+
display: grid;
|
|
2979
|
+
max-height: inherit;
|
|
2980
|
+
grid-template-columns: auto 1fr auto;
|
|
2981
|
+
}
|
|
2982
|
+
|
|
2983
|
+
.bWR8m7-LKg4- {
|
|
2984
|
+
display: grid;
|
|
2985
|
+
grid-template-columns: subgrid;
|
|
2986
|
+
grid-column: 1 / -1;
|
|
2987
|
+
-ms-flex-align: center;
|
|
2988
|
+
align-items: center;
|
|
2989
|
+
grid-gap: var(--menu-space);
|
|
2990
|
+
gap: var(--menu-space);
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
.bWR8m7-LKg4- > [data-menu-slot="icon"] {
|
|
2994
|
+
grid-column-start: 1;
|
|
2995
|
+
grid-row-start: 1;
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2998
|
+
.bWR8m7-LKg4- > [data-menu-slot="label"] {
|
|
2999
|
+
grid-column-start: 2;
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
.PH5vvtLgvXI- {
|
|
3003
|
+
display: grid;
|
|
3004
|
+
grid-template-columns: subgrid;
|
|
3005
|
+
grid-column: 1 / -1;
|
|
3006
|
+
grid-column-start: 1;
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
.QInUBKqkrl0- .PH5vvtLgvXI-:not(:first-child) {
|
|
3010
|
+
margin-top: 8px;
|
|
3011
|
+
margin-top: var(--space-small);
|
|
3012
|
+
}
|
|
3013
|
+
|
|
3014
|
+
/* When a section follows a separator, avoid doubling vertical spacing.
|
|
3015
|
+
Grid items don't collapse margins, so the section's top margin would add
|
|
3016
|
+
to the separator's bottom margin. Remove the section margin in this case. */
|
|
3017
|
+
|
|
3018
|
+
.QInUBKqkrl0- .jnggqK3YTIU- + .PH5vvtLgvXI- {
|
|
3019
|
+
margin-top: 0;
|
|
3020
|
+
}
|
|
3021
|
+
|
|
3022
|
+
.iJjIifpa9bk- {
|
|
3023
|
+
grid-column: 1 / -1;
|
|
3024
|
+
grid-column-start: 1;
|
|
2958
3025
|
}
|
|
2959
3026
|
|
|
2960
3027
|
.Bq7pLWj3jm4- {
|
|
@@ -2965,10 +3032,26 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
|
|
|
2965
3032
|
padding: calc(var(--menu-space) * 1.5) var(--menu-space);
|
|
2966
3033
|
}
|
|
2967
3034
|
|
|
2968
|
-
.
|
|
3035
|
+
.P4Sdaq0-lZs- {
|
|
2969
3036
|
display: -ms-flexbox;
|
|
2970
3037
|
display: flex;
|
|
3038
|
+
gap: var(--menu-space);
|
|
3039
|
+
-ms-flex-align: center;
|
|
3040
|
+
align-items: center;
|
|
2971
3041
|
width: 100%;
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3044
|
+
/* Legacy variant focus-visible styling */
|
|
3045
|
+
|
|
3046
|
+
.P4Sdaq0-lZs-:focus-visible {
|
|
3047
|
+
box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 1), 0px 0px 0px 4px hsl(198, 12%, 57%);
|
|
3048
|
+
box-shadow: var(--shadow-focus);
|
|
3049
|
+
background-color: hsl(53, 21%, 93%);
|
|
3050
|
+
background-color: var(--color-surface--hover);
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
.M1BgN-oCmKw- {
|
|
3054
|
+
box-sizing: border-box;
|
|
2972
3055
|
padding: var(--menu-space);
|
|
2973
3056
|
border: none;
|
|
2974
3057
|
border-radius: 8px;
|
|
@@ -2977,28 +3060,41 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
|
|
|
2977
3060
|
text-align: left;
|
|
2978
3061
|
background-color: transparent;
|
|
2979
3062
|
cursor: pointer;
|
|
2980
|
-
|
|
2981
|
-
-ms-flex-align: center;
|
|
2982
|
-
align-items: center;
|
|
3063
|
+
|
|
2983
3064
|
transition:
|
|
2984
3065
|
background-color 200ms ease-out,
|
|
2985
3066
|
box-shadow 200ms ease-out;
|
|
3067
|
+
|
|
2986
3068
|
transition:
|
|
2987
3069
|
background-color var(--timing-base) ease-out,
|
|
2988
3070
|
box-shadow var(--timing-base) ease-out;
|
|
2989
3071
|
}
|
|
2990
3072
|
|
|
2991
|
-
.M1BgN-oCmKw-:hover
|
|
2992
|
-
.M1BgN-oCmKw-:focus-visible {
|
|
3073
|
+
.M1BgN-oCmKw-:hover {
|
|
2993
3074
|
background-color: hsl(53, 21%, 93%);
|
|
2994
3075
|
background-color: var(--color-surface--hover);
|
|
2995
3076
|
}
|
|
2996
3077
|
|
|
2997
|
-
|
|
3078
|
+
/* Background on both legacy (:focus-visible) and RAC ([data-focused]) */
|
|
3079
|
+
|
|
3080
|
+
.M1BgN-oCmKw-[data-focused] {
|
|
3081
|
+
background-color: hsl(53, 21%, 93%);
|
|
3082
|
+
background-color: var(--color-surface--hover);
|
|
3083
|
+
}
|
|
3084
|
+
|
|
3085
|
+
/* Focus ring for legacy and RAC keyboard focus */
|
|
3086
|
+
|
|
3087
|
+
.M1BgN-oCmKw-[data-focus-visible] {
|
|
2998
3088
|
box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 1), 0px 0px 0px 4px hsl(198, 12%, 57%);
|
|
2999
3089
|
box-shadow: var(--shadow-focus);
|
|
3000
3090
|
}
|
|
3001
3091
|
|
|
3092
|
+
/* Do not show focus ring when item is hovered (pointer interaction) */
|
|
3093
|
+
|
|
3094
|
+
.M1BgN-oCmKw-[data-hovered][data-focus-visible] {
|
|
3095
|
+
box-shadow: none;
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3002
3098
|
.M1BgN-oCmKw- span {
|
|
3003
3099
|
/* match appearance of Button labels */
|
|
3004
3100
|
-webkit-font-smoothing: antialiased;
|
|
@@ -10,7 +10,7 @@ import { _ as _baseRest, a as _isIterateeCall } from './_isIterateeCall-es.js';
|
|
|
10
10
|
import { useLiveAnnounce } from '@jobber/hooks';
|
|
11
11
|
import { d as debounce } from './debounce-es.js';
|
|
12
12
|
import { I as Icon } from './Icon-es.js';
|
|
13
|
-
import { u as useFloating, o as offset, f as flip,
|
|
13
|
+
import { u as useFloating, o as offset, f as flip, c as size, b as autoUpdate } from './floating-ui.react-es.js';
|
|
14
14
|
import { c as calculateMaxHeight } from './maxHeight-es.js';
|
|
15
15
|
|
|
16
16
|
var baseEach = _baseEach,
|
|
@@ -140,6 +140,15 @@
|
|
|
140
140
|
"ListItem",
|
|
141
141
|
"Markdown",
|
|
142
142
|
"Menu",
|
|
143
|
+
"Menu.Content",
|
|
144
|
+
"Menu.Header",
|
|
145
|
+
"Menu.HeaderLabel",
|
|
146
|
+
"Menu.Item",
|
|
147
|
+
"Menu.ItemIcon",
|
|
148
|
+
"Menu.ItemLabel",
|
|
149
|
+
"Menu.Section",
|
|
150
|
+
"Menu.Separator",
|
|
151
|
+
"Menu.Trigger",
|
|
143
152
|
"Modal",
|
|
144
153
|
"Modal.Actions",
|
|
145
154
|
"Modal.Activator",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.99.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -541,5 +541,5 @@
|
|
|
541
541
|
"> 1%",
|
|
542
542
|
"IE 10"
|
|
543
543
|
],
|
|
544
|
-
"gitHead": "
|
|
544
|
+
"gitHead": "805d5411160c2db2f48cbbefc0ea6da9a7c791b5"
|
|
545
545
|
}
|