magic-pill 9.2.0 → 9.4.0-next.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.
Files changed (96) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/MIGRATING.md +2 -0
  3. package/README.md +158 -17
  4. package/dist/MagicPill/MagicPill.d.mts +43 -1
  5. package/dist/MagicPill/MagicPill.d.ts +43 -1
  6. package/dist/MagicPill/MagicPill.js +53 -6
  7. package/dist/MagicPill/MagicPill.mjs +56 -9
  8. package/dist/MagicPill/flag.js +1 -59
  9. package/dist/MagicPill/flag.mjs +1 -58
  10. package/dist/MagicPill/useChoreography.js +2 -1
  11. package/dist/MagicPill/useChoreography.mjs +3 -2
  12. package/dist/Pill/PillProgress.d.mts +12 -0
  13. package/dist/Pill/PillProgress.d.ts +12 -0
  14. package/dist/Pill/PillProgress.js +42 -0
  15. package/dist/Pill/PillProgress.mjs +42 -0
  16. package/dist/Pill/goo.js +353 -0
  17. package/dist/Pill/goo.mjs +347 -0
  18. package/dist/Pill/modal.js +2 -1
  19. package/dist/Pill/modal.mjs +3 -2
  20. package/dist/Pill/morph.js +7 -4
  21. package/dist/Pill/morph.mjs +8 -5
  22. package/dist/Pill/travel.js +2 -1
  23. package/dist/Pill/travel.mjs +3 -2
  24. package/dist/Pill/zone.js +3 -2
  25. package/dist/Pill/zone.mjs +4 -3
  26. package/dist/PillForm/PillSubmit.js +1 -1
  27. package/dist/PillForm/PillSubmit.mjs +3 -3
  28. package/dist/PillForm/popover.js +2 -1
  29. package/dist/PillForm/popover.mjs +3 -2
  30. package/dist/PillNavbar/PillNavbar.d.mts +8 -0
  31. package/dist/PillNavbar/PillNavbar.d.ts +8 -0
  32. package/dist/PillNavbar/PillNavbar.js +3 -2
  33. package/dist/PillNavbar/PillNavbar.mjs +3 -2
  34. package/dist/PillNavbar/room.d.mts +3 -0
  35. package/dist/PillNavbar/room.d.ts +2 -0
  36. package/dist/PillNavbar/room.js +89 -17
  37. package/dist/PillNavbar/room.mjs +89 -18
  38. package/dist/PillOptics/PillOptics.js +2 -1
  39. package/dist/PillOptics/PillOptics.mjs +3 -2
  40. package/dist/forms.css +2 -1
  41. package/dist/index.d.mts +30 -15
  42. package/dist/index.d.ts +30 -15
  43. package/dist/index.js +40 -12
  44. package/dist/index.mjs +40 -13
  45. package/dist/satellites/Actions.d.mts +12 -0
  46. package/dist/satellites/Actions.d.ts +11 -0
  47. package/dist/satellites/Actions.js +59 -0
  48. package/dist/satellites/Actions.mjs +56 -0
  49. package/dist/satellites/Orbitals.js +554 -0
  50. package/dist/satellites/Orbitals.mjs +554 -0
  51. package/dist/satellites/Satellites.js +400 -0
  52. package/dist/satellites/Satellites.mjs +400 -0
  53. package/dist/satellites/layout.js +156 -0
  54. package/dist/satellites/layout.mjs +156 -0
  55. package/dist/satellites/measure.js +25 -0
  56. package/dist/satellites/measure.mjs +24 -0
  57. package/dist/satellites/orbits.js +139 -0
  58. package/dist/satellites/orbits.mjs +136 -0
  59. package/dist/satellites/types.d.mts +54 -0
  60. package/dist/satellites/types.d.ts +54 -0
  61. package/dist/satellites.d.mts +5 -0
  62. package/dist/satellites.d.ts +5 -0
  63. package/dist/satellites.js +14 -0
  64. package/dist/satellites.mjs +12 -0
  65. package/dist/store/store.d.mts +103 -0
  66. package/dist/store/store.d.ts +103 -0
  67. package/dist/store/store.js +52 -1
  68. package/dist/store/store.mjs +52 -2
  69. package/dist/styles.css +174 -10
  70. package/dist/utils/react.js +8 -1
  71. package/dist/utils/react.mjs +8 -2
  72. package/package.json +12 -2
  73. package/dist/icons/ArrowIcon.d.mts +0 -4
  74. package/dist/icons/ArrowIcon.d.ts +0 -4
  75. package/dist/icons/BoxIcon.d.mts +0 -4
  76. package/dist/icons/BoxIcon.d.ts +0 -4
  77. package/dist/icons/CheckIcon.d.mts +0 -4
  78. package/dist/icons/CheckIcon.d.ts +0 -4
  79. package/dist/icons/CloseIcon.d.mts +0 -4
  80. package/dist/icons/CloseIcon.d.ts +0 -4
  81. package/dist/icons/CouponIcon.d.mts +0 -4
  82. package/dist/icons/CouponIcon.d.ts +0 -4
  83. package/dist/icons/DocumentIcon.d.mts +0 -4
  84. package/dist/icons/DocumentIcon.d.ts +0 -4
  85. package/dist/icons/HelpIcon.d.mts +0 -4
  86. package/dist/icons/HelpIcon.d.ts +0 -4
  87. package/dist/icons/InfoIcon.d.mts +0 -4
  88. package/dist/icons/InfoIcon.d.ts +0 -4
  89. package/dist/icons/MailIcon.d.mts +0 -4
  90. package/dist/icons/MailIcon.d.ts +0 -4
  91. package/dist/icons/PhoneIcon.d.mts +0 -4
  92. package/dist/icons/PhoneIcon.d.ts +0 -4
  93. package/dist/icons/PlusIcon.d.mts +0 -4
  94. package/dist/icons/PlusIcon.d.ts +0 -4
  95. package/dist/icons/UndoIcon.d.mts +0 -4
  96. package/dist/icons/UndoIcon.d.ts +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-pill",
