@charcoal-ui/react 3.0.0-beta.4 → 3.0.0-beta.6

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
@@ -870,7 +870,7 @@ var FieldLabelWrapper = styled8.div`
870
870
  // src/components/TextField/index.tsx
871
871
  import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
872
872
  var TextField = React5.forwardRef(
873
- function SingleLineTextFieldInner({ onChange, ...props }, forwardRef16) {
873
+ function SingleLineTextFieldInner({ onChange, ...props }, forwardRef17) {
874
874
  const {
875
875
  className,
876
876
  showLabel = false,
@@ -960,7 +960,7 @@ var TextField = React5.forwardRef(
960
960
  /* @__PURE__ */ jsx10(
961
961
  StyledInput,
962
962
  {
963
- ref: mergeRefs(forwardRef16, ariaRef),
963
+ ref: mergeRefs(forwardRef17, ariaRef),
964
964
  invalid,
965
965
  extraLeftPadding: prefixWidth,
966
966
  extraRightPadding: suffixWidth,
@@ -1065,11 +1065,11 @@ var AssistiveText = styled9.p`
1065
1065
  // src/components/TextArea/index.tsx
1066
1066
  import { useTextField as useTextField2 } from "@react-aria/textfield";
1067
1067
  import { useVisuallyHidden as useVisuallyHidden2 } from "@react-aria/visually-hidden";
1068
- import React6, { useCallback as useCallback4, useEffect as useEffect2, useRef as useRef2, useState as useState2 } from "react";
1068
+ import { forwardRef as forwardRef10, useCallback as useCallback4, useEffect as useEffect2, useRef as useRef2, useState as useState2 } from "react";
1069
1069
  import styled10, { css as css3 } from "styled-components";
1070
1070
  import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
