magic-pill 9.0.0 → 9.1.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 (149) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +259 -15
  3. package/dist/MagicPill/MagicPill.d.mts +7 -1
  4. package/dist/MagicPill/MagicPill.d.ts +7 -1
  5. package/dist/MagicPill/MagicPill.js +40 -17
  6. package/dist/MagicPill/MagicPill.mjs +42 -19
  7. package/dist/MagicPill/choreography.js +1 -1
  8. package/dist/MagicPill/choreography.mjs +1 -1
  9. package/dist/Pill/Pill.js +53 -17
  10. package/dist/Pill/Pill.mjs +54 -18
  11. package/dist/Pill/PillContext.js +3 -1
  12. package/dist/Pill/PillContext.mjs +3 -1
  13. package/dist/Pill/PillPanel.d.mts +5 -5
  14. package/dist/Pill/PillPanel.d.ts +5 -5
  15. package/dist/Pill/PillPanel.js +28 -20
  16. package/dist/Pill/PillPanel.mjs +28 -20
  17. package/dist/Pill/morph.js +25 -7
  18. package/dist/Pill/morph.mjs +22 -8
  19. package/dist/Pill/scene.js +90 -0
  20. package/dist/Pill/scene.mjs +89 -0
  21. package/dist/Pill/themed.js +36 -0
  22. package/dist/Pill/themed.mjs +34 -0
  23. package/dist/Pill/types.d.mts +50 -0
  24. package/dist/Pill/types.d.ts +50 -0
  25. package/dist/Pill/zone.js +160 -0
  26. package/dist/Pill/zone.mjs +159 -0
  27. package/dist/PillForm/Calendar.d.mts +15 -0
  28. package/dist/PillForm/Calendar.d.ts +16 -0
  29. package/dist/PillForm/Calendar.js +371 -0
  30. package/dist/PillForm/Calendar.mjs +370 -0
  31. package/dist/PillForm/FormContext.d.mts +2 -0
  32. package/dist/PillForm/FormContext.d.ts +2 -0
  33. package/dist/PillForm/FormContext.js +8 -0
  34. package/dist/PillForm/FormContext.mjs +8 -0
  35. package/dist/PillForm/PillCheckbox.d.mts +8 -0
  36. package/dist/PillForm/PillCheckbox.d.ts +8 -0
  37. package/dist/PillForm/PillCheckbox.js +45 -0
  38. package/dist/PillForm/PillCheckbox.mjs +45 -0
  39. package/dist/PillForm/PillChoices.d.mts +39 -0
  40. package/dist/PillForm/PillChoices.d.ts +39 -0
  41. package/dist/PillForm/PillChoices.js +103 -0
  42. package/dist/PillForm/PillChoices.mjs +103 -0
  43. package/dist/PillForm/PillCode.d.mts +12 -0
  44. package/dist/PillForm/PillCode.d.ts +12 -0
  45. package/dist/PillForm/PillCode.js +60 -0
  46. package/dist/PillForm/PillCode.mjs +60 -0
  47. package/dist/PillForm/PillColor.d.mts +10 -0
  48. package/dist/PillForm/PillColor.d.ts +10 -0
  49. package/dist/PillForm/PillColor.js +56 -0
  50. package/dist/PillForm/PillColor.mjs +56 -0
  51. package/dist/PillForm/PillDate.d.mts +44 -0
  52. package/dist/PillForm/PillDate.d.ts +44 -0
  53. package/dist/PillForm/PillDate.js +193 -0
  54. package/dist/PillForm/PillDate.mjs +193 -0
  55. package/dist/PillForm/PillField.d.mts +38 -0
  56. package/dist/PillForm/PillField.d.ts +38 -0
  57. package/dist/PillForm/PillField.js +81 -0
  58. package/dist/PillForm/PillField.mjs +80 -0
  59. package/dist/PillForm/PillFields.d.mts +11 -0
  60. package/dist/PillForm/PillFields.d.ts +11 -0
  61. package/dist/PillForm/PillFields.js +21 -0
  62. package/dist/PillForm/PillFields.mjs +21 -0
  63. package/dist/PillForm/PillFile.d.mts +8 -0
  64. package/dist/PillForm/PillFile.d.ts +8 -0
  65. package/dist/PillForm/PillFile.js +55 -0
  66. package/dist/PillForm/PillFile.mjs +55 -0
  67. package/dist/PillForm/PillForm.d.mts +29 -0
  68. package/dist/PillForm/PillForm.d.ts +29 -0
  69. package/dist/PillForm/PillForm.js +66 -0
  70. package/dist/PillForm/PillForm.mjs +65 -0
  71. package/dist/PillForm/PillFormPanel.d.mts +24 -0
  72. package/dist/PillForm/PillFormPanel.d.ts +24 -0
  73. package/dist/PillForm/PillFormPanel.js +53 -0
  74. package/dist/PillForm/PillFormPanel.mjs +53 -0
  75. package/dist/PillForm/PillInput.d.mts +20 -0
  76. package/dist/PillForm/PillInput.d.ts +20 -0
  77. package/dist/PillForm/PillInput.js +84 -0
  78. package/dist/PillForm/PillInput.mjs +84 -0
  79. package/dist/PillForm/PillSelect.d.mts +23 -0
  80. package/dist/PillForm/PillSelect.d.ts +23 -0
  81. package/dist/PillForm/PillSelect.js +87 -0
  82. package/dist/PillForm/PillSelect.mjs +87 -0
  83. package/dist/PillForm/PillSlider.d.mts +17 -0
  84. package/dist/PillForm/PillSlider.d.ts +17 -0
  85. package/dist/PillForm/PillSlider.js +61 -0
  86. package/dist/PillForm/PillSlider.mjs +61 -0
  87. package/dist/PillForm/PillStepper.d.mts +13 -0
  88. package/dist/PillForm/PillStepper.d.ts +13 -0
  89. package/dist/PillForm/PillStepper.js +84 -0
  90. package/dist/PillForm/PillStepper.mjs +84 -0
  91. package/dist/PillForm/PillSubmit.d.mts +14 -0
  92. package/dist/PillForm/PillSubmit.d.ts +14 -0
  93. package/dist/PillForm/PillSubmit.js +90 -0
  94. package/dist/PillForm/PillSubmit.mjs +89 -0
  95. package/dist/PillForm/PillSwitch.d.mts +5 -0
  96. package/dist/PillForm/PillSwitch.d.ts +5 -0
  97. package/dist/PillForm/PillSwitch.js +38 -0
  98. package/dist/PillForm/PillSwitch.mjs +38 -0
  99. package/dist/PillForm/PillTextarea.d.mts +5 -0
  100. package/dist/PillForm/PillTextarea.d.ts +5 -0
  101. package/dist/PillForm/PillTextarea.js +49 -0
  102. package/dist/PillForm/PillTextarea.mjs +49 -0
  103. package/dist/PillForm/dates.d.mts +1 -0
  104. package/dist/PillForm/dates.d.ts +1 -0
  105. package/dist/PillForm/dates.js +155 -0
  106. package/dist/PillForm/dates.mjs +139 -0
  107. package/dist/PillForm/glyphs.js +65 -0
  108. package/dist/PillForm/glyphs.mjs +56 -0
  109. package/dist/PillForm/keyboard.js +34 -0
  110. package/dist/PillForm/keyboard.mjs +34 -0
  111. package/dist/PillForm/popover.js +84 -0
  112. package/dist/PillForm/popover.mjs +83 -0
  113. package/dist/PillForm/send.d.mts +6 -0
  114. package/dist/PillForm/send.d.ts +6 -0
  115. package/dist/PillForm/send.js +44 -0
  116. package/dist/PillForm/send.mjs +44 -0
  117. package/dist/PillForm/validity.js +74 -0
  118. package/dist/PillForm/validity.mjs +72 -0
  119. package/dist/PillNavbar/PillNavbar.d.mts +29 -6
  120. package/dist/PillNavbar/PillNavbar.d.ts +29 -6
  121. package/dist/PillNavbar/PillNavbar.js +35 -11
  122. package/dist/PillNavbar/PillNavbar.mjs +36 -12
  123. package/dist/PillNavbar/room.js +84 -0
  124. package/dist/PillNavbar/room.mjs +83 -0
  125. package/dist/PillNotification/PillNotification.d.mts +6 -0
  126. package/dist/PillNotification/PillNotification.d.ts +6 -0
  127. package/dist/PillNotification/PillNotification.js +3 -0
  128. package/dist/PillNotification/PillNotification.mjs +3 -0
  129. package/dist/PillOptics/PillOptics.d.mts +8 -0
  130. package/dist/PillOptics/PillOptics.d.ts +8 -0
  131. package/dist/PillOptics/PillOptics.js +195 -0
  132. package/dist/PillOptics/PillOptics.mjs +195 -0
  133. package/dist/PillOptics/adaptive.js +212 -0
  134. package/dist/PillOptics/adaptive.mjs +208 -0
  135. package/dist/PillOptics/lens.js +77 -0
  136. package/dist/PillOptics/lens.mjs +73 -0
  137. package/dist/PillOptics/light.js +37 -0
  138. package/dist/PillOptics/light.mjs +36 -0
  139. package/dist/calendar.css +499 -0
  140. package/dist/forms.css +1454 -0
  141. package/dist/index.d.mts +24 -3
  142. package/dist/index.d.ts +24 -3
  143. package/dist/index.js +36 -0
  144. package/dist/index.mjs +19 -1
  145. package/dist/styles.css +169 -19
  146. package/dist/themes.css +449 -0
  147. package/dist/utils/visuallyHidden.js +18 -0
  148. package/dist/utils/visuallyHidden.mjs +18 -0
  149. package/package.json +4 -1