3
- "version": "9.2.0",
3
+ "version": "9.4.0-next.1",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -16,6 +16,16 @@
16
16
  "default": "./dist/index.js"
17
17
  }
18
18
  },
19
+ "./satellites": {
20
+ "import": {
21
+ "types": "./dist/satellites.d.mts",
22
+ "default": "./dist/satellites.mjs"
23
+ },
24
+ "require": {
25
+ "types": "./dist/satellites.d.ts",
26
+ "default": "./dist/satellites.js"
27
+ }
28
+ },
19
29
  "./styles.css": "./dist/styles.css",
20
30
  "./themes.css": "./dist/themes.css",
21
31
  "./forms.css": "./dist/forms.css",
@@ -27,7 +37,7 @@
27
37
  "sideEffects": [
28
38
  "*.css"
29
39
  ],
30
- "description": "A new way to guide your audience and bring them contextual information through your app",
40
+ "description": "A design primitive for React: one pill that becomes notifications, a navbar, panels, forms and modals, and morphs between them",
31
41
  "repository": {
32
42
  "type": "git",
33
43
  "url": "git+https://github.com/CedricTheveneau/Magic-Pill.git"
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.mjs";
2
- /** v9 icon (from `arrow_label`): drawn in `currentColor`, decorative by default. */
3
- declare const ArrowIcon: (props: IconProps) => import("react").JSX.Element;
4
- export { ArrowIcon as default };
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.js";
2
- /** v9 icon (from `arrow_label`): drawn in `currentColor`, decorative by default. */
3
- declare const ArrowIcon: (props: IconProps) => import("react").JSX.Element;
4
- export = ArrowIcon;
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.mjs";
2
- /** v9 icon (from `box_label`): drawn in `currentColor`, decorative by default. */
3
- declare const BoxIcon: (props: IconProps) => import("react").JSX.Element;
4
- export { BoxIcon as default };
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.js";
2
- /** v9 icon (from `box_label`): drawn in `currentColor`, decorative by default. */
3
- declare const BoxIcon: (props: IconProps) => import("react").JSX.Element;
4
- export = BoxIcon;
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.mjs";
2
- /** v9 icon (from `checkmark`): drawn in `currentColor`, decorative by default. */
3
- declare const CheckIcon: (props: IconProps) => import("react").JSX.Element;
4
- export { CheckIcon as default };
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.js";
2
- /** v9 icon (from `checkmark`): drawn in `currentColor`, decorative by default. */
3
- declare const CheckIcon: (props: IconProps) => import("react").JSX.Element;
4
- export = CheckIcon;
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.mjs";
2
- /** v9 icon (from `cross_label`): drawn in `currentColor`, decorative by default. */
3
- declare const CloseIcon: (props: IconProps) => import("react").JSX.Element;
4
- export { CloseIcon as default };
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.js";
2
- /** v9 icon (from `cross_label`): drawn in `currentColor`, decorative by default. */
3
- declare const CloseIcon: (props: IconProps) => import("react").JSX.Element;
4
- export = CloseIcon;
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.mjs";
2
- /** v9 icon (from `coupon`): drawn in `currentColor`, decorative by default. */
3
- declare const CouponIcon: (props: IconProps) => import("react").JSX.Element;
4
- export { CouponIcon as default };
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.js";
2
- /** v9 icon (from `coupon`): drawn in `currentColor`, decorative by default. */
3
- declare const CouponIcon: (props: IconProps) => import("react").JSX.Element;
4
- export = CouponIcon;
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.mjs";
2
- /** v9 icon (from `quotation_label`): drawn in `currentColor`, decorative by default. */
3
- declare const DocumentIcon: (props: IconProps) => import("react").JSX.Element;
4
- export { DocumentIcon as default };
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.js";
2
- /** v9 icon (from `quotation_label`): drawn in `currentColor`, decorative by default. */
3
- declare const DocumentIcon: (props: IconProps) => import("react").JSX.Element;
4
- export = DocumentIcon;
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.mjs";
2
- /** v9 icon (from `questionmark`): drawn in `currentColor`, decorative by default. */
3
- declare const HelpIcon: (props: IconProps) => import("react").JSX.Element;
4
- export { HelpIcon as default };
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.js";
2
- /** v9 icon (from `questionmark`): drawn in `currentColor`, decorative by default. */
3
- declare const HelpIcon: (props: IconProps) => import("react").JSX.Element;
4
- export = HelpIcon;
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.mjs";
2
- /** v9 icon (from `info`): drawn in `currentColor`, decorative by default. */
3
- declare const InfoIcon: (props: IconProps) => import("react").JSX.Element;
4
- export { InfoIcon as default };
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.js";
2
- /** v9 icon (from `info`): drawn in `currentColor`, decorative by default. */
3
- declare const InfoIcon: (props: IconProps) => import("react").JSX.Element;
4
- export = InfoIcon;
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.mjs";
2
- /** v9 icon (from `mail_label`): drawn in `currentColor`, decorative by default. */
3
- declare const MailIcon: (props: IconProps) => import("react").JSX.Element;
4
- export { MailIcon as default };
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.js";
2
- /** v9 icon (from `mail_label`): drawn in `currentColor`, decorative by default. */
3
- declare const MailIcon: (props: IconProps) => import("react").JSX.Element;
4
- export = MailIcon;
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.mjs";
2
- /** v9 icon (from `tel_label`): drawn in `currentColor`, decorative by default. */
3
- declare const PhoneIcon: (props: IconProps) => import("react").JSX.Element;
4
- export { PhoneIcon as default };
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.js";
2
- /** v9 icon (from `tel_label`): drawn in `currentColor`, decorative by default. */
3
- declare const PhoneIcon: (props: IconProps) => import("react").JSX.Element;
4
- export = PhoneIcon;
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.mjs";
2
- /** v9 icon (from `plus_label`): drawn in `currentColor`, decorative by default. */
3
- declare const PlusIcon: (props: IconProps) => import("react").JSX.Element;
4
- export { PlusIcon as default };
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.js";
2
- /** v9 icon (from `plus_label`): drawn in `currentColor`, decorative by default. */
3
- declare const PlusIcon: (props: IconProps) => import("react").JSX.Element;
4
- export = PlusIcon;
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.mjs";
2
- /** v9 icon (from `undo_label`): drawn in `currentColor`, decorative by default. */
3
- declare const UndoIcon: (props: IconProps) => import("react").JSX.Element;
4
- export { UndoIcon as default };
@@ -1,4 +0,0 @@
1
- import { IconProps } from "./types.js";
2
- /** v9 icon (from `undo_label`): drawn in `currentColor`, decorative by default. */
3
- declare const UndoIcon: (props: IconProps) => import("react").JSX.Element;
4
- export = UndoIcon;