1071
- var TextArea = React6.forwardRef(
1072
- function TextAreaInner({ onChange, ...props }, forwardRef16) {
1071
+ var TextArea = forwardRef10(
1072
+ function TextAreaInner({ onChange, ...props }, forwardRef17) {
1073
1073
  const {
1074
1074
  className,
1075
1075
  showCount = false,
@@ -1159,7 +1159,7 @@ var TextArea = React6.forwardRef(
1159
1159
  /* @__PURE__ */ jsx11(
1160
1160
  StyledTextarea,
1161
1161
  {
1162
- ref: mergeRefs(textareaRef, forwardRef16, ariaRef),
1162
+ ref: mergeRefs(textareaRef, forwardRef17, ariaRef),
1163
1163
  rows,
1164
1164
  noBottomPadding: showCount,
1165
1165
  ...inputProps
@@ -1197,6 +1197,7 @@ var StyledTextareaContainer = styled10.div`
1197
1197
 
1198
1198
  ${(p) => theme((o) => [
1199
1199
  o.bg.surface3.hover,
1200
+ o.outline.default.focus,
1200
1201
  p.invalid && o.outline.assertive,
1201
1202
  o.font.text2,
1202
1203
  o.borderRadius(4)
@@ -1263,10 +1264,10 @@ var AssistiveText2 = styled10.p`
1263
1264
  `;
1264
1265
 
1265
1266
  // src/components/Icon/index.tsx
1266
- import * as React7 from "react";
1267
+ import * as React6 from "react";
1267
1268
  import "@charcoal-ui/icons";
1268
1269
  import { jsx as jsx12 } from "react/jsx-runtime";
1269
- var Icon = React7.forwardRef(function IconInner({ name, scale, unsafeNonGuidelineScale, className, ...rest }, ref) {
1270
+ var Icon = React6.forwardRef(function IconInner({ name, scale, unsafeNonGuidelineScale, className, ...rest }, ref) {
1270
1271
  return /* @__PURE__ */ jsx12(
1271
1272
  "pixiv-icon",
1272
1273
  {
@@ -1282,8 +1283,8 @@ var Icon = React7.forwardRef(function IconInner({ name, scale, unsafeNonGuidelin
1282
1283
  var Icon_default = Icon;
1283
1284
 
1284
1285
  // src/components/Modal/index.tsx
1285
- import { useContext as useContext4, forwardRef as forwardRef11, memo as memo4 } from "react";
1286
- import * as React8 from "react";
1286
+ import { useContext as useContext4, forwardRef as forwardRef12, memo as memo4 } from "react";
1287
+ import * as React7 from "react";
1287
1288
  import {
1288
1289
  Overlay,
1289
1290
  useModalOverlay,
@@ -1307,7 +1308,7 @@ import { animated, useTransition, easings } from "react-spring";
1307
1308
  import { useObjectRef as useObjectRef2 } from "@react-aria/utils";
1308
1309
  import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
1309
1310
  var DEFAULT_Z_INDEX = 10;
1310
- var Modal = forwardRef11(function ModalInner({ children, zIndex = DEFAULT_Z_INDEX, portalContainer, ...props }, external) {
1311
+ var Modal = forwardRef12(function ModalInner({ children, zIndex = DEFAULT_Z_INDEX, portalContainer, ...props }, external) {
1311
1312
  const {
1312
1313
  title,
1313
1314
  size = "M",
@@ -1395,7 +1396,7 @@ var Modal = forwardRef11(function ModalInner({ children, zIndex = DEFAULT_Z_INDE
1395
1396
  );
1396
1397
  });
1397
1398
  var Modal_default = memo4(Modal);
1398
- var ModalContext = React8.createContext({
1399
+ var ModalContext = React7.createContext({
1399
1400
  titleProps: {},
1400
1401
  title: "",
1401
1402
  close: void 0,
@@ -1508,10 +1509,10 @@ var ModalButtons = styled12.div`
1508
1509
  `;
1509
1510
 
1510
1511
  // src/components/LoadingSpinner/index.tsx
1511
- import { forwardRef as forwardRef12, useImperativeHandle, useRef as useRef3, memo as memo5 } from "react";
1512
+ import { forwardRef as forwardRef13, useImperativeHandle, useRef as useRef3, memo as memo5 } from "react";
1512
1513
  import styled13, { keyframes } from "styled-components";
1513
1514
  import { jsx as jsx15 } from "react/jsx-runtime";
1514
- var LoadingSpinner = forwardRef12(
1515
+ var LoadingSpinner = forwardRef13(
1515
1516
  function LoadingSpinnerInner({ size = 48, padding = 16, transparent = false, className }, ref) {
1516
1517
  return /* @__PURE__ */ jsx15(
1517
1518
  LoadingSpinnerRoot,
@@ -1564,7 +1565,7 @@ var Icon2 = styled13.div.attrs({ role: "presentation" })`
1564
1565
  animation: none;
1565
1566
  }
1566
1567
  `;
1567
- var LoadingSpinnerIcon = forwardRef12(
1568
+ var LoadingSpinnerIcon = forwardRef13(
1568
1569
  function LoadingSpinnerIcon2({ once = false }, ref) {
1569
1570
  const iconRef = useRef3(null);
1570
1571
  useImperativeHandle(ref, () => ({
@@ -1671,12 +1672,12 @@ function DropdownPopover({ children, ...props }) {
1671
1672
  }
1672
1673
 
1673
1674
  // src/components/DropdownSelector/utils/findPreviewRecursive.tsx
1674
- import React10 from "react";
1675
+ import * as React8 from "react";
1675
1676
  function findPreviewRecursive(children, value) {
1676
- const childArray = React10.Children.toArray(children);
1677
+ const childArray = React8.Children.toArray(children);
1677
1678
  for (let i = 0; i < childArray.length; i++) {
1678
1679
  const child = childArray[i];
1679
- if (React10.isValidElement(child)) {
1680
+ if (React8.isValidElement(child)) {
1680
1681
  if ("value" in child.props) {
1681
1682
  const childValue = child.props.value;
1682
1683
  if (childValue === value && "children" in child.props) {
@@ -1712,12 +1713,12 @@ var MenuListContext = createContext5({
1712
1713
  });
1713
1714
 
1714
1715
  // src/components/DropdownSelector/MenuList/internals/getValuesRecursive.tsx
1715
- import React11 from "react";
1716
+ import * as React9 from "react";
1716
1717
  function getValuesRecursive(children, values = []) {
1717
- const childArray = React11.Children.toArray(children);
1718
+ const childArray = React9.Children.toArray(children);
1718
1719
  for (let i = 0; i < childArray.length; i++) {
1719
1720
  const child = childArray[i];
1720
- if (React11.isValidElement(child)) {
1721
+ if (React9.isValidElement(child)) {
1721
1722
  const props = child.props;
1722
1723
  if ("value" in props && typeof props.value === "string") {
1723
1724
  const childValue = props.value;
@@ -2036,7 +2037,7 @@ var StyledLi2 = styled19.li`
2036
2037
  `;
2037
2038
 
2038
2039
  // src/components/SegmentedControl/index.tsx
2039
- import { forwardRef as forwardRef13, memo as memo6, useMemo as useMemo2, useRef as useRef8 } from "react";
2040
+ import { forwardRef as forwardRef14, memo as memo6, useMemo as useMemo2, useRef as useRef8 } from "react";
2040
2041
  import { useRadioGroupState } from "react-stately";
2041
2042
  import {
2042
2043
  useRadio,
@@ -2064,7 +2065,7 @@ var useRadioContext = () => {
2064
2065
 
2065
2066
  // src/components/SegmentedControl/index.tsx
2066
2067
  import { jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
2067
- var SegmentedControl = forwardRef13(
2068
+ var SegmentedControl = forwardRef14(
2068
2069
  function SegmentedControlInner(props, ref) {
2069
2070
  const ariaRadioGroupProps = useMemo2(
2070
2071
  () => ({
@@ -2181,14 +2182,14 @@ var SegmentedLabelInner = styled20.div`
2181
2182
  `;
2182
2183
 
2183
2184
  // src/components/Checkbox/index.tsx
2184
- import { forwardRef as forwardRef14, memo as memo7, useMemo as useMemo3 } from "react";
2185
+ import { forwardRef as forwardRef15, memo as memo7, useMemo as useMemo3 } from "react";
2185
2186
  import styled21, { css as css5 } from "styled-components";
2186
2187
  import { useCheckbox } from "@react-aria/checkbox";
2187
2188
  import { useObjectRef as useObjectRef3 } from "@react-aria/utils";
2188
2189
  import { useToggleState as useToggleState2 } from "react-stately";
2189
2190
  import { disabledSelector as disabledSelector6, px as px3 } from "@charcoal-ui/utils";
2190
2191
  import { jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
2191
- var Checkbox = forwardRef14(
2192
+ var Checkbox = forwardRef15(
2192
2193
  function CheckboxInner(props, ref) {
2193
2194
  const ariaCheckboxProps = useMemo3(
2194
2195
  () => ({
@@ -2277,7 +2278,7 @@ var InputLabel = styled21.div`
2277
2278
  `;
2278
2279
 
2279
2280
  // src/components/TagItem/index.tsx
2280
- import { forwardRef as forwardRef15, memo as memo8, useMemo as useMemo4 } from "react";
2281
+ import { forwardRef as forwardRef16, memo as memo8, useMemo as useMemo4 } from "react";
2281
2282
  import { useObjectRef as useObjectRef4 } from "@react-aria/utils";
2282
2283
  import styled22, { css as css6 } from "styled-components";
2283
2284
  import { disabledSelector as disabledSelector7, px as px4 } from "@charcoal-ui/utils";
@@ -2287,7 +2288,7 @@ var sizeMap = {
2287
2288
  S: 32,
2288
2289
  M: 40
2289
2290
  };
2290
- var TagItem = forwardRef15(
2291
+ var TagItem = forwardRef16(
2291
2292
  function TagItemInner({
2292
2293
  label,
2293
2294
  translatedLabel,