package/dist/index.d.mts CHANGED
@@ -3,9 +3,30 @@ import { PillActions, PillDivider, PillIcon, PillMessage } from "./Pill/parts.mj
3
3
  import PillAction from "./Pill/PillAction.mjs";
4
4
  import { PillPanel, PillPanelTrigger } from "./Pill/PillPanel.mjs";
5
5
  import { usePill } from "./Pill/PillContext.mjs";
6
- import { LinkComponent, PillActionProps, PillButtonActionProps, PillContextValue, PillLinkActionProps, PillOrientation, PillPanelProps, PillPlacement, PillPresence, PillProps, PillVariant } from "./Pill/types.mjs";
6
+ import { LinkComponent, PillActionProps, PillButtonActionProps, PillContextValue, PillLinkActionProps, PillOrientation, PillPanelProps, PillPanelTriggerProps, PillPlacement, PillPresence, PillProps, PillTheme, PillVariant, SceneChange } from "./Pill/types.mjs";
7
+ import { PillOptics } from "./PillOptics/PillOptics.mjs";
7
8
  import { NotificationAction, NotificationPanel, PillNotification, PillNotificationClassNames, PillNotificationProps } from "./PillNotification/PillNotification.mjs";
8
- import { NavItem, PillNavbar, PillNavbarProps } from "./PillNavbar/PillNavbar.mjs";
9
+ import { NavActionItem, NavItem, NavLinkItem, NavPanelItem, PillNavbar, PillNavbarProps } from "./PillNavbar/PillNavbar.mjs";
10
+ import { PillForm, PillFormProps } from "./PillForm/PillForm.mjs";
11
+ import { SendHandler } from "./PillForm/send.mjs";
12
+ import { PillSubmit, PillSubmitProps } from "./PillForm/PillSubmit.mjs";
13
+ import { PillFormPanel, PillFormPanelProps } from "./PillForm/PillFormPanel.mjs";
14
+ import { FieldControlProps, FieldProps, PillField, PillFieldProps } from "./PillForm/PillField.mjs";
15
+ import { PillInput, PillInputProps, PillInputType } from "./PillForm/PillInput.mjs";
16
+ import { PillTextarea, PillTextareaProps } from "./PillForm/PillTextarea.mjs";
17
+ import { PillOption, PillOptionGroup, PillSelect, PillSelectProps } from "./PillForm/PillSelect.mjs";
18
+ import { PillSlider, PillSliderProps } from "./PillForm/PillSlider.mjs";
19
+ import { PillSwitch, PillSwitchProps } from "./PillForm/PillSwitch.mjs";
20
+ import { PillCheckbox, PillCheckboxProps } from "./PillForm/PillCheckbox.mjs";
21
+ import { PillChoice, PillChoices, PillChoicesProps, PillMultipleChoiceProps, PillSingleChoiceProps } from "./PillForm/PillChoices.mjs";
22
+ import { PillStepper, PillStepperProps } from "./PillForm/PillStepper.mjs";
23
+ import { PillFields, PillFieldsProps } from "./PillForm/PillFields.mjs";
24
+ import { PillCode, PillCodeProps } from "./PillForm/PillCode.mjs";
25
+ import { PillFile, PillFileProps } from "./PillForm/PillFile.mjs";
26
+ import { PillDate, PillDateProps } from "./PillForm/PillDate.mjs";
27
+ import { CalendarLabels } from "./PillForm/Calendar.mjs";
28
+ import { DateType } from "./PillForm/dates.mjs";
29
+ import { PillColor, PillColorProps } from "./PillForm/PillColor.mjs";
9
30
  import MagicPill, { MagicPillProps } from "./MagicPill/MagicPill.mjs";
