@wordpress/boot 0.19.0 → 0.21.0

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 (174) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +4 -0
  3. package/build-module/components/app/index.mjs.map +2 -2
  4. package/build-module/components/app/router.mjs +100 -4
  5. package/build-module/components/app/router.mjs.map +3 -3
  6. package/build-module/components/app/use-route-title.mjs.map +2 -2
  7. package/build-module/components/canvas/back-button.mjs.map +2 -2
  8. package/build-module/components/canvas/index.mjs +72 -13
  9. package/build-module/components/canvas/index.mjs.map +2 -2
  10. package/build-module/components/canvas/site-preview.mjs +50 -0
  11. package/build-module/components/canvas/site-preview.mjs.map +7 -0
  12. package/build-module/components/canvas/use-navigate-to-entity-record.mjs +122 -0
  13. package/build-module/components/canvas/use-navigate-to-entity-record.mjs.map +7 -0
  14. package/build-module/components/canvas/viewport.mjs +18 -0
  15. package/build-module/components/canvas/viewport.mjs.map +7 -0
  16. package/build-module/components/canvas-renderer/index.mjs.map +2 -2
  17. package/build-module/components/error-boundary/index.mjs +129 -0
  18. package/build-module/components/error-boundary/index.mjs.map +7 -0
  19. package/build-module/components/navigation/drilldown-item/index.mjs +91 -1
  20. package/build-module/components/navigation/drilldown-item/index.mjs.map +3 -3
  21. package/build-module/components/navigation/dropdown-item/index.mjs +99 -12
  22. package/build-module/components/navigation/dropdown-item/index.mjs.map +4 -4
  23. package/build-module/components/navigation/index.mjs +1 -2
  24. package/build-module/components/navigation/index.mjs.map +2 -2
  25. package/build-module/components/navigation/items.mjs.map +2 -2
  26. package/build-module/components/navigation/navigation-item/index.mjs +88 -15
  27. package/build-module/components/navigation/navigation-item/index.mjs.map +3 -3
  28. package/build-module/components/navigation/navigation-screen/index.mjs +111 -38
  29. package/build-module/components/navigation/navigation-screen/index.mjs.map +3 -3
  30. package/build-module/components/navigation/path-matching.mjs.map +2 -2
  31. package/build-module/components/navigation/router-link-item.mjs.map +2 -2
  32. package/build-module/components/navigation/use-sidebar-parent.mjs +1 -1
  33. package/build-module/components/navigation/use-sidebar-parent.mjs.map +2 -2
  34. package/build-module/components/plugin-area/index.mjs +29 -0
  35. package/build-module/components/plugin-area/index.mjs.map +7 -0
  36. package/build-module/components/root/index.mjs +220 -122
  37. package/build-module/components/root/index.mjs.map +3 -3
  38. package/build-module/components/root/single-page.mjs +139 -47
  39. package/build-module/components/root/single-page.mjs.map +3 -3
  40. package/build-module/components/root/use-sync-body-background.mjs.map +2 -2
  41. package/build-module/components/save-button/index.mjs +127 -16
  42. package/build-module/components/save-button/index.mjs.map +3 -3
  43. package/build-module/components/save-panel/index.mjs +91 -1
  44. package/build-module/components/save-panel/index.mjs.map +3 -3
  45. package/build-module/components/save-panel/use-save-shortcut.mjs.map +2 -2
  46. package/build-module/components/sidebar/index.mjs +90 -10
  47. package/build-module/components/sidebar/index.mjs.map +3 -3
  48. package/build-module/index.mjs +0 -16
  49. package/build-module/index.mjs.map +3 -3
  50. package/build-module/lock-unlock.mjs.map +2 -2
  51. package/build-module/store/actions.mjs +8 -0
  52. package/build-module/store/actions.mjs.map +2 -2
  53. package/build-module/store/index.mjs.map +2 -2
  54. package/build-module/store/reducer.mjs +16 -1
  55. package/build-module/store/reducer.mjs.map +2 -2
  56. package/build-module/store/selectors.mjs +9 -0
  57. package/build-module/store/selectors.mjs.map +2 -2
  58. package/build-types/components/app/index.d.ts.map +1 -1
  59. package/build-types/components/app/router.d.ts +0 -3
  60. package/build-types/components/app/router.d.ts.map +1 -1
  61. package/build-types/components/app/use-route-title.d.ts.map +1 -1
  62. package/build-types/components/canvas/back-button.d.ts.map +1 -1
  63. package/build-types/components/canvas/index.d.ts +0 -3
  64. package/build-types/components/canvas/index.d.ts.map +1 -1
  65. package/build-types/components/canvas/site-preview.d.ts +10 -0
  66. package/build-types/components/canvas/site-preview.d.ts.map +1 -0
  67. package/build-types/components/canvas/use-navigate-to-entity-record.d.ts +40 -0
  68. package/build-types/components/canvas/use-navigate-to-entity-record.d.ts.map +1 -0
  69. package/build-types/components/canvas/viewport.d.ts +15 -0
  70. package/build-types/components/canvas/viewport.d.ts.map +1 -0
  71. package/build-types/components/canvas-renderer/index.d.ts.map +1 -1
  72. package/build-types/components/error-boundary/index.d.ts +22 -0
  73. package/build-types/components/error-boundary/index.d.ts.map +1 -0
  74. package/build-types/components/navigation/drilldown-item/index.d.ts.map +1 -1
  75. package/build-types/components/navigation/dropdown-item/index.d.ts +0 -1
  76. package/build-types/components/navigation/dropdown-item/index.d.ts.map +1 -1
  77. package/build-types/components/navigation/index.d.ts.map +1 -1
  78. package/build-types/components/navigation/items.d.ts +0 -3
  79. package/build-types/components/navigation/items.d.ts.map +1 -1
  80. package/build-types/components/navigation/navigation-item/index.d.ts +0 -1
  81. package/build-types/components/navigation/navigation-item/index.d.ts.map +1 -1
  82. package/build-types/components/navigation/navigation-screen/index.d.ts +0 -7
  83. package/build-types/components/navigation/navigation-screen/index.d.ts.map +1 -1
  84. package/build-types/components/navigation/path-matching.d.ts +0 -3
  85. package/build-types/components/navigation/path-matching.d.ts.map +1 -1
  86. package/build-types/components/navigation/router-link-item.d.ts.map +1 -1
  87. package/build-types/components/navigation/use-sidebar-parent.d.ts.map +1 -1
  88. package/build-types/components/plugin-area/index.d.ts +12 -0
  89. package/build-types/components/plugin-area/index.d.ts.map +1 -0
  90. package/build-types/components/root/index.d.ts +0 -1
  91. package/build-types/components/root/index.d.ts.map +1 -1
  92. package/build-types/components/root/single-page.d.ts +0 -1
  93. package/build-types/components/root/single-page.d.ts.map +1 -1
  94. package/build-types/components/root/use-sync-body-background.d.ts +1 -1
  95. package/build-types/components/root/use-sync-body-background.d.ts.map +1 -1
  96. package/build-types/components/save-button/index.d.ts +0 -4
  97. package/build-types/components/save-button/index.d.ts.map +1 -1
  98. package/build-types/components/save-panel/index.d.ts.map +1 -1
  99. package/build-types/components/save-panel/use-save-shortcut.d.ts.map +1 -1
  100. package/build-types/components/sidebar/index.d.ts +0 -1
  101. package/build-types/components/sidebar/index.d.ts.map +1 -1
  102. package/build-types/index.d.ts +0 -5
  103. package/build-types/index.d.ts.map +1 -1
  104. package/build-types/lock-unlock.d.ts.map +1 -1
  105. package/build-types/store/actions.d.ts +15 -5
  106. package/build-types/store/actions.d.ts.map +1 -1
  107. package/build-types/store/index.d.ts.map +1 -1
  108. package/build-types/store/reducer.d.ts +0 -3
  109. package/build-types/store/reducer.d.ts.map +1 -1
  110. package/build-types/store/selectors.d.ts +12 -3
  111. package/build-types/store/selectors.d.ts.map +1 -1
  112. package/build-types/store/types.d.ts +34 -6
  113. package/build-types/store/types.d.ts.map +1 -1
  114. package/package.json +28 -25
  115. package/src/components/app/index.tsx +0 -7
  116. package/src/components/app/router.tsx +19 -18
  117. package/src/components/app/use-route-title.ts +0 -7
  118. package/src/components/canvas/back-button.tsx +0 -3
  119. package/src/components/canvas/index.tsx +117 -22
  120. package/src/components/canvas/site-preview.tsx +64 -0
  121. package/src/components/canvas/use-navigate-to-entity-record.ts +220 -0
  122. package/src/components/canvas/viewport.ts +34 -0
  123. package/src/components/canvas-renderer/index.tsx +0 -7
  124. package/src/components/error-boundary/index.tsx +71 -0
  125. package/src/components/error-boundary/style.module.scss +13 -0
  126. package/src/components/navigation/drilldown-item/index.tsx +2 -13
  127. package/src/components/navigation/dropdown-item/index.tsx +11 -19
  128. package/src/components/navigation/dropdown-item/{style.scss → style.module.scss} +6 -2
  129. package/src/components/navigation/index.tsx +1 -9
  130. package/src/components/navigation/items.tsx +0 -7
  131. package/src/components/navigation/navigation-item/index.tsx +3 -18
  132. package/src/components/navigation/navigation-item/{style.scss → style.module.scss} +7 -14
  133. package/src/components/navigation/navigation-screen/index.tsx +6 -26
  134. package/src/components/navigation/navigation-screen/{style.scss → style.module.scss} +10 -9
  135. package/src/components/navigation/path-matching.ts +0 -3
  136. package/src/components/navigation/router-link-item.tsx +0 -11
  137. package/src/components/navigation/use-sidebar-parent.ts +1 -13
  138. package/src/components/plugin-area/index.tsx +34 -0
  139. package/src/components/root/{style.scss → _layout.module.scss} +71 -40
  140. package/src/components/root/_view-transitions.module.scss +205 -0
  141. package/src/components/root/index.tsx +44 -35
  142. package/src/components/root/single-page.tsx +15 -18
  143. package/src/components/root/style.module.scss +2 -0
  144. package/src/components/root/use-sync-body-background.ts +1 -4
  145. package/src/components/save-button/index.tsx +36 -21
  146. package/src/components/save-button/style.module.scss +10 -0
  147. package/src/components/save-panel/index.tsx +2 -8
  148. package/src/components/save-panel/style.module.scss +7 -0
  149. package/src/components/save-panel/use-save-shortcut.ts +0 -3
  150. package/src/components/sidebar/index.tsx +5 -12
  151. package/src/components/sidebar/style.module.scss +29 -0
  152. package/src/index.tsx +0 -5
  153. package/src/lock-unlock.ts +0 -3
  154. package/src/store/actions.ts +18 -4
  155. package/src/store/index.ts +0 -7
  156. package/src/store/reducer.ts +19 -3
  157. package/src/store/selectors.ts +28 -3
  158. package/src/store/types.ts +37 -6
  159. package/build-style/style-rtl.css +0 -132
  160. package/build-style/style.css +0 -132
  161. package/build-style/view-transitions-rtl.css +0 -189
  162. package/build-style/view-transitions.css +0 -189
  163. package/build-types/components/site-hub/index.d.ts +0 -4
  164. package/build-types/components/site-hub/index.d.ts.map +0 -1
  165. package/build-types/components/site-icon/index.d.ts +0 -9
  166. package/build-types/components/site-icon/index.d.ts.map +0 -1
  167. package/build-types/components/site-icon-link/index.d.ts +0 -8
  168. package/build-types/components/site-icon-link/index.d.ts.map +0 -1
  169. package/build-types/components/user-theme-provider/index.d.ts +0 -6
  170. package/build-types/components/user-theme-provider/index.d.ts.map +0 -1
  171. package/src/components/save-button/style.scss +0 -9
  172. package/src/components/sidebar/style.scss +0 -23
  173. package/src/style.scss +0 -33
  174. package/src/view-transitions.scss +0 -221
