@charcoal-ui/react 3.2.0 → 3.3.0-beta.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.
package/dist/index.esm.js CHANGED
@@ -39,10 +39,11 @@ function CharcoalProvider({
39
39
  defaultTheme = themeMap[":root"],
40
40
  components = {},
41
41
  injectTokens = true,
42
- children
42
+ children,
43
+ background
43
44
  }) {
44
45
  return /* @__PURE__ */ jsx2(SSRProvider, { children: /* @__PURE__ */ jsxs(ThemeProvider, { theme: defaultTheme, children: [
45
- injectTokens && /* @__PURE__ */ jsx2(TokenInjector, { theme: themeMap }),
46
+ injectTokens && /* @__PURE__ */ jsx2(TokenInjector, { theme: themeMap, background }),
46
47
  /* @__PURE__ */ jsx2(ComponentAbstraction, { components, children: /* @__PURE__ */ jsx2(OverlayProvider, { children }) })
47
48
  ] }) });
48
49
  }
@@ -198,7 +199,7 @@ var StyledButton = styled3(Clickable_default)`
198
199
 
199
200
  ${(p) => theme((o) => [
200
201
  o.font[variantToFont(p.$variant)].hover.press,
201
- o.bg[variantToBackgraund(p.$variant)].hover.press,
202
+ o.bg[variantToBackground(p.$variant)].hover.press,
202
203
  o.typography(14).bold.preserveHalfLeading,
203
204
  o.padding.horizontal(p.$size === "M" ? 24 : 16),
204
205
  o.disabled,
@@ -209,7 +210,7 @@ var StyledButton = styled3(Clickable_default)`
209
210
  /* よく考えたらheight=32って定義が存在しないな... */
210
211
  height: ${(p) => p.$size === "M" ? 40 : 32}px;
211
212
  `;
212
- function variantToBackgraund(variant) {
213
+ function variantToBackground(variant) {
213
214
  switch (variant) {
214
215
  case "Overlay":
215
216
  return "surface4";
@@ -1532,7 +1533,7 @@ var LoadingSpinnerRoot = styled13.div.attrs({ role: "progressbar" })`
1532
1533
  transparent ? o.bg.transparent : o.bg.background1
1533
1534
  ])}
1534
1535
  `;
1535
- var scaleout = keyframes`
1536
+ var scaleOut = keyframes`
1536
1537
  from {
1537
1538
  transform: scale(0);
1538
1539
  opacity: 1;
@@ -1548,7 +1549,7 @@ var Icon2 = styled13.div.attrs({ role: "presentation" })`
1548
1549
  height: 1em;
1549
1550
  border-radius: 1em;
1550
1551
  background-color: currentColor;
1551
- animation: ${scaleout} 1s both ease-out;
1552
+ animation: ${scaleOut} 1s both ease-out;
1552
1553
  animation-iteration-count: ${(p) => p.once ? 1 : "infinite"};
1553
1554
 
1554
1555
  &[data-reset-animation] {