10
31
  import { DismissReason, NotifyInput, NotifyOptions, NotifyRenderOptions, PillController, PillQueueState, QueuedNotification, pill } from "./store/store.mjs";
11
32
  import { usePillQueue } from "./store/usePillQueue.mjs";
@@ -22,4 +43,4 @@ import PhoneIcon from "./icons/PhoneIcon.mjs";
22
43
  import PlusIcon from "./icons/PlusIcon.mjs";
23
44
  import UndoIcon from "./icons/UndoIcon.mjs";
24
45
  import { IconProps } from "./icons/types.mjs";
25
- export { ArrowIcon, BoxIcon, CheckIcon, CloseIcon, CouponIcon, type DismissReason, DocumentIcon, HelpIcon, type IconProps, InfoIcon, type LinkComponent, MagicPill, type MagicPillProps, MailIcon, type NavItem, type NotificationAction, type NotificationPanel, type NotifyInput, type NotifyOptions, type NotifyRenderOptions, PhoneIcon, Pill, PillAction, type PillActionProps, PillActions, type PillButtonActionProps, type PillContextValue, type PillController, PillDivider, PillIcon, type PillLinkActionProps, PillMessage, PillNavbar, type PillNavbarProps, PillNotification, type PillNotificationClassNames, type PillNotificationProps, type PillOrientation, PillPanel, type PillPanelProps, PillPanelTrigger, type PillPlacement, type PillPresence, type PillProps, type PillQueueState, type PillVariant, PlusIcon, type QueuedNotification, UndoIcon, pill, usePill, usePillQueue };
46
+ export { ArrowIcon, BoxIcon, type CalendarLabels, CheckIcon, CloseIcon, CouponIcon, type DateType, type DismissReason, DocumentIcon, type FieldControlProps, type FieldProps, HelpIcon, type IconProps, InfoIcon, type LinkComponent, MagicPill, type MagicPillProps, MailIcon, type NavActionItem, type NavItem, type NavLinkItem, type NavPanelItem, type NotificationAction, type NotificationPanel, type NotifyInput, type NotifyOptions, type NotifyRenderOptions, PhoneIcon, Pill, PillAction, type PillActionProps, PillActions, type PillButtonActionProps, PillCheckbox, type PillCheckboxProps, type PillChoice, PillChoices, type PillChoicesProps, PillCode, type PillCodeProps, PillColor, type PillColorProps, type PillContextValue, type PillController, PillDate, type PillDateProps, PillDivider, PillField, type PillFieldProps, PillFields, type PillFieldsProps, PillFile, type PillFileProps, PillForm, PillFormPanel, type PillFormPanelProps, type PillFormProps, PillIcon, PillInput, type PillInputProps, type PillInputType, type PillLinkActionProps, PillMessage, type PillMultipleChoiceProps, PillNavbar, type PillNavbarProps, PillNotification, type PillNotificationClassNames, type PillNotificationProps, PillOptics, type PillOption, type PillOptionGroup, type PillOrientation, PillPanel, type PillPanelProps, PillPanelTrigger, type PillPanelTriggerProps, type PillPlacement, type PillPresence, type PillProps, type PillQueueState, PillSelect, type PillSelectProps, type PillSingleChoiceProps, PillSlider, type PillSliderProps, PillStepper, type PillStepperProps, PillSubmit, type PillSubmitProps, PillSwitch, type PillSwitchProps, PillTextarea, type PillTextareaProps, type PillTheme, type PillVariant, PlusIcon, type QueuedNotification, type SceneChange, type SendHandler, UndoIcon, pill, usePill, usePillQueue };
package/dist/index.d.ts CHANGED
@@ -3,9 +3,30 @@ import { PillActions, PillDivider, PillIcon, PillMessage } from "./Pill/parts.js
3
3
  import PillAction from "./Pill/PillAction.js";
4
4
  import { PillPanel, PillPanelTrigger } from "./Pill/PillPanel.js";
5
5
  import { usePill } from "./Pill/PillContext.js";
6
- import { LinkComponent, PillActionProps, PillButtonActionProps, PillContextValue, PillLinkActionProps, PillOrientation, PillPanelProps, PillPlacement, PillPresence, PillProps, PillVariant } from "./Pill/types.js";
6
+ import { LinkComponent, PillActionProps, PillButtonActionProps, PillContextValue, PillLinkActionProps, PillOrientation, PillPanelProps, PillPanelTriggerProps, PillPlacement, PillPresence, PillProps, PillTheme, PillVariant, SceneChange } from "./Pill/types.js";
7
+ import { PillOptics } from "./PillOptics/PillOptics.js";
7
8
  import { NotificationAction, NotificationPanel, PillNotification, PillNotificationClassNames, PillNotificationProps } from "./PillNotification/PillNotification.js";
8
- import { NavItem, PillNavbar, PillNavbarProps } from "./PillNavbar/PillNavbar.js";
9
+ import { NavActionItem, NavItem, NavLinkItem, NavPanelItem, PillNavbar, PillNavbarProps } from "./PillNavbar/PillNavbar.js";
10
+ import { PillForm, PillFormProps } from "./PillForm/PillForm.js";
11
+ import { SendHandler } from "./PillForm/send.js";
12
+ import { PillSubmit, PillSubmitProps } from "./PillForm/PillSubmit.js";
13
+ import { PillFormPanel, PillFormPanelProps } from "./PillForm/PillFormPanel.js";
14
+ import { FieldControlProps, FieldProps, PillField, PillFieldProps } from "./PillForm/PillField.js";
15
+ import { PillInput, PillInputProps, PillInputType } from "./PillForm/PillInput.js";
16
+ import { PillTextarea, PillTextareaProps } from "./PillForm/PillTextarea.js";
17
+ import { PillOption, PillOptionGroup, PillSelect, PillSelectProps } from "./PillForm/PillSelect.js";
18
+ import { PillSlider, PillSliderProps } from "./PillForm/PillSlider.js";
19
+ import { PillSwitch, PillSwitchProps } from "./PillForm/PillSwitch.js";
20
+ import { PillCheckbox, PillCheckboxProps } from "./PillForm/PillCheckbox.js";
21
+ import { PillChoice, PillChoices, PillChoicesProps, PillMultipleChoiceProps, PillSingleChoiceProps } from "./PillForm/PillChoices.js";
22
+ import { PillStepper, PillStepperProps } from "./PillForm/PillStepper.js";
23
+ import { PillFields, PillFieldsProps } from "./PillForm/PillFields.js";
24
+ import { PillCode, PillCodeProps } from "./PillForm/PillCode.js";
25
+ import { PillFile, PillFileProps } from "./PillForm/PillFile.js";
26
+ import { PillDate, PillDateProps } from "./PillForm/PillDate.js";
27
+ import { CalendarLabels } from "./PillForm/Calendar.js";
28
+ import { DateType } from "./PillForm/dates.js";
29
+ import { PillColor, PillColorProps } from "./PillForm/PillColor.js";
9
30
  import MagicPill, { MagicPillProps } from "./MagicPill/MagicPill.js";
