@jobber/components 9.12.3 → 9.13.1
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/Combobox/Combobox.contentSlots.d.ts +4 -4
- package/dist/Combobox/Combobox.d.ts +11 -11
- package/dist/Combobox/Combobox.footer.d.ts +2 -2
- package/dist/Combobox/Combobox.items.d.ts +8 -8
- package/dist/Combobox/index.cjs +1 -0
- package/dist/Combobox/index.mjs +1 -0
- package/dist/Combobox-cjs.js +4 -23
- package/dist/Combobox-es.js +5 -24
- package/dist/FieldDescription-es.js +1 -1
- package/dist/InputNumber/InputNumber.d.ts +1 -5
- package/dist/InputNumber/InputNumber.slots.d.ts +11 -0
- package/dist/InputNumber/index.cjs +3 -2
- package/dist/InputNumber/index.mjs +3 -2
- package/dist/InputNumber-cjs.js +147 -22
- package/dist/InputNumber-es.js +149 -24
- package/dist/LightBox-cjs.js +2 -21
- package/dist/LightBox-es.js +2 -21
- package/dist/NumberFieldInput-es.js +1 -1
- package/dist/Select-es.js +1 -1
- package/dist/docs/InputNumber/InputNumber.md +131 -17
- package/dist/index.cjs +1 -0
- package/dist/index.mjs +1 -0
- package/dist/slotSystem-cjs.js +30 -0
- package/dist/slotSystem-es.js +28 -0
- package/dist/styles.css +25 -14
- package/dist/unstyledPrimitives/index.mjs +1 -1
- package/dist/utils/slotSystem.d.ts +12 -0
- package/package.json +2 -2
- package/dist/Combobox/Combobox.slotFactory.d.ts +0 -7
package/dist/styles.css
CHANGED
|
@@ -13075,21 +13075,23 @@ progress.w8NAw4ZMB6g-[value]::-webkit-progress-value {
|
|
|
13075
13075
|
}
|
|
13076
13076
|
|
|
13077
13077
|
/**
|
|
13078
|
-
*
|
|
13079
|
-
*
|
|
13080
|
-
*
|
|
13078
|
+
* The open LightBox is a `position: fixed` portal on `document.body`, and a
|
|
13079
|
+
* fixed element is repainted on every page of a printed document. Hiding the
|
|
13080
|
+
* rest of the body leaves nothing to paginate, so the image prints exactly
|
|
13081
|
+
* once no matter how tall the page behind it is.
|
|
13082
|
+
*
|
|
13083
|
+
* Keyed off the overlay being in the DOM rather than a class the component
|
|
13084
|
+
* toggles, so it cannot fall out of sync with what is on screen. See OPS-26781.
|
|
13081
13085
|
*/
|
|
13082
13086
|
@media print {
|
|
13083
|
-
|
|
13084
|
-
|
|
13085
|
-
}
|
|
13087
|
+
body:has(> ._5p2iAj4JfoE-) > *:not(._5p2iAj4JfoE-) {
|
|
13088
|
+
display: none;
|
|
13089
|
+
}
|
|
13086
13090
|
|
|
13087
|
-
|
|
13088
|
-
|
|
13089
|
-
height: 100%;
|
|
13090
|
-
overflow: hidden;
|
|
13091
|
-
}
|
|
13091
|
+
._5p2iAj4JfoE- ._3TfQLQEE3GQ- {
|
|
13092
|
+
display: none;
|
|
13092
13093
|
}
|
|
13094
|
+
}
|
|
13093
13095
|
|
|
13094
13096
|
.i9Tw1T65W-k- {
|
|
13095
13097
|
position: absolute;
|
|
@@ -14306,20 +14308,29 @@ html.atlantisLightBoxActive {
|
|
|
14306
14308
|
);
|
|
14307
14309
|
}
|
|
14308
14310
|
|
|
14311
|
+
/* Spacing sits here, not on `.description`, so it applies to whichever part is present. */
|
|
14309
14312
|
.kkywg49kgrg- {
|
|
14310
14313
|
display: -ms-flexbox;
|
|
14311
14314
|
display: flex;
|
|
14312
14315
|
-ms-flex-direction: column;
|
|
14313
14316
|
flex-direction: column;
|
|
14317
|
+
gap: 4px;
|
|
14318
|
+
gap: var(--space-smaller);
|
|
14319
|
+
margin-top: 4px;
|
|
14320
|
+
margin-top: var(--space-smaller);
|
|
14321
|
+
}
|
|
14322
|
+
|
|
14323
|
+
/* A part with an empty message renders nothing, so the row must not hold space. */
|
|
14324
|
+
.kkywg49kgrg-:empty {
|
|
14325
|
+
margin-top: 0;
|
|
14314
14326
|
}
|
|
14315
14327
|
|
|
14316
14328
|
/**
|
|
14317
14329
|
* `Field.Description` renders a `<p>`, which inherits the user-agent
|
|
14318
|
-
* `margin-block` defaults. Reset
|
|
14330
|
+
* `margin-block` defaults. Reset so spacing comes only from the footer's gap.
|
|
14319
14331
|
*/
|
|
14320
14332
|
.buIzMqBEpSQ- {
|
|
14321
|
-
margin:
|
|
14322
|
-
margin: var(--space-smaller) 0 0 0;
|
|
14333
|
+
margin: 0;
|
|
14323
14334
|
color: hsl(197, 21%, 36%);
|
|
14324
14335
|
color: var(--color-text--secondary);
|
|
14325
14336
|
font-size: 12px;
|
|
@@ -13,7 +13,7 @@ import { u as useMenuRootContext, o as useMenuPositionerContext, p as useMenuIte
|
|
|
13
13
|
import * as ReactDOM from 'react-dom';
|
|
14
14
|
import { m as usePreviousValue, n as useSelectRootContext, s as selectors, o as useSelectPositionerContext, j as SelectGroup, k as SelectGroupLabel, g as SelectItem, i as SelectItemIndicator, h as SelectItemText, f as SelectList, e as SelectPopup, a as SelectPortal, d as SelectPositioner, S as SelectRoot, b as SelectTrigger, c as SelectValue } from '../SelectGroupLabel-es.js';
|
|
15
15
|
import { S as Separator } from '../Separator-es.js';
|
|
16
|
-
import { u as useNumberFieldRootContext, s as stateAttributesMapping$4,
|
|
16
|
+
import { u as useNumberFieldRootContext, s as stateAttributesMapping$4, c as NumberFieldDecrement, a as NumberFieldGroup, b as NumberFieldIncrement, d as NumberFieldInput, N as NumberFieldRoot } from '../NumberFieldInput-es.js';
|
|
17
17
|
import { u as useLabel } from '../useLabel-es.js';
|
|
18
18
|
import '../stringifyLocale-es.js';
|
|
19
19
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Shared slot mechanism for compound components: tag a part with a slot name,
|
|
4
|
+
* then detect that name on a child element. Components own their own child
|
|
5
|
+
* parsing — the mechanism is shared, the placement policy is not.
|
|
6
|
+
*/
|
|
7
|
+
export type SlotComponent<Props, MarkerKey extends string, Slot extends string> = React.FC<Props> & Record<MarkerKey, Slot>;
|
|
8
|
+
export declare function createSlotSystem<MarkerKey extends string, SlotName extends string>(markerKey: MarkerKey): {
|
|
9
|
+
assignSlot: <Props, Slot extends SlotName>(component: React.FC<Props>, slot: Slot) => SlotComponent<Props, MarkerKey, Slot>;
|
|
10
|
+
createSlot: <Props, Slot extends SlotName = SlotName>(slot: Slot) => SlotComponent<Props, MarkerKey, Slot>;
|
|
11
|
+
isSlotElement: <Props = unknown>(child: React.ReactNode) => child is React.ReactElement<Props, SlotComponent<Props, MarkerKey, SlotName>>;
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.13.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -547,5 +547,5 @@
|
|
|
547
547
|
"> 1%",
|
|
548
548
|
"IE 10"
|
|
549
549
|
],
|
|
550
|
-
"gitHead": "
|
|
550
|
+
"gitHead": "9ca23fb47ad1f6ed13eebff7d81e99bccb30fa38"
|
|
551
551
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type ComboboxSlotComponent<Props, MarkerKey extends string, Slot extends string> = React.FC<Props> & Record<MarkerKey, Slot>;
|
|
3
|
-
export declare function createComboboxSlotSystem<MarkerKey extends string, SlotName extends string>(markerKey: MarkerKey): {
|
|
4
|
-
assignSlot: <Props, Slot extends SlotName>(component: React.FC<Props>, slot: Slot) => ComboboxSlotComponent<Props, MarkerKey, Slot>;
|
|
5
|
-
createSlot: <Props, Slot extends SlotName = SlotName>(slot: Slot) => ComboboxSlotComponent<Props, MarkerKey, Slot>;
|
|
6
|
-
isSlotElement: <Props = unknown>(child: React.ReactNode) => child is React.ReactElement<Props, ComboboxSlotComponent<Props, MarkerKey, SlotName>>;
|
|
7
|
-
};
|