@planningcenter/topbar 8.3.3-rc.1 → 8.3.3-rc.3

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 (95) hide show
  1. package/README.md +0 -56
  2. package/dist/topbar.css +1 -1
  3. package/dist/topbar.css.map +1 -1
  4. package/dist/topbar.js +1 -1
  5. package/dist/topbar.js.map +1 -1
  6. package/dist/topbar.modern.js +1 -1
  7. package/dist/topbar.modern.js.map +1 -1
  8. package/dist/topbar.module.js +1 -1
  9. package/dist/topbar.module.js.map +1 -1
  10. package/dist/topbar.umd.js +1 -1
  11. package/dist/topbar.umd.js.map +1 -1
  12. package/dist/types/index.d.ts +0 -1
  13. package/dist/types/index.d.ts.map +1 -1
  14. package/dist/types/modules/apps_provider.d.ts +13 -3
  15. package/dist/types/modules/apps_provider.d.ts.map +1 -1
  16. package/dist/types/modules/avatar.d.ts +3 -2
  17. package/dist/types/modules/avatar.d.ts.map +1 -1
  18. package/dist/types/modules/client_storage.d.ts +2 -2
  19. package/dist/types/modules/client_storage.d.ts.map +1 -1
  20. package/dist/types/modules/color_app_icon.d.ts +1 -0
  21. package/dist/types/modules/color_app_icon.d.ts.map +1 -1
  22. package/dist/types/modules/color_app_squircles.d.ts +1 -0
  23. package/dist/types/modules/color_app_squircles.d.ts.map +1 -1
  24. package/dist/types/modules/colors.d.ts +0 -3
  25. package/dist/types/modules/colors.d.ts.map +1 -1
  26. package/dist/types/modules/components/apps_button.d.ts +1 -0
  27. package/dist/types/modules/components/apps_button.d.ts.map +1 -1
  28. package/dist/types/modules/components/apps_menu.d.ts +1 -0
  29. package/dist/types/modules/components/apps_menu.d.ts.map +1 -1
  30. package/dist/types/modules/components/conditional_wrap.d.ts +1 -1
  31. package/dist/types/modules/components/conditional_wrap.d.ts.map +1 -1
  32. package/dist/types/modules/components/eyebrow.d.ts +1 -1
  33. package/dist/types/modules/components/eyebrow.d.ts.map +1 -1
  34. package/dist/types/modules/components/hoverable.d.ts +2 -2
  35. package/dist/types/modules/components/hoverable.d.ts.map +1 -1
  36. package/dist/types/modules/components/hoverable_list_item.d.ts +1 -1
  37. package/dist/types/modules/components/hoverable_list_item.d.ts.map +1 -1
  38. package/dist/types/modules/components/notification_bell.d.ts +1 -0
  39. package/dist/types/modules/components/notification_bell.d.ts.map +1 -1
  40. package/dist/types/modules/components/notification_item.d.ts +1 -0
  41. package/dist/types/modules/components/notification_item.d.ts.map +1 -1
  42. package/dist/types/modules/components/notifications_menu.d.ts +10 -2
  43. package/dist/types/modules/components/notifications_menu.d.ts.map +1 -1
  44. package/dist/types/modules/components/notifications_menu_blank_state.d.ts +2 -2
  45. package/dist/types/modules/components/notifications_menu_blank_state.d.ts.map +1 -1
  46. package/dist/types/modules/components/notifications_menu_wrapper.d.ts +1 -1
  47. package/dist/types/modules/components/notifications_menu_wrapper.d.ts.map +1 -1
  48. package/dist/types/modules/components/outsider.d.ts +1 -1
  49. package/dist/types/modules/components/outsider.d.ts.map +1 -1
  50. package/dist/types/modules/components/popover_root.d.ts +1 -1
  51. package/dist/types/modules/components/popover_root.d.ts.map +1 -1
  52. package/dist/types/modules/components/popup.d.ts +1 -1
  53. package/dist/types/modules/components/popup.d.ts.map +1 -1
  54. package/dist/types/modules/components/popup_root.d.ts +1 -1
  55. package/dist/types/modules/components/popup_root.d.ts.map +1 -1
  56. package/dist/types/modules/components/spinner.d.ts +5 -0
  57. package/dist/types/modules/components/spinner.d.ts.map +1 -0
  58. package/dist/types/modules/connected_people_provider.d.ts +6 -7
  59. package/dist/types/modules/connected_people_provider.d.ts.map +1 -1
  60. package/dist/types/modules/display_switch.d.ts +2 -2
  61. package/dist/types/modules/display_switch.d.ts.map +1 -1
  62. package/dist/types/modules/get_login_profile_path.d.ts +2 -2
  63. package/dist/types/modules/get_login_profile_path.d.ts.map +1 -1
  64. package/dist/types/modules/hooks/use_notifications.d.ts.map +1 -1
  65. package/dist/types/modules/hooks/use_topbar_api.d.ts +2 -2
  66. package/dist/types/modules/hooks/use_topbar_api.d.ts.map +1 -1
  67. package/dist/types/modules/mfa_status.d.ts +1 -0
  68. package/dist/types/modules/mfa_status.d.ts.map +1 -1
  69. package/dist/types/modules/mono_app_icon.d.ts +1 -0
  70. package/dist/types/modules/mono_app_icon.d.ts.map +1 -1
  71. package/dist/types/modules/mono_app_name.d.ts +1 -0
  72. package/dist/types/modules/mono_app_name.d.ts.map +1 -1
  73. package/dist/types/modules/mono_app_symbols.d.ts +1 -0
  74. package/dist/types/modules/mono_app_symbols.d.ts.map +1 -1
  75. package/dist/types/modules/mono_app_text.d.ts +1 -0
  76. package/dist/types/modules/mono_app_text.d.ts.map +1 -1
  77. package/dist/types/modules/not_small_topbar.d.ts +27 -0
  78. package/dist/types/modules/not_small_topbar.d.ts.map +1 -0
  79. package/dist/types/modules/platform_announcements.d.ts +3 -3
  80. package/dist/types/modules/platform_announcements.d.ts.map +1 -1
  81. package/dist/types/modules/product_announcement.d.ts +1 -1
  82. package/dist/types/modules/product_announcement.d.ts.map +1 -1
  83. package/dist/types/modules/small_topbar.d.ts +18 -0
  84. package/dist/types/modules/small_topbar.d.ts.map +1 -0
  85. package/dist/types/modules/styled_root.d.ts +1 -0
  86. package/dist/types/modules/styled_root.d.ts.map +1 -1
  87. package/dist/types/modules/symbols.d.ts +2 -2
  88. package/dist/types/modules/symbols.d.ts.map +1 -1
  89. package/dist/types/modules/topbar_context.d.ts +9 -0
  90. package/dist/types/modules/topbar_context.d.ts.map +1 -0
  91. package/dist/types/modules/unbutton.d.ts +1 -0
  92. package/dist/types/modules/unbutton.d.ts.map +1 -1
  93. package/dist/types/modules/utils.d.ts +0 -1
  94. package/dist/types/modules/utils.d.ts.map +1 -1
  95. package/package.json +4 -17