10
31
  import { DismissReason, NotifyInput, NotifyOptions, NotifyRenderOptions, PillController, PillQueueState, QueuedNotification, pill } from "./store/store.js";
11
32
  import { usePillQueue } from "./store/usePillQueue.js";
@@ -22,4 +43,4 @@ import PhoneIcon from "./icons/PhoneIcon.js";
22
43
  import PlusIcon from "./icons/PlusIcon.js";
23
44
  import UndoIcon from "./icons/UndoIcon.js";
24
45
  import { IconProps } from "./icons/types.js";
25
- export { ArrowIcon, BoxIcon, CheckIcon, CloseIcon, CouponIcon, type DismissReason, DocumentIcon, HelpIcon, type IconProps, InfoIcon, type LinkComponent, MagicPill, type MagicPillProps, MailIcon, type NavItem, type NotificationAction, type NotificationPanel, type NotifyInput, type NotifyOptions, type NotifyRenderOptions, PhoneIcon, Pill, PillAction, type PillActionProps, PillActions, type PillButtonActionProps, type PillContextValue, type PillController, PillDivider, PillIcon, type PillLinkActionProps, PillMessage, PillNavbar, type PillNavbarProps, PillNotification, type PillNotificationClassNames, type PillNotificationProps, type PillOrientation, PillPanel, type PillPanelProps, PillPanelTrigger, type PillPlacement, type PillPresence, type PillProps, type PillQueueState, type PillVariant, PlusIcon, type QueuedNotification, UndoIcon, pill, usePill, usePillQueue };
46
+ export { ArrowIcon, BoxIcon, type CalendarLabels, CheckIcon, CloseIcon, CouponIcon, type DateType, type DismissReason, DocumentIcon, type FieldControlProps, type FieldProps, HelpIcon, type IconProps, InfoIcon, type LinkComponent, MagicPill, type MagicPillProps, MailIcon, type NavActionItem, type NavItem, type NavLinkItem, type NavPanelItem, type NotificationAction, type NotificationPanel, type NotifyInput, type NotifyOptions, type NotifyRenderOptions, PhoneIcon, Pill, PillAction, type PillActionProps, PillActions, type PillButtonActionProps, PillCheckbox, type PillCheckboxProps, type PillChoice, PillChoices, type PillChoicesProps, PillCode, type PillCodeProps, PillColor, type PillColorProps, type PillContextValue, type PillController, PillDate, type PillDateProps, PillDivider, PillField, type PillFieldProps, PillFields, type PillFieldsProps, PillFile, type PillFileProps, PillForm, PillFormPanel, type PillFormPanelProps, type PillFormProps, PillIcon, PillInput, type PillInputProps, type PillInputType, type PillLinkActionProps, PillMessage, type PillMultipleChoiceProps, PillNavbar, type PillNavbarProps, PillNotification, type PillNotificationClassNames, type PillNotificationProps, PillOptics, type PillOption, type PillOptionGroup, type PillOrientation, PillPanel, type PillPanelProps, PillPanelTrigger, type PillPanelTriggerProps, type PillPlacement, type PillPresence, type PillProps, type PillQueueState, PillSelect, type PillSelectProps, type PillSingleChoiceProps, PillSlider, type PillSliderProps, PillStepper, type PillStepperProps, PillSubmit, type PillSubmitProps, PillSwitch, type PillSwitchProps, PillTextarea, type PillTextareaProps, type PillTheme, type PillVariant, PlusIcon, type QueuedNotification, type SceneChange, type SendHandler, UndoIcon, pill, usePill, usePillQueue };
package/dist/index.js CHANGED
@@ -4,8 +4,26 @@ const require_parts = require("./Pill/parts.js");
4
4
  const require_PillAction = require("./Pill/PillAction.js");
5
5
  const require_PillPanel = require("./Pill/PillPanel.js");
6
6
  const require_PillContext = require("./Pill/PillContext.js");
7
+ const require_PillOptics = require("./PillOptics/PillOptics.js");
7
8
  const require_PillNotification = require("./PillNotification/PillNotification.js");
8
9
  const require_PillNavbar = require("./PillNavbar/PillNavbar.js");
10
+ const require_PillForm = require("./PillForm/PillForm.js");
11
+ const require_PillSubmit = require("./PillForm/PillSubmit.js");
12
+ const require_PillFormPanel = require("./PillForm/PillFormPanel.js");
13
+ const require_PillField = require("./PillForm/PillField.js");
14
+ const require_PillInput = require("./PillForm/PillInput.js");
15
+ const require_PillTextarea = require("./PillForm/PillTextarea.js");
16
+ const require_PillSelect = require("./PillForm/PillSelect.js");
17
+ const require_PillSlider = require("./PillForm/PillSlider.js");
18
+ const require_PillSwitch = require("./PillForm/PillSwitch.js");
19
+ const require_PillCheckbox = require("./PillForm/PillCheckbox.js");
20
+ const require_PillChoices = require("./PillForm/PillChoices.js");
21
+ const require_PillStepper = require("./PillForm/PillStepper.js");
22
+ const require_PillFields = require("./PillForm/PillFields.js");
23
+ const require_PillCode = require("./PillForm/PillCode.js");
24
+ const require_PillFile = require("./PillForm/PillFile.js");
25
+ const require_PillDate = require("./PillForm/PillDate.js");
26
+ const require_PillColor = require("./PillForm/PillColor.js");
9
27
  const require_MagicPill = require("./MagicPill/MagicPill.js");
10
28
  const require_store = require("./store/store.js");