@@ -1,132 +0,0 @@
1
- /**
2
- * Typography
3
- */
4
- /**
5
- * SCSS Variables.
6
- *
7
- * Please use variables from this sheet to ensure consistency across the UI.
8
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
9
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
10
- */
11
- /**
12
- * Colors
13
- */
14
- /**
15
- * Fonts & basic variables.
16
- */
17
- /**
18
- * Typography
19
- */
20
- /**
21
- * Grid System.
22
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
23
- */
24
- /**
25
- * Radius scale.
26
- */
27
- /**
28
- * Elevation scale.
29
- */
30
- /**
31
- * Dimensions.
32
- */
33
- /**
34
- * Mobile specific styles
35
- */
36
- /**
37
- * Editor styles.
38
- */
39
- /**
40
- * Block & Editor UI.
41
- */
42
- /**
43
- * Block paddings.
44
- */
45
- /**
46
- * React Native specific.
47
- * These variables do not appear to be used anywhere else.
48
- */
49
- /**
50
- * Breakpoints & Media Queries
51
- */
52
- /**
53
- * Converts a hex value into the rgb equivalent.
54
- *
55
- * @param {string} hex - the hexadecimal value to convert
56
- * @return {string} comma separated rgb values
57
- */
58
- /**
59
- * Long content fade mixin
60
- *
61
- * Creates a fading overlay to signify that the content is longer
62
- * than the space allows.
63
- */
64
- /**
65
- * Breakpoint mixins
66
- */
67
- /**
68
- * Focus styles.
69
- */
70
- /**
71
- * Standard focus rings for the WordPress Design System.
72
- *
73
- * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
74
- * e.g. `&:focus { @include outset-ring__focus(); }`.
75
- */
76
- /**
77
- * Applies editor left position to the selector passed as argument
78
- */
79
- /**
80
- * Styles that are reused verbatim in a few places
81
- */
82
- /**
83
- * Allows users to opt-out of animations via OS-level preferences.
84
- */
85
- /**
86
- * Reset default styles for JavaScript UI based pages.
87
- * This is a WP-admin agnostic reset
88
- */
89
- /**
90
- * Reset the WP Admin page styles for Gutenberg-like pages.
91
- */
92
- /**
93
- * Creates a checkerboard pattern background to indicate transparency.
94
- * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
95
- */
96
- @media (min-width: 600px) {
97
- .boot-layout-container .boot-layout {
98
- position: absolute;
99
- top: 0;
100
- right: 0;
101
- bottom: 0;
102
- left: 0;
103
- min-height: calc(100vh - 46px);
104
- }
105
- }
106
- @media (min-width: 782px) {
107
- .boot-layout-container .boot-layout {
108
- min-height: calc(100vh - 32px);
109
- }
110
- body:has(.boot-layout.has-full-canvas) .boot-layout-container .boot-layout {
111
- min-height: 100vh;
112
- }
113
- }
114
- .boot-layout-container .boot-layout img {
115
- max-width: 100%;
116
- height: auto;
117
- }
118
-
119
- .boot-layout .boot-notices__snackbar {
120
- position: fixed;
121
- bottom: 24px;
122
- left: 0;
123
- right: 0;
124
- padding-inline: 16px;
125
- box-sizing: border-box;
126
- display: flex;
127
- flex-direction: column;
128
- pointer-events: none;
129
- }
130
- .boot-layout .boot-notices__snackbar .components-snackbar {
131
- margin-inline: auto;
132
- }
@@ -1,189 +0,0 @@
1
- /**
2
- * Colors
3
- */
4
- @media (max-width: 782px) {
5
- * {
6
- view-transition-name: none !important;
7
- }
8
- }
9
- ::view-transition-old(root),
10
- ::view-transition-new(root) {
11
- animation-duration: 250ms;
12
- }
13
-
14
- @media not (prefers-reduced-motion: reduce) {
15
- .boot-layout__canvas .interface-interface-skeleton__header {
16
- view-transition-name: boot--canvas-header;
17
- }
18
- .boot-layout__canvas .interface-interface-skeleton__sidebar {
19
- view-transition-name: boot--canvas-sidebar;
20
- }
21
- .boot-layout__stage {
22
- view-transition-name: boot--stage;
23
- }
24
- .boot-layout__inspector {
25
- view-transition-name: boot--inspector;
26
- }
27
- .boot-layout__canvas:not(.is-full-canvas),
28
- .boot-layout__canvas.is-full-canvas .interface-interface-skeleton__content {
29
- view-transition-name: boot--canvas;
30
- }
31
- @supports (-webkit-hyphens: none) and (not (-moz-appearance: none)) {
32
- .boot-layout__stage {
33
- view-transition-name: boot-safari--stage;
34
- }
35
- .boot-layout__inspector {
36
- view-transition-name: boot-safari--inspector;
37
- }
38
- .boot-layout__canvas:not(.is-full-canvas),
39
- .boot-layout__canvas.is-full-canvas .interface-interface-skeleton__content {
40
- view-transition-name: boot-safari--canvas;
41
- }
42
- }
43
- .components-popover:first-of-type {
44
- view-transition-name: boot--components-popover;
45
- }
46
- }
47
- ::view-transition-group(boot--canvas-header),
48
- ::view-transition-group(boot--canvas-sidebar),
49
- ::view-transition-group(boot-safari--canvas),
50
- ::view-transition-group(boot--canvas) {
51
- z-index: 1;
52
- }
53
-
54
- ::view-transition-new(boot-safari--canvas),
55
- ::view-transition-old(boot-safari--canvas),
56
- ::view-transition-new(boot-safari--stage),
57
- ::view-transition-old(boot-safari--stage),
58
- ::view-transition-old(boot-safari--inspector),
59
- ::view-transition-new(boot-safari--inspector) {
60
- width: auto;
61
- }
62
-
63
- ::view-transition-new(boot--canvas),
64
- ::view-transition-old(boot--canvas),
65
- ::view-transition-new(boot--stage),
66
- ::view-transition-old(boot--stage),
67
- ::view-transition-new(boot--inspector),
68
- ::view-transition-old(boot--inspector) {
69
- background: #fff;
70
- border-radius: var(--wpds-border-radius-xl, 12px);
71
- width: 100%;
72
- height: 100%;
73
- -o-object-fit: none;
74
- object-fit: none;
75
- -o-object-position: right top;
76
- object-position: right top;
77
- overflow: hidden;
78
- }
79
-
80
- ::view-transition-new(boot--canvas),
81
- ::view-transition-old(boot--canvas) {
82
- -o-object-position: center top;
83
- object-position: center top;
84
- }
85
-
86
- ::view-transition-old(boot-safari--inspector):only-child,
87
- ::view-transition-old(boot--inspector):only-child,
88
- ::view-transition-old(boot-safari--stage):only-child,
89
- ::view-transition-old(boot--stage):only-child {
90
- animation-name: zoomOut;
91
- will-change: transform, opacity;
92
- }
93
-
94
- ::view-transition-new(boot-safari--inspector):only-child,
95
- ::view-transition-new(boot--inspector):only-child,
96
- ::view-transition-new(boot-safari--stage):only-child,
97
- ::view-transition-new(boot--stage):only-child {
98
- animation-name: zoomIn;
99
- will-change: transform, opacity;
100
- }
101
-
102
- @keyframes zoomOut {
103
- from {
104
- transform: scale(1);
105
- opacity: 1;
106
- }
107
- to {
108
- transform: scale(0.9);
109
- opacity: 0;
110
- }
111
- }
112
- @keyframes zoomIn {
113
- from {
114
- transform: scale(0.95);
115
- opacity: 0;
116
- }
117
- to {
118
- transform: scale(1);
119
- opacity: 1;
120
- }
121
- }
122
- ::view-transition-new(boot-safari--canvas):only-child,
123
- ::view-transition-new(boot--canvas):only-child {
124
- animation-name: slideFromRight;
125
- will-change: transform;
126
- }
127
-
128
- ::view-transition-old(boot-safari--canvas):only-child,
129
- ::view-transition-old(boot--canvas):only-child {
130
- animation-name: slideToRight;
131
- will-change: transform;
132
- }
133
-
134
- @keyframes slideFromRight {
135
- from {
136
- transform: translateX(-100vw);
137
- }
138
- to {
139
- transform: translateX(0);
140
- }
141
- }
142
- @keyframes slideToRight {
143
- from {
144
- transform: translateX(0);
145
- }
146
- to {
147
- transform: translateX(-100vw);
148
- }
149
- }
150
- ::view-transition-new(boot--canvas-header):only-child {
151
- animation-name: slideHeaderFromTop;
152
- will-change: transform;
153
- }
154
-
155
- ::view-transition-old(boot--canvas-header):only-child {
156
- animation-name: slideHeaderToTop;
157
- will-change: transform;
158
- }
159
-
160
- @keyframes slideHeaderFromTop {
161
- from {
162
- transform: translateY(-100%);
163
- }
164
- }
165
- @keyframes slideHeaderToTop {
166
- to {
167
- transform: translateY(-100%);
168
- }
169
- }
170
- ::view-transition-new(boot--canvas-sidebar):only-child {
171
- animation-name: slideSidebarFromRight;
172
- will-change: transform;
173
- }
174
-
175
- ::view-transition-old(boot--canvas-sidebar):only-child {
176
- animation-name: slideSidebarToRight;
177
- will-change: transform;
178
- }
179
-
180
- @keyframes slideSidebarFromRight {
181
- from {
182
- transform: translateX(-100%);
183
- }
184
- }
185
- @keyframes slideSidebarToRight {
186
- to {
187
- transform: translateX(-100%);
188
- }
189
- }
@@ -1,189 +0,0 @@
1
- /**
2
- * Colors
3
- */
4
- @media (max-width: 782px) {
5
- * {
6
- view-transition-name: none !important;
7
- }
8
- }
9
- ::view-transition-old(root),
10
- ::view-transition-new(root) {
11
- animation-duration: 250ms;
12
- }
13
-
14
- @media not (prefers-reduced-motion: reduce) {
15
- .boot-layout__canvas .interface-interface-skeleton__header {
16
- view-transition-name: boot--canvas-header;
17
- }
18
- .boot-layout__canvas .interface-interface-skeleton__sidebar {
19
- view-transition-name: boot--canvas-sidebar;
20
- }
21
- .boot-layout__stage {
22
- view-transition-name: boot--stage;
23
- }
24
- .boot-layout__inspector {
25
- view-transition-name: boot--inspector;
26
- }
27
- .boot-layout__canvas:not(.is-full-canvas),
28
- .boot-layout__canvas.is-full-canvas .interface-interface-skeleton__content {
29
- view-transition-name: boot--canvas;
30
- }
31
- @supports (-webkit-hyphens: none) and (not (-moz-appearance: none)) {
32
- .boot-layout__stage {
33
- view-transition-name: boot-safari--stage;
34
- }
35
- .boot-layout__inspector {
36
- view-transition-name: boot-safari--inspector;
37
- }
38
- .boot-layout__canvas:not(.is-full-canvas),
39
- .boot-layout__canvas.is-full-canvas .interface-interface-skeleton__content {
40
- view-transition-name: boot-safari--canvas;
41
- }
42
- }
43
- .components-popover:first-of-type {
44
- view-transition-name: boot--components-popover;
45
- }
46
- }
47
- ::view-transition-group(boot--canvas-header),
48
- ::view-transition-group(boot--canvas-sidebar),
49
- ::view-transition-group(boot-safari--canvas),
50
- ::view-transition-group(boot--canvas) {
51
- z-index: 1;
52
- }
53
-
54
- ::view-transition-new(boot-safari--canvas),
55
- ::view-transition-old(boot-safari--canvas),
56
- ::view-transition-new(boot-safari--stage),
57
- ::view-transition-old(boot-safari--stage),
58
- ::view-transition-old(boot-safari--inspector),
59
- ::view-transition-new(boot-safari--inspector) {
60
- width: auto;
61
- }
62
-
63
- ::view-transition-new(boot--canvas),
64
- ::view-transition-old(boot--canvas),
65
- ::view-transition-new(boot--stage),
66
- ::view-transition-old(boot--stage),
67
- ::view-transition-new(boot--inspector),
68
- ::view-transition-old(boot--inspector) {
69
- background: #fff;
70
- border-radius: var(--wpds-border-radius-xl, 12px);
71
- width: 100%;
72
- height: 100%;
73
- -o-object-fit: none;
74
- object-fit: none;
75
- -o-object-position: left top;
76
- object-position: left top;
77
- overflow: hidden;
78
- }
79
-
80
- ::view-transition-new(boot--canvas),
81
- ::view-transition-old(boot--canvas) {
82
- -o-object-position: center top;
83
- object-position: center top;
84
- }
85
-
86
- ::view-transition-old(boot-safari--inspector):only-child,
87
- ::view-transition-old(boot--inspector):only-child,
88
- ::view-transition-old(boot-safari--stage):only-child,
89
- ::view-transition-old(boot--stage):only-child {
90
- animation-name: zoomOut;
91
- will-change: transform, opacity;
92
- }
93
-
94
- ::view-transition-new(boot-safari--inspector):only-child,
95
- ::view-transition-new(boot--inspector):only-child,
96
- ::view-transition-new(boot-safari--stage):only-child,
97
- ::view-transition-new(boot--stage):only-child {
98
- animation-name: zoomIn;
99
- will-change: transform, opacity;
100
- }
101
-
102
- @keyframes zoomOut {
103
- from {
104
- transform: scale(1);
105
- opacity: 1;
106
- }
107
- to {
108
- transform: scale(0.9);
109
- opacity: 0;
110
- }
111
- }
112
- @keyframes zoomIn {
113
- from {
114
- transform: scale(0.95);
115
- opacity: 0;
116
- }
117
- to {
118
- transform: scale(1);
119
- opacity: 1;
120
- }
121
- }
122
- ::view-transition-new(boot-safari--canvas):only-child,
123
- ::view-transition-new(boot--canvas):only-child {
124
- animation-name: slideFromRight;
125
- will-change: transform;
126
- }
127
-
128
- ::view-transition-old(boot-safari--canvas):only-child,
129
- ::view-transition-old(boot--canvas):only-child {
130
- animation-name: slideToRight;
131
- will-change: transform;
132
- }
133
-
134
- @keyframes slideFromRight {
135
- from {
136
- transform: translateX(100vw);
137
- }
138
- to {
139
- transform: translateX(0);
140
- }
141
- }
142
- @keyframes slideToRight {
143
- from {
144
- transform: translateX(0);
145
- }
146
- to {
147
- transform: translateX(100vw);
148
- }
149
- }
150
- ::view-transition-new(boot--canvas-header):only-child {
151
- animation-name: slideHeaderFromTop;
152
- will-change: transform;
153
- }
154
-
155
- ::view-transition-old(boot--canvas-header):only-child {
156
- animation-name: slideHeaderToTop;
157
- will-change: transform;
158
- }
159
-
160
- @keyframes slideHeaderFromTop {
161
- from {
162
- transform: translateY(-100%);
163
- }
164
- }
165
- @keyframes slideHeaderToTop {
166
- to {
167
- transform: translateY(-100%);
168
- }
169
- }
170
- ::view-transition-new(boot--canvas-sidebar):only-child {
171
- animation-name: slideSidebarFromRight;
172
- will-change: transform;
173
- }
174
-
175
- ::view-transition-old(boot--canvas-sidebar):only-child {
176
- animation-name: slideSidebarToRight;
177
- will-change: transform;
178
- }
179
-
180
- @keyframes slideSidebarFromRight {
181
- from {
182
- transform: translateX(100%);
183
- }
184
- }
185
- @keyframes slideSidebarToRight {
186
- to {
187
- transform: translateX(100%);
188
- }
189
- }
@@ -1,4 +0,0 @@
1
- import './style.scss';
2
- declare function SiteHub(): import("react").JSX.Element;
3
- export default SiteHub;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/site-hub/index.tsx"],"names":[],"mappings":"AAyBA,OAAO,cAAc,CAAC;AAEtB,iBAAS,OAAO,gCA+Cf;eAEc,OAAO"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Internal dependencies
3
- */
4
- import './style.scss';
5
- declare function SiteIcon({ className }: {
6
- className?: string;
7
- }): import("react").JSX.Element;
8
- export default SiteIcon;
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/site-icon/index.tsx"],"names":[],"mappings":"AAcA;;GAEG;AACH,OAAO,cAAc,CAAC;AAEtB,iBAAS,QAAQ,CAAE,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAsCvD;eAEc,QAAQ"}
@@ -1,8 +0,0 @@
1
- import './style.scss';
2
- declare function SiteIconLink({ to, isBackButton, ...props }: {
3
- to: string;
4
- 'aria-label': string;
5
- isBackButton?: boolean;
6
- }): import("react").JSX.Element;
7
- export default SiteIconLink;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/site-icon-link/index.tsx"],"names":[],"mappings":"AAaA,OAAO,cAAc,CAAC;AAItB,iBAAS,YAAY,CAAE,EACtB,EAAE,EACF,YAAY,EACZ,GAAG,KAAK,EACR,EAAE;IACF,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB,+BA8BA;eAEc,YAAY"}
@@ -1,6 +0,0 @@
1
- import { type ThemeProvider as ThemeProviderType } from '@wordpress/theme';
2
- declare const ThemeProvider: typeof ThemeProviderType;
3
- export declare function getAdminThemePrimaryColor(): string | undefined;
4
- export declare function UserThemeProvider({ color, ...restProps }: React.ComponentProps<typeof ThemeProvider>): import("react").JSX.Element;
5
- export {};
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/user-theme-provider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,aAAa,IAAI,iBAAiB,EAEvC,MAAM,kBAAkB,CAAC;AAG1B,QAAA,MAAM,aAAa,EAAE,OAAO,iBACa,CAAC;AAa1C,wBAAgB,yBAAyB,IAAI,MAAM,GAAG,SAAS,CAK9D;AAED,wBAAgB,iBAAiB,CAAE,EAClC,KAAK,EACL,GAAG,SAAS,EACZ,EAAE,KAAK,CAAC,cAAc,CAAE,OAAO,aAAa,CAAE,+BAI9C"}
@@ -1,9 +0,0 @@
1
- @use "@wordpress/base-styles/variables" as *;
2
-
3
- .boot-save-button {
4
- width: 100%;
5
- }
6
-
7
- .boot-save-button__shortcut:not(:first-child) {
8
- margin-left: $grid-unit-10;
9
- }
@@ -1,23 +0,0 @@
1
- @use "@wordpress/base-styles/variables";
2
-
3
- .boot-sidebar__scrollable {
4
- overflow: auto;
5
- height: 100%;
6
- position: relative;
7
- display: flex;
8
- flex-direction: column;
9
- }
10
-
11
- .boot-sidebar__content {
12
- flex-grow: 1;
13
- contain: content;
14
- position: relative;
15
- }
16
-
17
- .boot-sidebar__footer {
18
- padding: variables.$grid-unit-20 variables.$grid-unit-10 variables.$grid-unit-10 variables.$grid-unit-20;
19
- }
20
-
21
- .boot-sidebar__back-button {
22
- margin: variables.$grid-unit-20 variables.$grid-unit-15 variables.$grid-unit-10 variables.$grid-unit-15;
23
- }
package/src/style.scss DELETED
@@ -1,33 +0,0 @@
1
- @use "@wordpress/base-styles/mixins" as *;
2
- @use "@wordpress/base-styles/variables" as *;
3
-
4
- .boot-layout-container .boot-layout {
5
- // On mobile the main content area has to scroll, otherwise you can invoke
6
- // the overscroll bounce on the non-scrolling container, for a bad experience.
7
- @include break-small {
8
- position: absolute;
9
- top: 0;
10
- right: 0;
11
- bottom: 0;
12
- left: 0;
13
- min-height: calc(100vh - #{$admin-bar-height-big});
14
- }
15
-
16
- // The WP header height changes at this breakpoint.
17
- @include break-medium {
18
- min-height: calc(100vh - #{$admin-bar-height});
19
-
20
- body:has(.boot-layout.has-full-canvas) & {
21
- min-height: 100vh;
22
- }
23
- }
24
-
25
- img {
26
- max-width: 100%;
27
- height: auto;
28
- }
29
- }
30
-
31
- .boot-layout .boot-notices__snackbar {
32
- @include snackbar-container();
33
- }