package/README.md CHANGED
@@ -114,62 +114,6 @@ If you are passing your own Jolt client object into Topbar via props, you can co
114
114
  If you are relying on Topbar to create its own Jolt connection and would like to enable logging, pass `enableJoltLogging={true}` as a prop to whichever topbar
115
115
  you are using (`SmallTopbar`/`NotSmallTopbar`).
116
116
 
117
- ## Toolbar
118
-
119
- Toolbar lives alongside Topbar on the right side of the viewport. It is responsible for the global concerns of Profile, Help Desk, Tasks, Notifications, and Core Messaging.
120
-
121
- ### Contributing
122
-
123
- Tool implementations are self-contained modules that live in the `modules/toolbar/tools/` directory.
124
-
125
- A tool module is required to have a named export which adheres to the following `ToolbarTool` interface.
126
-
127
- ```ts
128
- interface ToolbarTool {
129
- component: unknown // A React component. Stronger typing is in the works.
130
- icon: string
131
- name: string
132
- }
133
- ```
134
-
135
- - `component`: the React component that will be rendered into the drawer when the tool is selected.
136
- - `icon`: the name of the [`tapestry-react` icon](https://planningcenter.github.io/tapestry-react/icon#preview-icons) that will be rendered as the button in Toolbar.
137
- - `name`: the formal name of the tool. For now, this is only surfaced for accessibility concerns on the tool's toolbar `Button`.
138
-
139
- ### Example
140
-
141
- The following example implements an example tool using the shared `DrawerHeader` and `DrawerHeading` components.
142
-
143
- - `DrawerHeader` handles the placement and styling of the close button.
144
- - `DrawerHeading` handles the styling of the drawer heading.
145
-
146
- ```ts
147
- // tool_name.tsx
148
-
149
- import { DrawerHeader, DrawerHeading } from "../components"
150
-
151
- import { ToolbarTool } from "../types"
152
-
153
- function ToolComponent({ closeDrawer }) {
154
- return (
155
- <>
156
- <DrawerHeader closeDrawer={closeDrawer}>
157
- <DrawerHeading>Tool name</DrawerHeading>
158
- </DrawerHeader>
159
- {/* Tool drawer content implementation */}
160
- </>
161
- )
162
- }
163
-
164
- const ToolName: ToolbarTool = {
165
- component: ToolComponent,
166
- icon: "general.toolbarIconName",
167
- name: "Tool name",
168
- }
169
-
170
- export { ToolName }
171
- ```
172
-
173
117
  ## Migrate
174
118
 
175
119
  These migration docs will guide you thru the process of updating to recent major releases.
package/dist/topbar.css CHANGED
@@ -1,2 +1,2 @@
1
- .hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.hide-scrollbar::-webkit-scrollbar{display:none}
1
+ .hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.hide-scrollbar::-webkit-scrollbar{display:none}@-webkit-keyframes spinning{to{transform:rotate(1turn)}}@keyframes spinning{to{transform:rotate(1turn)}}.spinner{align-self:center;-webkit-animation:spinning .5s linear infinite;animation:spinning .5s linear infinite;border:2px solid #f7f7f7;border-radius:50%;border-top-color:#9e9e9e;display:inline;height:16px;transform:rotate(0deg);vertical-align:middle;width:16px}
2
2
  /*# sourceMappingURL=topbar.css.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["utils.css"],"names":[],"mappings":"AAAA,gBACE,uBAAwB,CACxB,oBACF,CACA,mCACE,YACF","file":"topbar.css","sourcesContent":[".hide-scrollbar {\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n}\n.hide-scrollbar::-webkit-scrollbar {\n display: none; /* Chrome, Safari, and Opera */\n}\n"]}
1
+ {"version":3,"sources":["utils.css","spinner.css"],"names":[],"mappings":"AAAA,gBACE,uBAAwB,CACxB,oBACF,CACA,mCACE,YACF,CCNA,4BACE,GAEE,uBACF,CACF,CACA,oBACE,GAEE,uBACF,CACF,CAEA,SACE,iBAAkB,CAClB,8CAAyC,CAAzC,sCAAyC,CAKzC,wBAAiB,CAHjB,iBAAkB,CAGlB,wBAAiB,CACjB,cAAe,CACf,WAAY,CACZ,sBAAuB,CACvB,qBAAsB,CACtB,UACF","file":"topbar.css","sourcesContent":[".hide-scrollbar {\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n}\n.hide-scrollbar::-webkit-scrollbar {\n display: none; /* Chrome, Safari, and Opera */\n}\n","@-webkit-keyframes spinning {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes spinning {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n.spinner {\n align-self: center;\n animation: spinning 500ms infinite linear;\n border-color: hsl(0 0% 97%);\n border-radius: 50%;\n border-style: solid;\n border-top-color: hsl(0 0% 62%);\n border-width: 2px;\n display: inline;\n height: 16px;\n transform: rotate(0deg);\n vertical-align: middle;\n width: 16px;\n}\n"]}