11
29
  const require_usePillQueue = require("./store/usePillQueue.js");
@@ -36,13 +54,31 @@ exports.PhoneIcon = require_PhoneIcon;
36
54
  exports.Pill = require_Pill;
37
55
  exports.PillAction = require_PillAction;
38
56
  exports.PillActions = require_parts.PillActions;
57
+ exports.PillCheckbox = require_PillCheckbox.PillCheckbox;
58
+ exports.PillChoices = require_PillChoices.PillChoices;
59
+ exports.PillCode = require_PillCode.PillCode;
60
+ exports.PillColor = require_PillColor.PillColor;
61
+ exports.PillDate = require_PillDate.PillDate;
39
62
  exports.PillDivider = require_parts.PillDivider;
63
+ exports.PillField = require_PillField.PillField;
64
+ exports.PillFields = require_PillFields.PillFields;
65
+ exports.PillFile = require_PillFile.PillFile;
66
+ exports.PillForm = require_PillForm.PillForm;
67
+ exports.PillFormPanel = require_PillFormPanel.PillFormPanel;
40
68
  exports.PillIcon = require_parts.PillIcon;
69
+ exports.PillInput = require_PillInput.PillInput;
41
70
  exports.PillMessage = require_parts.PillMessage;
42
71
  exports.PillNavbar = require_PillNavbar.PillNavbar;
43
72
  exports.PillNotification = require_PillNotification.PillNotification;
73
+ exports.PillOptics = require_PillOptics.PillOptics;
44
74
  exports.PillPanel = require_PillPanel.PillPanel;
45
75
  exports.PillPanelTrigger = require_PillPanel.PillPanelTrigger;
76
+ exports.PillSelect = require_PillSelect.PillSelect;
77
+ exports.PillSlider = require_PillSlider.PillSlider;
78
+ exports.PillStepper = require_PillStepper.PillStepper;
79
+ exports.PillSubmit = require_PillSubmit.PillSubmit;
80
+ exports.PillSwitch = require_PillSwitch.PillSwitch;
81
+ exports.PillTextarea = require_PillTextarea.PillTextarea;
46
82
  exports.PlusIcon = require_PlusIcon;
47
83
  exports.UndoIcon = require_UndoIcon;
48
84
  exports.pill = require_store.pill;
package/dist/index.mjs CHANGED
@@ -3,8 +3,26 @@ import { PillActions, PillDivider, PillIcon, PillMessage } from "./Pill/parts.mj
3
3
  import PillAction from "./Pill/PillAction.mjs";
4
4
  import { PillPanel, PillPanelTrigger } from "./Pill/PillPanel.mjs";
5
5
  import { usePill } from "./Pill/PillContext.mjs";
6
+ import { PillOptics } from "./PillOptics/PillOptics.mjs";
6
7
  import { PillNotification } from "./PillNotification/PillNotification.mjs";
7
8
  import { PillNavbar } from "./PillNavbar/PillNavbar.mjs";
9
+ import { PillForm } from "./PillForm/PillForm.mjs";
10
+ import { PillSubmit } from "./PillForm/PillSubmit.mjs";
11
+ import { PillFormPanel } from "./PillForm/PillFormPanel.mjs";
12
+ import { PillField } from "./PillForm/PillField.mjs";
13
+ import { PillInput } from "./PillForm/PillInput.mjs";
14
+ import { PillTextarea } from "./PillForm/PillTextarea.mjs";
15
+ import { PillSelect } from "./PillForm/PillSelect.mjs";
16
+ import { PillSlider } from "./PillForm/PillSlider.mjs";
17
+ import { PillSwitch } from "./PillForm/PillSwitch.mjs";
18
+ import { PillCheckbox } from "./PillForm/PillCheckbox.mjs";
19
+ import { PillChoices } from "./PillForm/PillChoices.mjs";
20
+ import { PillStepper } from "./PillForm/PillStepper.mjs";
21
+ import { PillFields } from "./PillForm/PillFields.mjs";
22
+ import { PillCode } from "./PillForm/PillCode.mjs";
23
+ import { PillFile } from "./PillForm/PillFile.mjs";
24
+ import { PillDate } from "./PillForm/PillDate.mjs";
25
+ import { PillColor } from "./PillForm/PillColor.mjs";
8
26
  import MagicPill from "./MagicPill/MagicPill.mjs";
9
27
  import { pill } from "./store/store.mjs";
10
28
  import { usePillQueue } from "./store/usePillQueue.mjs";
@@ -21,4 +39,4 @@ import PhoneIcon from "./icons/PhoneIcon.mjs";
21
39
  import PlusIcon from "./icons/PlusIcon.mjs";
22
40
  import UndoIcon from "./icons/UndoIcon.mjs";
23
41
 
24
- export { ArrowIcon, BoxIcon, CheckIcon, CloseIcon, CouponIcon, DocumentIcon, HelpIcon, InfoIcon, MagicPill, MailIcon, PhoneIcon, Pill, PillAction, PillActions, PillDivider, PillIcon, PillMessage, PillNavbar, PillNotification, PillPanel, PillPanelTrigger, PlusIcon, UndoIcon, pill, usePill, usePillQueue };
42
+ export { ArrowIcon, BoxIcon, CheckIcon, CloseIcon, CouponIcon, DocumentIcon, HelpIcon, InfoIcon, MagicPill, MailIcon, PhoneIcon, Pill, PillAction, PillActions, PillCheckbox, PillChoices, PillCode, PillColor, PillDate, PillDivider, PillField, PillFields, PillFile, PillForm, PillFormPanel, PillIcon, PillInput, PillMessage, PillNavbar, PillNotification, PillOptics, PillPanel, PillPanelTrigger, PillSelect, PillSlider, PillStepper, PillSubmit, PillSwitch, PillTextarea, PlusIcon, UndoIcon, pill, usePill, usePillQueue };
package/dist/styles.css CHANGED
@@ -18,7 +18,7 @@
18
18
  /* Behaviour comes last, so it beats the look whatever the specificity:
19
19
  a closed panel or a hidden pill stays hidden even if a visual rule
20
20
  sets a display. Your own unlayered CSS still beats both. */
21
- @layer look, behaviour;
21
+ @layer look, theme, forms, behaviour;
22
22
 
