@sprawlify/primitives 0.1.7 → 0.1.9

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.
Files changed (85) hide show
  1. package/dist/machines/accordion/index.d.cts +1 -1
  2. package/dist/machines/accordion/index.d.mts +1 -1
  3. package/dist/machines/angle-slider/index.d.cts +1 -1
  4. package/dist/machines/angle-slider/index.d.mts +1 -1
  5. package/dist/machines/carousel/index.cjs +68 -17
  6. package/dist/machines/carousel/index.d.cts +2 -2
  7. package/dist/machines/carousel/index.d.mts +2 -2
  8. package/dist/machines/carousel/index.mjs +68 -17
  9. package/dist/machines/cascade-select/index.d.cts +2 -2
  10. package/dist/machines/cascade-select/index.d.mts +2 -2
  11. package/dist/machines/clipboard/index.d.cts +1 -1
  12. package/dist/machines/clipboard/index.d.mts +1 -1
  13. package/dist/machines/collapsible/index.d.cts +1 -1
  14. package/dist/machines/collapsible/index.d.mts +1 -1
  15. package/dist/machines/color-picker/index.d.cts +1 -1
  16. package/dist/machines/color-picker/index.d.mts +1 -1
  17. package/dist/machines/combobox/index.d.cts +1 -1
  18. package/dist/machines/combobox/index.d.mts +1 -1
  19. package/dist/machines/date-picker/index.d.cts +1 -1
  20. package/dist/machines/date-picker/index.d.mts +1 -1
  21. package/dist/machines/dialog/index.d.cts +1 -1
  22. package/dist/machines/dialog/index.d.mts +1 -1
  23. package/dist/machines/drawer/index.d.cts +1 -1
  24. package/dist/machines/drawer/index.d.mts +1 -1
  25. package/dist/machines/dropdown-menu/index.d.cts +1 -1
  26. package/dist/machines/dropdown-menu/index.d.mts +1 -1
  27. package/dist/machines/editable/index.d.cts +1 -1
  28. package/dist/machines/editable/index.d.mts +1 -1
  29. package/dist/machines/file-upload/index.d.cts +1 -1
  30. package/dist/machines/file-upload/index.d.mts +1 -1
  31. package/dist/machines/floating-panel/index.d.cts +1 -1
  32. package/dist/machines/floating-panel/index.d.mts +1 -1
  33. package/dist/machines/hover-card/index.d.cts +1 -1
  34. package/dist/machines/hover-card/index.d.mts +1 -1
  35. package/dist/machines/listbox/index.d.cts +1 -1
  36. package/dist/machines/listbox/index.d.mts +1 -1
  37. package/dist/machines/marquee/index.d.cts +3 -3
  38. package/dist/machines/marquee/index.d.mts +3 -3
  39. package/dist/machines/navigation-menu/index.d.cts +1 -1
  40. package/dist/machines/navigation-menu/index.d.mts +1 -1
  41. package/dist/machines/number-input/index.d.cts +1 -1
  42. package/dist/machines/number-input/index.d.mts +1 -1
  43. package/dist/machines/password-input/index.d.cts +1 -1
  44. package/dist/machines/password-input/index.d.mts +1 -1
  45. package/dist/machines/pin-input/index.d.cts +1 -1
  46. package/dist/machines/pin-input/index.d.mts +1 -1
  47. package/dist/machines/popover/index.d.cts +1 -1
  48. package/dist/machines/popover/index.d.mts +1 -1
  49. package/dist/machines/progress/index.d.cts +1 -1
  50. package/dist/machines/progress/index.d.mts +1 -1
  51. package/dist/machines/radio-group/index.d.cts +1 -1
  52. package/dist/machines/radio-group/index.d.mts +1 -1
  53. package/dist/machines/rating-group/index.d.cts +1 -1
  54. package/dist/machines/rating-group/index.d.mts +1 -1
  55. package/dist/machines/scroll-area/index.d.cts +1 -1
  56. package/dist/machines/scroll-area/index.d.mts +1 -1
  57. package/dist/machines/select/index.d.cts +1 -1
  58. package/dist/machines/select/index.d.mts +1 -1
  59. package/dist/machines/signature-pad/index.d.cts +1 -1
  60. package/dist/machines/signature-pad/index.d.mts +1 -1
  61. package/dist/machines/slider/index.d.cts +1 -1
  62. package/dist/machines/slider/index.d.mts +1 -1
  63. package/dist/machines/splitter/index.d.cts +1 -1
  64. package/dist/machines/splitter/index.d.mts +1 -1
  65. package/dist/machines/steps/index.d.cts +1 -1
  66. package/dist/machines/steps/index.d.mts +1 -1
  67. package/dist/machines/switch/index.d.cts +1 -1
  68. package/dist/machines/switch/index.d.mts +1 -1
  69. package/dist/machines/tabs/index.d.cts +1 -1
  70. package/dist/machines/tabs/index.d.mts +1 -1
  71. package/dist/machines/tags-input/index.d.cts +1 -1
  72. package/dist/machines/tags-input/index.d.mts +1 -1
  73. package/dist/machines/timer/index.d.cts +1 -1
  74. package/dist/machines/timer/index.d.mts +1 -1
  75. package/dist/machines/toast/index.d.cts +1 -1
  76. package/dist/machines/toast/index.d.mts +1 -1
  77. package/dist/machines/tooltip/index.d.cts +1 -1
  78. package/dist/machines/tooltip/index.d.mts +1 -1
  79. package/dist/machines/tour/index.cjs +3 -3
  80. package/dist/machines/tour/index.d.cts +1 -1
  81. package/dist/machines/tour/index.d.mts +1 -1
  82. package/dist/machines/tour/index.mjs +3 -3
  83. package/dist/machines/tree-view/index.d.cts +1 -1
  84. package/dist/machines/tree-view/index.d.mts +1 -1
  85. package/package.json +1 -1
