@sprawlify/primitives 0.0.108 → 0.0.110
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/collection.d.cts +2 -2
- package/dist/collection.d.mts +2 -2
- package/dist/{list-collection-Cjgbx_9l.d.cts → list-collection-B_8BN0XB.d.cts} +1 -1
- package/dist/{list-collection-IF510iNl.d.mts → list-collection-DkRA5LOq.d.mts} +1 -1
- package/dist/machines/angle-slider/index.d.cts +1 -1
- package/dist/machines/angle-slider/index.d.mts +1 -1
- package/dist/machines/carousel/index.d.cts +1 -1
- package/dist/machines/carousel/index.d.mts +1 -1
- package/dist/machines/cascade-select/index.d.cts +2 -2
- package/dist/machines/cascade-select/index.d.mts +2 -2
- package/dist/machines/checkbox/index.d.cts +1 -1
- package/dist/machines/checkbox/index.d.mts +1 -1
- package/dist/machines/clipboard/index.d.cts +1 -1
- package/dist/machines/clipboard/index.d.mts +1 -1
- package/dist/machines/collapsible/index.d.cts +1 -1
- package/dist/machines/collapsible/index.d.mts +1 -1
- package/dist/machines/color-picker/index.d.cts +1 -1
- package/dist/machines/color-picker/index.d.mts +1 -1
- package/dist/machines/combobox/index.d.cts +2 -2
- package/dist/machines/combobox/index.d.mts +2 -2
- package/dist/machines/date-picker/index.d.cts +1 -1
- package/dist/machines/date-picker/index.d.mts +1 -1
- package/dist/machines/dialog/index.d.cts +1 -1
- package/dist/machines/dialog/index.d.mts +1 -1
- package/dist/machines/{bottom-sheet → drawer}/index.cjs +19 -19
- package/dist/machines/drawer/index.d.cts +128 -0
- package/dist/machines/drawer/index.d.mts +128 -0
- package/dist/machines/{bottom-sheet → drawer}/index.mjs +19 -19
- package/dist/machines/dropdown-menu/index.d.cts +1 -1
- package/dist/machines/dropdown-menu/index.d.mts +1 -1
- package/dist/machines/editable/index.d.cts +1 -1
- package/dist/machines/editable/index.d.mts +1 -1
- package/dist/machines/file-upload/index.d.cts +1 -1
- package/dist/machines/file-upload/index.d.mts +1 -1
- package/dist/machines/floating-panel/index.d.cts +1 -1
- package/dist/machines/floating-panel/index.d.mts +1 -1
- package/dist/machines/hover-card/index.d.cts +1 -1
- package/dist/machines/hover-card/index.d.mts +1 -1
- package/dist/machines/listbox/index.d.cts +3 -3
- package/dist/machines/listbox/index.d.mts +3 -3
- package/dist/machines/marquee/index.d.cts +2 -2
- package/dist/machines/marquee/index.d.mts +2 -2
- package/dist/machines/navigation-menu/index.d.cts +1 -1
- package/dist/machines/navigation-menu/index.d.mts +1 -1
- package/dist/machines/number-input/index.d.cts +1 -1
- package/dist/machines/number-input/index.d.mts +1 -1
- package/dist/machines/password-input/index.d.cts +1 -1
- package/dist/machines/password-input/index.d.mts +1 -1
- package/dist/machines/pin-input/index.d.cts +1 -1
- package/dist/machines/pin-input/index.d.mts +1 -1
- package/dist/machines/popover/index.d.cts +1 -1
- package/dist/machines/popover/index.d.mts +1 -1
- package/dist/machines/progress/index.d.cts +1 -1
- package/dist/machines/progress/index.d.mts +1 -1
- package/dist/machines/radio-group/index.d.cts +1 -1
- package/dist/machines/radio-group/index.d.mts +1 -1
- package/dist/machines/rating-group/index.d.cts +1 -1
- package/dist/machines/rating-group/index.d.mts +1 -1
- package/dist/machines/select/index.d.cts +2 -2
- package/dist/machines/select/index.d.mts +2 -2
- package/dist/machines/signature-pad/index.d.cts +1 -1
- package/dist/machines/signature-pad/index.d.mts +1 -1
- package/dist/machines/slider/index.d.cts +1 -1
- package/dist/machines/slider/index.d.mts +1 -1
- package/dist/machines/steps/index.d.cts +1 -1
- package/dist/machines/steps/index.d.mts +1 -1
- package/dist/machines/switch/index.d.cts +1 -1
- package/dist/machines/switch/index.d.mts +1 -1
- package/dist/machines/tabs/index.d.cts +1 -1
- package/dist/machines/tabs/index.d.mts +1 -1
- package/dist/machines/tags-input/index.d.cts +1 -1
- package/dist/machines/tags-input/index.d.mts +1 -1
- package/dist/machines/timer/index.d.cts +1 -1
- package/dist/machines/timer/index.d.mts +1 -1
- package/dist/machines/toast/index.d.cts +1 -1
- package/dist/machines/toast/index.d.mts +1 -1
- package/dist/machines/tooltip/index.d.cts +1 -1
- package/dist/machines/tooltip/index.d.mts +1 -1
- package/dist/machines/tour/index.d.cts +1 -1
- package/dist/machines/tour/index.d.mts +1 -1
- package/dist/machines/tree-view/index.d.cts +1 -1
- package/dist/machines/tree-view/index.d.mts +1 -1
- package/dist/{selection-BmS2RDMq.d.cts → selection-Bb_ZSVxe.d.cts} +1 -1
- package/dist/{selection-6urf-c8j.d.mts → selection-DdNvrKbj.d.mts} +1 -1
- package/package.json +11 -11
- package/dist/machines/bottom-sheet/index.d.cts +0 -239
- package/dist/machines/bottom-sheet/index.d.mts +0 -239
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
|
|
2
2
|
import { r as CollectionOptions, t as CollectionItem } from "../../types-9uw8LHpE.mjs";
|
|
3
|
-
import { t as ListCollection } from "../../list-collection-
|
|
3
|
+
import { t as ListCollection } from "../../list-collection-DkRA5LOq.mjs";
|
|
4
4
|
import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
|
|
5
5
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
6
6
|
import { n as TypeaheadState } from "../../typeahead-Bbeb1fAR.mjs";
|
|
@@ -8,7 +8,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
|
|
|
8
8
|
import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/machines/select/select.anatomy.d.ts
|
|
11
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
11
|
+
declare const anatomy: AnatomyInstance<"root" | "content" | "label" | "control" | "indicator" | "trigger" | "valueText" | "itemGroup" | "item" | "clearTrigger" | "positioner" | "list" | "itemText" | "itemIndicator" | "itemGroupLabel">;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/machines/select/select.collection.d.ts
|
|
14
14
|
declare const collection: {
|
|
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
|
|
|
4
4
|
import { StrokeOptions } from "perfect-freehand";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/signature-pad/signature-pad.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "clearTrigger" | "segment" | "segmentPath" | "guide">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/signature-pad/signature-pad.types.d.ts
|
|
10
10
|
interface Point {
|
|
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
|
|
|
4
4
|
import { StrokeOptions } from "perfect-freehand";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/signature-pad/signature-pad.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "clearTrigger" | "segment" | "segmentPath" | "guide">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/signature-pad/signature-pad.types.d.ts
|
|
10
10
|
interface Point {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/slider/slider.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "track" | "label" | "control" | "thumb" | "valueText" | "markerGroup" | "marker" | "range" | "draggingIndicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/slider/slider.types.d.ts
|
|
9
9
|
type ThumbCollisionBehavior = "none" | "push" | "swap";
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/slider/slider.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "track" | "label" | "control" | "thumb" | "valueText" | "markerGroup" | "marker" | "range" | "draggingIndicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/slider/slider.types.d.ts
|
|
9
9
|
type ThumbCollisionBehavior = "none" | "push" | "swap";
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/steps/steps.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "content" | "indicator" | "trigger" | "item" | "nextTrigger" | "prevTrigger" | "progress" | "list" | "separator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/steps/steps.types.d.ts
|
|
9
9
|
interface StepChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/steps/steps.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "content" | "indicator" | "trigger" | "item" | "nextTrigger" | "prevTrigger" | "progress" | "list" | "separator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/steps/steps.types.d.ts
|
|
9
9
|
interface StepChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/switch/switch.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "thumb">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/switch/switch.types.d.ts
|
|
9
9
|
interface CheckedChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/switch/switch.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "thumb">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/switch/switch.types.d.ts
|
|
9
9
|
interface CheckedChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, m as Rect, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/tabs/tabs.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "content" | "indicator" | "trigger" | "list">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/tabs/tabs.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, m as Rect, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/tabs/tabs.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "content" | "indicator" | "trigger" | "list">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/tabs/tabs.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
|
|
|
5
5
|
import { t as LiveRegion } from "../../index-BO-Z3fhz.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/tags-input/tags-input.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
8
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "input" | "item" | "clearTrigger" | "itemText" | "itemDeleteTrigger" | "itemInput" | "itemPreview">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/tags-input/tags-input.types.d.ts
|
|
11
11
|
interface ValueChangeDetails {
|
|
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
|
|
|
5
5
|
import { t as LiveRegion } from "../../index-1L40UHp8.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/tags-input/tags-input.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
8
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "input" | "item" | "clearTrigger" | "itemText" | "itemDeleteTrigger" | "itemInput" | "itemPreview">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/tags-input/tags-input.types.d.ts
|
|
11
11
|
interface ValueChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/timer/timer.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "control" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "control" | "item" | "area" | "actionTrigger" | "separator" | "itemValue" | "itemLabel">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/timer/timer.types.d.ts
|
|
9
9
|
interface Time<T = number> {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/timer/timer.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "control" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "control" | "item" | "area" | "actionTrigger" | "separator" | "itemValue" | "itemLabel">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/timer/timer.types.d.ts
|
|
9
9
|
interface Time<T = number> {
|
|
@@ -175,7 +175,7 @@ interface ToastApi<T extends PropTypes = PropTypes, O = any> {
|
|
|
175
175
|
declare function groupConnect<T extends PropTypes, O = any>(service: Service<ToastGroupSchema>, normalize: NormalizeProps<T>): ToastGroupApi<T, O>;
|
|
176
176
|
//#endregion
|
|
177
177
|
//#region src/machines/toast/toast.anatomy.d.ts
|
|
178
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
178
|
+
declare const anatomy: AnatomyInstance<"root" | "title" | "actionTrigger" | "closeTrigger" | "description" | "group">;
|
|
179
179
|
//#endregion
|
|
180
180
|
//#region src/machines/toast/toast.connect.d.ts
|
|
181
181
|
declare function connect<T extends PropTypes, O>(service: Service<ToastSchema<O>>, normalize: NormalizeProps<T>): ToastApi<T, O>;
|
|
@@ -175,7 +175,7 @@ interface ToastApi<T extends PropTypes = PropTypes, O = any> {
|
|
|
175
175
|
declare function groupConnect<T extends PropTypes, O = any>(service: Service<ToastGroupSchema>, normalize: NormalizeProps<T>): ToastGroupApi<T, O>;
|
|
176
176
|
//#endregion
|
|
177
177
|
//#region src/machines/toast/toast.anatomy.d.ts
|
|
178
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
178
|
+
declare const anatomy: AnatomyInstance<"root" | "title" | "actionTrigger" | "closeTrigger" | "description" | "group">;
|
|
179
179
|
//#endregion
|
|
180
180
|
//#region src/machines/toast/toast.connect.d.ts
|
|
181
181
|
declare function connect<T extends PropTypes, O>(service: Service<ToastSchema<O>>, normalize: NormalizeProps<T>): ToastApi<T, O>;
|
|
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
|
|
|
4
4
|
import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/tooltip/tooltip.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"
|
|
7
|
+
declare const anatomy: AnatomyInstance<"content" | "trigger" | "positioner" | "arrow" | "arrowTip">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/tooltip/tooltip.types.d.ts
|
|
10
10
|
interface OpenChangeDetails {
|
|
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
|
|
|
4
4
|
import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/tooltip/tooltip.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"
|
|
7
|
+
declare const anatomy: AnatomyInstance<"content" | "trigger" | "positioner" | "arrow" | "arrowTip">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/tooltip/tooltip.types.d.ts
|
|
10
10
|
interface OpenChangeDetails {
|
|
@@ -6,7 +6,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
|
|
|
6
6
|
import { c as Placement } from "../../types-CZAtqGqH.cjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/tour/tour.anatomy.d.ts
|
|
9
|
-
declare const anatomy: AnatomyInstance<"
|
|
9
|
+
declare const anatomy: AnatomyInstance<"content" | "progressText" | "title" | "positioner" | "actionTrigger" | "closeTrigger" | "description" | "arrow" | "arrowTip" | "backdrop" | "spotlight">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/tour/utils/rect.d.ts
|
|
12
12
|
interface Point {
|
|
@@ -6,7 +6,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
|
|
|
6
6
|
import { u as Placement } from "../../index-fMh0VDkR.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/tour/tour.anatomy.d.ts
|
|
9
|
-
declare const anatomy: AnatomyInstance<"
|
|
9
|
+
declare const anatomy: AnatomyInstance<"content" | "progressText" | "title" | "positioner" | "actionTrigger" | "closeTrigger" | "description" | "arrow" | "arrowTip" | "backdrop" | "spotlight">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/tour/utils/rect.d.ts
|
|
12
12
|
interface Point {
|
|
@@ -6,7 +6,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
|
|
|
6
6
|
import { n as TypeaheadState } from "../../typeahead-DMooWbbX.cjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/tree-view/tree-view.anatomy.d.ts
|
|
9
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
9
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "item" | "itemText" | "itemIndicator" | "tree" | "branch" | "branchContent" | "branchControl" | "branchIndentGuide" | "branchIndicator" | "branchText" | "branchTrigger" | "nodeCheckbox" | "nodeRenameInput">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/tree-view/tree-view.collection.d.ts
|
|
12
12
|
declare const collection: {
|
|
@@ -6,7 +6,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
|
|
|
6
6
|
import { n as TypeaheadState } from "../../typeahead-Bbeb1fAR.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/tree-view/tree-view.anatomy.d.ts
|
|
9
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
9
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "item" | "itemText" | "itemIndicator" | "tree" | "branch" | "branchContent" | "branchControl" | "branchIndentGuide" | "branchIndicator" | "branchText" | "branchTrigger" | "nodeCheckbox" | "nodeRenameInput">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/tree-view/tree-view.collection.d.ts
|
|
12
12
|
declare const collection: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as CollectionOptions, t as CollectionItem } from "./types-D-7AMgSE.cjs";
|
|
2
|
-
import { t as ListCollection } from "./list-collection-
|
|
2
|
+
import { t as ListCollection } from "./list-collection-B_8BN0XB.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/collection/grid-collection.d.ts
|
|
5
5
|
interface GridCollectionOptions<T> extends CollectionOptions<T> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as CollectionOptions, t as CollectionItem } from "./types-9uw8LHpE.mjs";
|
|
2
|
-
import { t as ListCollection } from "./list-collection-
|
|
2
|
+
import { t as ListCollection } from "./list-collection-DkRA5LOq.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/collection/grid-collection.d.ts
|
|
5
5
|
interface GridCollectionOptions<T> extends CollectionOptions<T> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sprawlify/primitives",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.110",
|
|
4
4
|
"description": "A set of primitive components for building user interfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "sprawlify <npm@sprawlify.com>",
|
|
@@ -252,16 +252,6 @@
|
|
|
252
252
|
"default": "./dist/machines/avatar/index.cjs"
|
|
253
253
|
}
|
|
254
254
|
},
|
|
255
|
-
"./machines/bottom-sheet": {
|
|
256
|
-
"import": {
|
|
257
|
-
"types": "./dist/machines/bottom-sheet/index.d.mts",
|
|
258
|
-
"default": "./dist/machines/bottom-sheet/index.mjs"
|
|
259
|
-
},
|
|
260
|
-
"require": {
|
|
261
|
-
"types": "./dist/machines/bottom-sheet/index.d.cts",
|
|
262
|
-
"default": "./dist/machines/bottom-sheet/index.cjs"
|
|
263
|
-
}
|
|
264
|
-
},
|
|
265
255
|
"./machines/carousel": {
|
|
266
256
|
"import": {
|
|
267
257
|
"types": "./dist/machines/carousel/index.d.mts",
|
|
@@ -352,6 +342,16 @@
|
|
|
352
342
|
"default": "./dist/machines/dialog/index.cjs"
|
|
353
343
|
}
|
|
354
344
|
},
|
|
345
|
+
"./machines/drawer": {
|
|
346
|
+
"import": {
|
|
347
|
+
"types": "./dist/machines/drawer/index.d.mts",
|
|
348
|
+
"default": "./dist/machines/drawer/index.mjs"
|
|
349
|
+
},
|
|
350
|
+
"require": {
|
|
351
|
+
"types": "./dist/machines/drawer/index.d.cts",
|
|
352
|
+
"default": "./dist/machines/drawer/index.cjs"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
355
|
"./machines/dropdown-menu": {
|
|
356
356
|
"import": {
|
|
357
357
|
"types": "./dist/machines/dropdown-menu/index.d.mts",
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
|
-
import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
|
|
3
|
-
import { b as NormalizeProps, g as RequiredBy, p as Point, r as DirectionProperty, s as MaybeElement, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
|
-
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DzWGFhcS.cjs";
|
|
5
|
-
import { t as DismissableElementHandlers } from "../../dismissable-layer-ZgyqN8AD.cjs";
|
|
6
|
-
|
|
7
|
-
//#region src/machines/bottom-sheet/bottom-sheet.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"trigger" | "backdrop" | "content" | "grabber" | "grabberIndicator" | "closeTrigger" | "title">;
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/machines/bottom-sheet/utils/drag-manager.d.ts
|
|
11
|
-
declare class DragManager {
|
|
12
|
-
private pointerStart;
|
|
13
|
-
private dragOffset;
|
|
14
|
-
private lastPoint;
|
|
15
|
-
private lastTimestamp;
|
|
16
|
-
private velocity;
|
|
17
|
-
setPointerStart(point: Point): void;
|
|
18
|
-
clearPointerStart(): void;
|
|
19
|
-
getPointerStart(): Point | null;
|
|
20
|
-
setDragOffset(point: Point, resolvedActiveSnapPointOffset: number): void;
|
|
21
|
-
getDragOffset(): number | null;
|
|
22
|
-
clearDragOffset(): void;
|
|
23
|
-
getVelocity(): number | null;
|
|
24
|
-
clearVelocityTracking(): void;
|
|
25
|
-
clear(): void;
|
|
26
|
-
shouldStartDragging(point: Point, target: HTMLElement, container: HTMLElement | null, preventDragOnScroll: boolean): boolean;
|
|
27
|
-
findClosestSnapPoint(snapPoints: ResolvedSnapPoint[]): number | string;
|
|
28
|
-
shouldDismiss(contentHeight: number | null, snapPoints: ResolvedSnapPoint[], swipeVelocityThreshold: number, closeThreshold: number): boolean;
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/machines/bottom-sheet/bottom-sheet.types.d.ts
|
|
32
|
-
interface OpenChangeDetails {
|
|
33
|
-
open: boolean;
|
|
34
|
-
}
|
|
35
|
-
interface ResolvedSnapPoint {
|
|
36
|
-
value: number | string;
|
|
37
|
-
offset: number;
|
|
38
|
-
}
|
|
39
|
-
interface SnapPointChangeDetails {
|
|
40
|
-
snapPoint: number | string;
|
|
41
|
-
}
|
|
42
|
-
type ElementIds = Partial<{
|
|
43
|
-
backdrop: string;
|
|
44
|
-
content: string;
|
|
45
|
-
trigger: string;
|
|
46
|
-
grabber: string;
|
|
47
|
-
grabberIndicator: string;
|
|
48
|
-
closeTrigger: string;
|
|
49
|
-
}>;
|
|
50
|
-
interface BottomSheetProps extends DirectionProperty, CommonProperties, DismissableElementHandlers {
|
|
51
|
-
/**
|
|
52
|
-
* The ids of the elements in the bottom sheet. Useful for composition.
|
|
53
|
-
*/
|
|
54
|
-
ids?: ElementIds;
|
|
55
|
-
/**
|
|
56
|
-
* Whether to trap focus inside the sheet when it's opened.
|
|
57
|
-
* @default true
|
|
58
|
-
*/
|
|
59
|
-
trapFocus?: boolean | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* Whether to prevent scrolling behind the sheet when it's opened
|
|
62
|
-
* @default true
|
|
63
|
-
*/
|
|
64
|
-
preventScroll?: boolean | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* Whether to prevent pointer interaction outside the element and hide all content below it.
|
|
67
|
-
* @default true
|
|
68
|
-
*/
|
|
69
|
-
modal?: boolean | undefined;
|
|
70
|
-
/**
|
|
71
|
-
* Element to receive focus when the sheet is opened.
|
|
72
|
-
*/
|
|
73
|
-
initialFocusEl?: (() => MaybeElement) | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* Element to receive focus when the sheet is closed.
|
|
76
|
-
*/
|
|
77
|
-
finalFocusEl?: (() => MaybeElement) | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* Whether to restore focus to the element that had focus before the sheet was opened.
|
|
80
|
-
* @default true
|
|
81
|
-
*/
|
|
82
|
-
restoreFocus?: boolean | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* The sheet's role
|
|
85
|
-
* @default "dialog"
|
|
86
|
-
*/
|
|
87
|
-
role?: "dialog" | "alertdialog" | undefined;
|
|
88
|
-
/**
|
|
89
|
-
* Whether the bottom sheet is open.
|
|
90
|
-
*/
|
|
91
|
-
open?: boolean | undefined;
|
|
92
|
-
/**
|
|
93
|
-
* The initial open state of the bottom sheet.
|
|
94
|
-
*/
|
|
95
|
-
defaultOpen?: boolean | undefined;
|
|
96
|
-
/**
|
|
97
|
-
* Function called when the open state changes.
|
|
98
|
-
*/
|
|
99
|
-
onOpenChange?: ((details: OpenChangeDetails) => void) | undefined;
|
|
100
|
-
/**
|
|
101
|
-
* Whether to close the bottom sheet when the outside is clicked.
|
|
102
|
-
* @default true
|
|
103
|
-
*/
|
|
104
|
-
closeOnInteractOutside?: boolean | undefined;
|
|
105
|
-
/**
|
|
106
|
-
* Whether to close the bottom sheet when the escape key is pressed.
|
|
107
|
-
* @default true
|
|
108
|
-
*/
|
|
109
|
-
closeOnEscape?: boolean | undefined;
|
|
110
|
-
/**
|
|
111
|
-
* The snap points of the bottom sheet.
|
|
112
|
-
* Array of numbers or strings representing the snap points.
|
|
113
|
-
* @default [1]
|
|
114
|
-
*/
|
|
115
|
-
snapPoints?: (number | string)[] | undefined;
|
|
116
|
-
/**
|
|
117
|
-
* The threshold velocity (in pixels/s) for closing the bottom sheet.
|
|
118
|
-
* @default 700
|
|
119
|
-
*/
|
|
120
|
-
swipeVelocityThreshold?: number;
|
|
121
|
-
/**
|
|
122
|
-
* The threshold distance for dismissing the bottom sheet.
|
|
123
|
-
* @default 0.25
|
|
124
|
-
*/
|
|
125
|
-
closeThreshold?: number;
|
|
126
|
-
/**
|
|
127
|
-
* Whether to prevent dragging on scrollable elements.
|
|
128
|
-
* When enabled, the sheet will not start dragging if the user is interacting with a scrollable element.
|
|
129
|
-
* @default true
|
|
130
|
-
*/
|
|
131
|
-
preventDragOnScroll?: boolean;
|
|
132
|
-
/**
|
|
133
|
-
* The currently active snap point.
|
|
134
|
-
*/
|
|
135
|
-
activeSnapPoint?: number | string | undefined;
|
|
136
|
-
/**
|
|
137
|
-
* The default active snap point of the bottom sheet.
|
|
138
|
-
* @default 1
|
|
139
|
-
*/
|
|
140
|
-
defaultActiveSnapPoint?: number | string | undefined;
|
|
141
|
-
/**
|
|
142
|
-
* Callback fired when the active snap point changes.
|
|
143
|
-
*/
|
|
144
|
-
onActiveSnapPointChange?: ((details: SnapPointChangeDetails) => void) | undefined;
|
|
145
|
-
}
|
|
146
|
-
type PropsWithDefault = "closeOnInteractOutside" | "closeOnEscape" | "modal" | "trapFocus" | "restoreFocus" | "preventScroll" | "initialFocusEl" | "snapPoints" | "swipeVelocityThreshold" | "closeThreshold" | "preventDragOnScroll" | "defaultActiveSnapPoint";
|
|
147
|
-
interface BottomSheetSchema {
|
|
148
|
-
props: RequiredBy<BottomSheetProps, PropsWithDefault>;
|
|
149
|
-
state: "open" | "closed" | "closing";
|
|
150
|
-
tag: "open" | "closed";
|
|
151
|
-
context: {
|
|
152
|
-
dragOffset: number | null;
|
|
153
|
-
activeSnapPoint: number | string;
|
|
154
|
-
resolvedActiveSnapPoint: ResolvedSnapPoint | null;
|
|
155
|
-
contentHeight: number | null;
|
|
156
|
-
};
|
|
157
|
-
refs: {
|
|
158
|
-
dragManager: DragManager;
|
|
159
|
-
};
|
|
160
|
-
computed: {
|
|
161
|
-
resolvedSnapPoints: ResolvedSnapPoint[];
|
|
162
|
-
};
|
|
163
|
-
event: EventObject;
|
|
164
|
-
action: string;
|
|
165
|
-
guard: string;
|
|
166
|
-
effect: string;
|
|
167
|
-
}
|
|
168
|
-
type BottomSheetService = Service<BottomSheetSchema>;
|
|
169
|
-
type BottomSheetMachine = Machine<BottomSheetSchema>;
|
|
170
|
-
interface ContentProps {
|
|
171
|
-
/**
|
|
172
|
-
* Whether the bottom sheet content is draggable.
|
|
173
|
-
* If false, the bottom sheet can only be dragged by the grabber.
|
|
174
|
-
* @default true
|
|
175
|
-
*/
|
|
176
|
-
draggable?: boolean | undefined;
|
|
177
|
-
}
|
|
178
|
-
interface BottomSheetApi<T extends PropTypes = PropTypes> {
|
|
179
|
-
/**
|
|
180
|
-
* Whether the bottom sheet is open.
|
|
181
|
-
*/
|
|
182
|
-
open: boolean;
|
|
183
|
-
/**
|
|
184
|
-
* Whether the bottom sheet is currently being dragged.
|
|
185
|
-
*/
|
|
186
|
-
dragging: boolean;
|
|
187
|
-
/**
|
|
188
|
-
* Function to open or close the menu.
|
|
189
|
-
*/
|
|
190
|
-
setOpen: (open: boolean) => void;
|
|
191
|
-
/**
|
|
192
|
-
* The snap points of the bottom sheet.
|
|
193
|
-
*/
|
|
194
|
-
snapPoints: (number | string)[];
|
|
195
|
-
/**
|
|
196
|
-
* The currently active snap point.
|
|
197
|
-
*/
|
|
198
|
-
activeSnapPoint: number | string;
|
|
199
|
-
/**
|
|
200
|
-
* Function to set the active snap point.
|
|
201
|
-
*/
|
|
202
|
-
setActiveSnapPoint: (snapPoint: number | string) => void;
|
|
203
|
-
/**
|
|
204
|
-
* Get the current open percentage of the bottom sheet.
|
|
205
|
-
* @returns A value between 0-1 where:
|
|
206
|
-
* - 0 = fully closed
|
|
207
|
-
* - 1 = fully open at current snap point
|
|
208
|
-
*/
|
|
209
|
-
getOpenPercentage: () => number;
|
|
210
|
-
/**
|
|
211
|
-
* Get the index of the currently active snap point.
|
|
212
|
-
* @returns The index in the snapPoints array, or -1 if not found
|
|
213
|
-
*/
|
|
214
|
-
getActiveSnapIndex: () => number;
|
|
215
|
-
/**
|
|
216
|
-
* Get the current height of the bottom sheet content.
|
|
217
|
-
* @returns Height in pixels, or null if not measured yet
|
|
218
|
-
*/
|
|
219
|
-
getContentHeight: () => number | null;
|
|
220
|
-
getContentProps: (props?: ContentProps) => T["element"];
|
|
221
|
-
getTitleProps: () => T["element"];
|
|
222
|
-
getTriggerProps: () => T["element"];
|
|
223
|
-
getBackdropProps: () => T["element"];
|
|
224
|
-
getGrabberProps: () => T["element"];
|
|
225
|
-
getGrabberIndicatorProps: () => T["element"];
|
|
226
|
-
getCloseTriggerProps: () => T["element"];
|
|
227
|
-
}
|
|
228
|
-
//#endregion
|
|
229
|
-
//#region src/machines/bottom-sheet/bottom-sheet.connect.d.ts
|
|
230
|
-
declare function connect<T extends PropTypes>(service: BottomSheetService, normalize: NormalizeProps<T>): BottomSheetApi<T>;
|
|
231
|
-
//#endregion
|
|
232
|
-
//#region src/machines/bottom-sheet/bottom-sheet.machine.d.ts
|
|
233
|
-
declare const machine: Machine<BottomSheetSchema>;
|
|
234
|
-
//#endregion
|
|
235
|
-
//#region src/machines/bottom-sheet/bottom-sheet.props.d.ts
|
|
236
|
-
declare const props: (keyof BottomSheetProps)[];
|
|
237
|
-
declare const splitProps: <Props extends Partial<BottomSheetProps>>(props: Props) => [Partial<BottomSheetProps>, Omit<Props, keyof BottomSheetProps>];
|
|
238
|
-
//#endregion
|
|
239
|
-
export { type BottomSheetApi as Api, type ContentProps, type ElementIds, type FocusOutsideEvent, type InteractOutsideEvent, type BottomSheetMachine as Machine, type OpenChangeDetails, type PointerDownOutsideEvent, type BottomSheetProps as Props, type ResolvedSnapPoint, type BottomSheetService as Service, type SnapPointChangeDetails, anatomy, connect, machine, props, splitProps };
|