23
23
  @layer behaviour {
24
24
  /* ─── Behaviour: kept by `unstyled` pills ──────────────────────────────── */
@@ -51,9 +51,21 @@
51
51
 
52
52
  [data-mp="pill"]:not([data-unstyled]) {
53
53
  --_mp-surface: var(--mp-surface, #141414);
54
- --_mp-on-surface: var(--mp-on-surface, #f9f9f9);
55
- --_mp-action: var(--mp-action, #f9f9f9);
56
- --_mp-on-action: var(--mp-on-action, #141414);
54
+ /* The colours the app set, if any: the variant's own ones (below), or
55
+ the overall ones. Not set, these aren't valid, so whoever reads them
56
+ gets its fallback: the plain look's here, a theme's in themes.css */
57
+ --_mp-own-on-surface: var(--mp-on-surface);
58
+ --_mp-own-action: var(--mp-action);
59
+ --_mp-own-on-action: var(--mp-on-action);
60
+ --_mp-on-surface: var(--_mp-own-on-surface, #f9f9f9);
61
+ --_mp-action: var(--_mp-own-action, #f9f9f9);
62
+ --_mp-on-action: var(--_mp-own-on-action, #141414);
63
+ --_mp-action-rim: var(--mp-action-rim, transparent);
64
+ --_mp-action-current: var(--mp-action-current, var(--_mp-action));
65
+ --_mp-on-action-current: var(--mp-on-action-current, var(--_mp-on-action));
66
+ /* What stands out: a panel's main actions */
67
+ --_mp-accent: var(--mp-accent, var(--_mp-on-surface));
68
+ --_mp-on-accent: var(--mp-on-accent, var(--_mp-surface));
57
69
  --_mp-offset: var(--mp-offset, 1.5rem);
58
70
  --_mp-padding: var(--mp-padding, 0.875rem);
59
71
  --_mp-gap: var(--mp-gap, 1rem);
@@ -65,6 +77,8 @@
65
77
  --_mp-change: var(--mp-duration-change, 250ms);
66
78
  /* The content fades out before the pill shrinks, and in once it has grown */
67
79
  --_mp-fade: 150ms;
80
+ /* A panel stays above the other pills until it has closed back */
81
+ --_mp-lower: calc(var(--_mp-fade) + var(--_mp-change));
68
82
  /* The entry overshoot from the mockups' "pop" */
69
83
  --_mp-ease-enter: cubic-bezier(0.34, 1.56, 0.64, 1);
70
84
 
@@ -96,11 +110,15 @@
96
110
  bottom to come out of the edge a bottom pill sits on */
97
111
  transform-origin: var(--mp-scale-origin, center);
98
112
  /* The size itself is animated by script (morph.ts): CSS can't
99
- transition a size that follows the content */
113
+ transition a size that follows the content. --_mp-also: what a theme
114
+ adds (themes.css) */
100
115
  transition:
101
116
  scale var(--_mp-enter) var(--_mp-ease-enter),
102
117
  border-radius var(--_mp-change) ease-in-out,
103
118
  background-color var(--_mp-change) ease-in-out,
119
+ color var(--_mp-change) ease-in-out,
120
+ z-index 0s var(--_mp-lower),
121
+ var(--_mp-also, visibility 0s),
104
122
  visibility 0s;
105
123
 
106
124
  & *,
@@ -110,13 +128,25 @@
110
128
  }
111
129
 
112
130
  /* Variants */
131
+ &[data-variant="neutral"] {
132
+ --_mp-own-on-surface: var(--mp-on-neutral, var(--mp-on-surface));
133
+ --_mp-own-action: var(--mp-neutral-action, var(--mp-action));
134
+ --_mp-own-on-action: var(--mp-on-neutral-action, var(--mp-on-action));
135
+ }
136
+
113
137
  &[data-variant="success"] {
114
138
  --_mp-surface: var(--mp-success, #3f7253);
139
+ --_mp-own-on-surface: var(--mp-on-success, var(--mp-on-surface));
140
+ --_mp-own-action: var(--mp-success-action, var(--mp-action));
141
+ --_mp-own-on-action: var(--mp-on-success-action, var(--mp-on-action));
115
142
  }
116
143
 
117
144
  /* Darker than 8.x's #fc5d6a, which had a 2.9:1 contrast with the light text */
118
145
  &[data-variant="danger"] {
119
146
  --_mp-surface: var(--mp-danger, #c2303e);
147
+ --_mp-own-on-surface: var(--mp-on-danger, var(--mp-on-surface));
148
+ --_mp-own-action: var(--mp-danger-action, var(--mp-action));
149
+ --_mp-own-on-action: var(--mp-on-danger-action, var(--mp-on-action));
120
150
  }
121
151
 
122
152
  /* Presence levels */
@@ -130,6 +160,9 @@
130
160
  scale var(--_mp-exit) ease-in calc(var(--_mp-fade) + var(--_mp-change)),
131
161
  border-radius var(--_mp-change) ease-in-out var(--_mp-fade),
132
162
  background-color var(--_mp-change) ease-in-out var(--_mp-fade),
163
+ color var(--_mp-change) ease-in-out var(--_mp-fade),
164
+ z-index 0s var(--_mp-lower),
165
+ var(--_mp-also, visibility 0s),
133
166
  visibility 0s linear calc(var(--_mp-fade) + var(--_mp-change) + var(--_mp-exit));
134
167
  }
135
168
 
@@ -143,6 +176,9 @@
143
176
  scale var(--_mp-enter) var(--_mp-ease-enter),
144
177
  border-radius var(--_mp-change) ease-in-out var(--_mp-fade),
145
178
  background-color var(--_mp-change) ease-in-out var(--_mp-fade),
179
+ color var(--_mp-change) ease-in-out var(--_mp-fade),
180
+ z-index 0s var(--_mp-lower),
181
+ var(--_mp-also, visibility 0s),
146
182
  visibility 0s;
147
183
  }
148
184
 
@@ -167,29 +203,32 @@
167
203
  &[data-presence="panel"] {
168
204
  --_mp-max-size: min(var(--mp-panel-width, 32rem), 100%);
169
205
  display: block;
170
- max-block-size: calc(100dvh - 2 * var(--_mp-offset));
206
+ max-block-size: calc(100dvh - 2 * var(--_mp-offset) - var(--_mp-shift-y, 0px));
171
207
  padding: calc(var(--_mp-padding) * 2.5);
172
208
  overflow-y: auto;
173
209
  border-radius: var(--mp-radius-panel, 2.5rem);
174
210
  }
175
211
 
176
- /* Placements: fixed ones stay inside the viewport and its safe areas */
212
+ /* Placements: fixed ones stay inside the viewport and its safe areas.
213
+ Pills that share one are shifted by script (zone.ts) to line up */
177
214
  &:not([data-placement="inline"]) {
178
- --_mp-max-size: min(var(--mp-max-width, 48rem), 100vw - 2 * var(--_mp-offset));
215
+ --_mp-max-size: min(var(--mp-max-width, 48rem), 100vw - 2 * var(--_mp-offset) - var(--_mp-shift-x, 0px));
179
216
  position: fixed;
180
217
  z-index: var(--mp-z-index, 50);
181
218
  }
182
219
 
183
220
  &[data-presence="panel"]:not([data-placement="inline"]) {
184
- --_mp-max-size: min(var(--mp-panel-width, 32rem), 100vw - 2 * var(--_mp-offset));
221
+ --_mp-max-size: min(var(--mp-panel-width, 32rem), 100vw - 2 * var(--_mp-offset) - var(--_mp-shift-x, 0px));
222
+ --_mp-lower: 0s;
223
+ z-index: calc(var(--mp-z-index, 50) + 1);
185
224
  }
186
225
 
187
226
  &[data-placement^="top"] {
188
- inset-block-start: calc(var(--_mp-offset) + env(safe-area-inset-top, 0px));
227
+ inset-block-start: calc(var(--_mp-offset) + env(safe-area-inset-top, 0px) + var(--_mp-shift-y, 0px));
189
228
  }
190
229
 
191
230
  &[data-placement^="bottom"] {
192
- inset-block-end: calc(var(--_mp-offset) + env(safe-area-inset-bottom, 0px));
231
+ inset-block-end: calc(var(--_mp-offset) + env(safe-area-inset-bottom, 0px) + var(--_mp-shift-y, 0px));
193
232
  }
194
233
 
195
234
  /* Centred with auto margins, not left: 50% + translate, which would
@@ -216,11 +255,11 @@
216
255
  }
217
256
 
218
257
  &[data-placement="left"] {
219
- left: calc(var(--_mp-offset) + env(safe-area-inset-left, 0px));
258
+ left: calc(var(--_mp-offset) + env(safe-area-inset-left, 0px) + var(--_mp-shift-x, 0px));
220
259
  }
221
260
 
222
261
  &[data-placement="right"] {
223
- right: calc(var(--_mp-offset) + env(safe-area-inset-right, 0px));
262
+ right: calc(var(--_mp-offset) + env(safe-area-inset-right, 0px) + var(--_mp-shift-x, 0px));
224
263
  }
225
264
 
226
265
  &[data-placement="overlay"] {
@@ -237,6 +276,9 @@
237
276
  the content has faded out */
238
277
  &::backdrop {
239
278
  background: var(--mp-backdrop, rgb(20 20 20 / 0.4));
279
+ /* Without the token, these aren't valid: there's no filter at all */
280
+ -webkit-backdrop-filter: blur(var(--mp-backdrop-blur));
281
+ backdrop-filter: blur(var(--mp-backdrop-blur));
240
282
  transition: opacity var(--_mp-change) ease-out;
241
283
  }
242
284
 
@@ -258,7 +300,7 @@
258
300
  }
259
301
 
260
302
  &[data-orientation="vertical"]:not([data-presence="rest"], [data-presence="hidden"]) {
261
- max-block-size: calc(100dvh - 2 * var(--_mp-offset));
303
+ max-block-size: calc(100dvh - 2 * var(--_mp-offset) - var(--_mp-shift-y, 0px));
262
304
  }
263
305
 
264
306
  /* A sidebar's panel keeps the panel's width cap, like any other */
@@ -378,12 +420,23 @@
378
420
  overflow: hidden;
379
421
  border-radius: 9999px;
380
422
  background: var(--_mp-action);
423
+ box-shadow: inset 0 0 0 1px var(--_mp-action-rim);
381
424
  color: var(--_mp-on-action);
382
425
  font-family: var(--mp-font-accent, inherit);
383
426
  font-style: normal;
384
427
  font-weight: 700;
385
428
  white-space: nowrap;
386
- transition: padding var(--_mp-change) ease-in-out;
429
+ transition:
430
+ padding var(--_mp-change) ease-in-out,
431
+ background-color var(--_mp-change) ease-in-out,
432
+ color var(--_mp-change) ease-in-out;
433
+ }
434
+
435
+ /* Next to a main action */
436
+ & [data-mp="action"][data-quiet] {
437
+ --_mp-action: var(--mp-close, transparent);
438
+ --_mp-on-action: var(--mp-on-close, var(--_mp-on-surface));
439
+ --_mp-action-rim: var(--mp-close-rim, color-mix(in srgb, var(--_mp-on-surface) 48%, transparent));
387
440
  }
388
441
 
389
442
  & [data-mp="action"]:focus-visible {
@@ -396,6 +449,11 @@
396
449
  opacity: 0.6;
397
450
  }
398
451
 
452
+ & [data-mp="action"]:is([aria-current="page"], [aria-current="true"]) [data-mp="action-body"] {
453
+ background: var(--_mp-action-current);
454
+ color: var(--_mp-on-action-current);
455
+ }
456
+
399
457
  & [data-mp="action-icon"] {
400
458
  flex: none;
401
459
  display: grid;
@@ -424,21 +482,34 @@
424
482
  opacity var(--_mp-change) ease-in-out,
425
483
  margin var(--_mp-change) ease-in-out;
426
484
 
485
+ /* Cut short, it says so; not while it unfolds */
427
486
  & > * {
428
487
  min-inline-size: 0;
429
488
  overflow: hidden;
489
+ text-overflow: clip;
490
+ transition: text-overflow 0s allow-discrete;
430
491
  }
431
492
  }
432
493
 
494
+ /* With no icon, the same space on both sides */
495
+ & [data-mp="label"]:first-child {
496
+ margin-inline-start: calc(var(--_mp-action-size) / 2.5 - (var(--_mp-action-size) - 1.25rem) / 2);
497
+ }
498
+
433
499
  /* In a column, the pill is as wide as its widest item: a label folds
434
500
  only once the next one has unfolded, so the pill never narrows in
435
501
  between (and moving the pointer from item to item keeps it steady) */
436
- &[data-orientation="vertical"] :is([data-mp="label"], [data-mp="action-body"]) {
502
+ &[data-orientation="vertical"] [data-mp="label"] {
437
503
  transition-delay: var(--_mp-change);
438
504
  }
439
505
 
506
+ /* Its padding, not its colours */
507
+ &[data-orientation="vertical"] [data-mp="action-body"] {
508
+ transition-delay: var(--_mp-change), 0s, 0s;
509
+ }
510
+
440
511
  & [data-mp="action"]:is(:focus-visible, [data-expanded], [aria-current="page"], [aria-current="true"]),
441
- &:is([data-presence="expanded"], [data-presence="panel"]) [data-mp="action"] {
512
+ &:is([data-presence="expanded"], [data-presence="panel"]) [data-mp="action"]:not([data-collapsed]) {
442
513
  & [data-mp="action-body"] {
443
514
  padding-inline-end: calc(var(--_mp-action-size) / 2.5);
444
515
  transition-delay: 0s;
@@ -450,11 +521,49 @@
450
521
  transition-delay: 0s;
451
522
  }
452
523
 
524
+ & [data-mp="label"] > * {
525
+ text-overflow: ellipsis;
526
+ transition-delay: var(--_mp-change);
527
+ }
528
+
453
529
  & [data-mp="action-icon"] + [data-mp="label"] {
454
530
  margin-inline-start: 0.5rem;
455
531
  }
456
532
  }
457
533
 
534
+ /* A navbar stays in its pill: where it's too narrow, the open label is
535
+ cut short, rather than the last items */
536
+ &[data-orientation="horizontal"] [data-mp="navbar"] {
537
+ min-inline-size: 0;
538
+
539
+ & [data-mp="action"] {
540
+ flex: 0 1 auto;
541
+ min-inline-size: var(--_mp-action-size);
542
+ }
543
+
544
+ & :is([data-mp="action-body"], [data-mp="label"]) {
545
+ min-inline-size: 0;
546
+ }
547
+
548
+ & [data-mp="action-body"] {
549
+ inline-size: 100%;
550
+ }
551
+ }
552
+
553
+ /* No room for two labels (PillNavbar/room.ts): the one that was open
554
+ folds while another is pointed at or focused */
555
+ & [data-mp="navbar"][data-tight] [data-mp="action"]:not(:hover, :focus-visible) {
556
+ & [data-mp="action-body"] {
557
+ padding-inline-end: calc((var(--_mp-action-size) - 1.25rem) / 2);
558
+ }
559
+
560
+ & [data-mp="action-icon"] + [data-mp="label"] {
561
+ grid-template-columns: 0fr;
562
+ margin-inline-start: 0;
563
+ opacity: 0;
564
+ }
565
+ }
566
+
458
567
  /* The same on hover, only where the device really hovers: a tap on a
459
568
  touchscreen leaves a "sticky" hover behind until the next tap (L20) */
460
569
  @media (hover: hover) {
@@ -470,6 +579,11 @@
470
579
  transition-delay: 0s;
471
580
  }
472
581
 
582
+ & [data-mp="label"] > * {
583
+ text-overflow: ellipsis;
584
+ transition-delay: var(--_mp-change);
585
+ }
586
+
473
587
  & [data-mp="action-icon"] + [data-mp="label"] {
474
588
  margin-inline-start: 0.5rem;
475
589
  }
@@ -481,6 +595,7 @@
481
595
  pill shrinks, out of the flow so the pill can take its closed size */
482
596
  & [data-mp="panel"] {
483
597
  display: grid;
598
+ grid-template-columns: minmax(0, 1fr);
484
599
  gap: var(--_mp-gap);
485
600
  outline: none;
486
601
  opacity: 1;
@@ -502,7 +617,23 @@
502
617
  transition-behavior: allow-discrete;
503
618
  }
504
619
 
620
+ & [data-mp="panel-head"] {
621
+ display: flex;
622
+ align-items: center;
623
+ justify-content: space-between;
624
+ gap: var(--_mp-gap);
625
+ }
626
+
627
+ & [data-mp="panel-title-action"] {
628
+ --_mp-action-size: 2.25rem;
629
+ --_mp-action: var(--_mp-accent);
630
+ --_mp-on-action: var(--_mp-on-accent);
631
+ --_mp-action-rim: transparent;
632
+ flex: none;
633
+ }
634
+
505
635
  & [data-mp="panel-title"] {
636
+ min-inline-size: 0;
506
637
  font-size: var(--mp-title-size, clamp(1.5rem, 1.25rem + 1vw, 2rem));
507
638
  font-style: italic;
508
639
  font-weight: 900;
@@ -518,9 +649,24 @@
518
649
  position: sticky;
519
650
  inset-block-end: 0;
520
651
  display: flex;
652
+ flex-wrap: wrap;
521
653
  justify-content: center;
654
+ gap: calc(var(--_mp-gap) * 0.75);
522
655
  padding-block-start: var(--_mp-gap);
523
- background: linear-gradient(transparent, var(--_mp-surface) 50%);
656
+ isolation: isolate;
657
+
658
+ /* Fades the text out under it, down to the pill's edge. A masked
659
+ colour, which can be transitioned like the pill's own: a gradient
660
+ would jump */
661
+ &::before {
662
+ content: "";
663
+ position: absolute;
664
+ z-index: -1;
665
+ inset: 0 0 calc(var(--_mp-padding) * -2.5);
666
+ background: var(--_mp-surface);
667
+ mask: linear-gradient(transparent, #000 calc(var(--_mp-gap) + var(--_mp-action-size) / 4));
668
+ transition: background-color var(--_mp-change) ease-in-out;
669
+ }
524
670
  }
525
671
  }
526
672
 
@@ -531,6 +677,7 @@
531
677
  [data-mp="pill"]:not([data-unstyled]) {
532
678
  transition:
533
679
  opacity 150ms linear,
680
+ var(--_mp-watch, visibility 0s),
534
681
  visibility 0s;
535
682
 
536
683
  &[data-presence="hidden"] {
@@ -538,12 +685,14 @@
538
685
  opacity: 0;
539
686
  transition:
540
687
  opacity 150ms linear,
688
+ var(--_mp-watch, visibility 0s),
541
689
  visibility 0s linear 150ms;
542
690
  }
543
691
 
544
692
  &[data-presence="rest"] {
545
693
  transition:
546
694
  opacity 150ms linear,
695
+ var(--_mp-watch, visibility 0s),
547
696
  visibility 0s;
548
697
  }
549
698
 
@@ -567,7 +716,8 @@
567
716
  & [data-mp="label"],
568
717
  & [data-mp="action-body"],
569
718
  & [data-mp="message"],
570
- & [data-mp="panel"] {
719
+ & [data-mp="panel"],
720
+ & [data-mp="panel-footer"]::before {
571
721
  transition: none;
572
722
  }
573
723
  }