@@ -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" | "title" | "description" | "actionTrigger" | "closeTrigger" | "group">;
178
+ declare const anatomy: AnatomyInstance<"root" | "title" | "group" | "description" | "actionTrigger" | "closeTrigger">;
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<"trigger" | "content" | "positioner" | "arrow" | "arrowTip">;
7
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "arrow" | "positioner" | "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<"trigger" | "content" | "positioner" | "arrow" | "arrowTip">;
7
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "arrow" | "positioner" | "arrowTip">;
8
8
  //#endregion
9
9
  //#region src/machines/tooltip/tooltip.types.d.ts
10
10
  interface OpenChangeDetails {
@@ -755,8 +755,8 @@ const machine = require_core.createMachine({
755
755
  validateSteps({ context }) {
756
756
  const ids = /* @__PURE__ */ new Set();
757
757
  context.get("steps").forEach((step) => {
758
- if (ids.has(step.id)) throw new Error(`[zag-js/tour] Duplicate step id: ${step.id}`);
759
- if (step.target == null && step.type == null) throw new Error(`[zag-js/tour] Step ${step.id} has no target or type. At least one of those is required.`);
758
+ if (ids.has(step.id)) throw new Error(`[sprawlify-js/tour] Duplicate step id: ${step.id}`);
759
+ if (step.target == null && step.type == null) throw new Error(`[sprawlify-js/tour] Step ${step.id} has no target or type. At least one of those is required.`);
760
760
  ids.add(step.id);
761
761
  });
762
762
  }
@@ -1013,7 +1013,7 @@ var StepManager = class {
1013
1013
  goto: (id) => {
1014
1014
  const targetIdx = findStepIndex(steps, id);
1015
1015
  if (targetIdx === -1) {
1016
- require_utils.warn(`[zag-js/tour] Step with id "${id}" not found`);
1016
+ require_utils.warn(`[sprawlify-js/tour] Step with id "${id}" not found`);
1017
1017
  return;
1018
1018
  }
1019
1019
  this.transitionTo(targetIdx);
@@ -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<"content" | "title" | "description" | "positioner" | "backdrop" | "arrow" | "actionTrigger" | "closeTrigger" | "progressText" | "arrowTip" | "spotlight">;
9
+ declare const anatomy: AnatomyInstance<"title" | "description" | "actionTrigger" | "closeTrigger" | "content" | "arrow" | "positioner" | "progressText" | "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<"content" | "title" | "description" | "positioner" | "backdrop" | "arrow" | "actionTrigger" | "closeTrigger" | "progressText" | "arrowTip" | "spotlight">;
9
+ declare const anatomy: AnatomyInstance<"title" | "description" | "actionTrigger" | "closeTrigger" | "content" | "arrow" | "positioner" | "progressText" | "arrowTip" | "backdrop" | "spotlight">;
10
10
  //#endregion
11
11
  //#region src/machines/tour/utils/rect.d.ts
12
12
  interface Point {
@@ -754,8 +754,8 @@ const machine = createMachine({
754
754
  validateSteps({ context }) {
755
755
  const ids = /* @__PURE__ */ new Set();
756
756
  context.get("steps").forEach((step) => {
757
- if (ids.has(step.id)) throw new Error(`[zag-js/tour] Duplicate step id: ${step.id}`);
758
- if (step.target == null && step.type == null) throw new Error(`[zag-js/tour] Step ${step.id} has no target or type. At least one of those is required.`);
757
+ if (ids.has(step.id)) throw new Error(`[sprawlify-js/tour] Duplicate step id: ${step.id}`);
758
+ if (step.target == null && step.type == null) throw new Error(`[sprawlify-js/tour] Step ${step.id} has no target or type. At least one of those is required.`);
759
759
  ids.add(step.id);
760
760
  });
761
761
  }
@@ -1012,7 +1012,7 @@ var StepManager = class {
1012
1012
  goto: (id) => {
1013
1013
  const targetIdx = findStepIndex(steps, id);
1014
1014
  if (targetIdx === -1) {
1015
- warn(`[zag-js/tour] Step with id "${id}" not found`);
1015
+ warn(`[sprawlify-js/tour] Step with id "${id}" not found`);
1016
1016
  return;
1017
1017
  }
1018
1018
  this.transitionTo(targetIdx);
@@ -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" | "item" | "itemIndicator" | "itemText" | "tree" | "branch" | "branchContent" | "branchControl" | "branchIndentGuide" | "branchIndicator" | "branchText" | "branchTrigger" | "nodeCheckbox" | "nodeRenameInput">;
9
+ declare const anatomy: AnatomyInstance<"root" | "item" | "label" | "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" | "item" | "itemIndicator" | "itemText" | "tree" | "branch" | "branchContent" | "branchControl" | "branchIndentGuide" | "branchIndicator" | "branchText" | "branchTrigger" | "nodeCheckbox" | "nodeRenameInput">;
9
+ declare const anatomy: AnatomyInstance<"root" | "item" | "label" | "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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprawlify/primitives",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "A set of primitive components for building user interfaces.",
5
5
  "license": "MIT",
6
6
  "author": "sprawlify <npm@sprawlify.com>",