@parrot-co/parrot-ui 0.0.70 → 0.0.72

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/main.js CHANGED
@@ -48,6 +48,7 @@ $parcel$export(module.exports, "Tabs", () => $33f331db51cbeb3d$export$1aaa3deaa9
48
48
  $parcel$export(module.exports, "Table", () => $3dd82f03c348455b$export$54ec01a60f47d33d);
49
49
  $parcel$export(module.exports, "Timeline", () => $c07c6db9734c74af$export$e6a97ba2cae5bb94);
50
50
  $parcel$export(module.exports, "Modal", () => $ceb05569908c0e0d$export$2b77a92f1a5ad772);
51
+ $parcel$export(module.exports, "Space", () => $78991f4fdd965321$export$eef1e68107c58ef2);
51
52
  $parcel$export(module.exports, "parrot", () => $80923bc9c1ba824c$export$3817b7a54a07cec7);
52
53
  $parcel$export(module.exports, "ParrotTheme", () => $80923bc9c1ba824c$export$bca14c5b3b88a9c9);
53
54
  $parcel$export(module.exports, "ParrotThemeConfig", () => $80923bc9c1ba824c$export$e506a1d27d1eaa20);
@@ -1154,7 +1155,7 @@ function $02a166a5043d2558$export$ccdcc3b9d72a654(color, variant) {
1154
1155
  background: "transparent",
1155
1156
  color: `$${color}11`,
1156
1157
  fill: `$${color}11`,
1157
- border: `1.5px solid $${color}5`,
1158
+ border: `1px solid $${color}5`,
1158
1159
  "&:focus": {
1159
1160
  boxShadow: $02a166a5043d2558$export$71074ab0ed740397(color)
1160
1161
  }
@@ -1538,8 +1539,8 @@ const $04e5d96aee536e27$var$Socket = (0, $80923bc9c1ba824c$export$3817b7a54a07ce
1538
1539
  }
1539
1540
  }
1540
1541
  });
1541
- const $04e5d96aee536e27$var$Sockets = /*#__PURE__*/ (0, ($parcel$interopDefault($E4F9t$react))).forwardRef(({ append: append , prepend: prepend , children: children , ...props }, ref)=>{
1542
- return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $04e5d96aee536e27$import$867d6c90a4013129$ffb0004e005737fa), {
1542
+ function $04e5d96aee536e27$var$Sockets({ append: append , prepend: prepend , children: children }) {
1543
+ return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $E4F9t$reactjsxruntime.Fragment), {
1543
1544
  children: [
1544
1545
  prepend && /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)($04e5d96aee536e27$var$Socket, {
1545
1546
  side: "left",
@@ -1554,15 +1555,82 @@ const $04e5d96aee536e27$var$Sockets = /*#__PURE__*/ (0, ($parcel$interopDefault(
1554
1555
  })
1555
1556
  ]
1556
1557
  });
1557
- });
1558
- $04e5d96aee536e27$var$Sockets.displayName = "Sockets";
1558
+ }
1559
1559
  var $04e5d96aee536e27$export$2e2bcd8739ae039 = $04e5d96aee536e27$var$Sockets;
1560
1560
 
1561
1561
 
1562
1562
 
1563
1563
 
1564
1564
 
1565
- const $a40dc702bc0ad3b7$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, ($parcel$interopDefault($E4F9t$react))).forwardRef(({ label: label , error: error , appearance: appearance , size: size , shape: shape , append: append , prepend: prepend , description: description , css: css , isDisabled: isDisabled , validationStatus: validationStatus , ...props }, ref)=>{
1565
+
1566
+
1567
+
1568
+
1569
+ const $78991f4fdd965321$export$30d85e96e785900a = (0, $80923bc9c1ba824c$export$3817b7a54a07cec7)((0, $00118e4526047a1f$export$2e2bcd8739ae039), {
1570
+ variants: {
1571
+ compact: {
1572
+ true: {
1573
+ ".space-item:not(.space-item-first, .space-item-last)": {
1574
+ borderRadius: 0
1575
+ },
1576
+ ".space-item:not(.space-item-end)": {
1577
+ marginInlineEnd: -1
1578
+ },
1579
+ ".space-item-first": {
1580
+ borderStartEndRadius: 0,
1581
+ borderEndEndRadius: 0
1582
+ },
1583
+ ".space-item-last": {
1584
+ borderStartStartRadius: 0,
1585
+ borderEndStartRadius: 0
1586
+ },
1587
+ ".compact-item-wrapper-adjust": {
1588
+ marginInlineEnd: -1
1589
+ }
1590
+ }
1591
+ }
1592
+ }
1593
+ });
1594
+ const $78991f4fdd965321$var$SpaceContext = /*#__PURE__*/ $E4F9t$react.createContext({
1595
+ classNames: {},
1596
+ compactItemWrapperAdjust: ""
1597
+ });
1598
+ function $78991f4fdd965321$export$eef1e68107c58ef2({ children: children , compact: compact , gap: gap , ...props }) {
1599
+ const childrenCount = $E4F9t$react.Children.count(children);
1600
+ const nodes = $E4F9t$react.useMemo(()=>{
1601
+ return $E4F9t$react.Children.map(children, (child, index)=>{
1602
+ const isFirstChild = index == 0;
1603
+ const isLastChild = index == childrenCount - 1;
1604
+ if (!/*#__PURE__*/ $E4F9t$react.isValidElement(child)) return null;
1605
+ return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)($78991f4fdd965321$var$SpaceContext.Provider, {
1606
+ value: {
1607
+ classNames: {
1608
+ "space-item-first": isFirstChild,
1609
+ "space-item-last": isLastChild,
1610
+ "space-item": true
1611
+ },
1612
+ compactItemWrapperAdjust: isLastChild ? "" : "compact-item-wrapper-adjust"
1613
+ },
1614
+ children: child
1615
+ });
1616
+ });
1617
+ }, []);
1618
+ const realGap = compact ? undefined : gap;
1619
+ return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)($78991f4fdd965321$export$30d85e96e785900a, {
1620
+ gap: realGap,
1621
+ ...props,
1622
+ compact: compact,
1623
+ children: nodes
1624
+ });
1625
+ }
1626
+ function $78991f4fdd965321$export$450c36e0b0e62ccd() {
1627
+ return $E4F9t$react.useContext($78991f4fdd965321$var$SpaceContext);
1628
+ }
1629
+
1630
+
1631
+
1632
+ const $a40dc702bc0ad3b7$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, ($parcel$interopDefault($E4F9t$react))).forwardRef(({ label: label , error: error , appearance: appearance , size: size , shape: shape , append: append , prepend: prepend , description: description , css: css , isDisabled: isDisabled , validationStatus: validationStatus , className: className , ...props }, ref)=>{
1633
+ const space = (0, $78991f4fdd965321$export$450c36e0b0e62ccd)();
1566
1634
  const inputRef = (0, ($parcel$interopDefault($E4F9t$react))).useRef(null);
1567
1635
  const { labelProps: labelProps , inputProps: inputProps , errorMessageProps: errorMessageProps , descriptionProps: descriptionProps } = (0, $E4F9t$reactaria.useTextField)({
1568
1636
  ...props,
@@ -1584,7 +1652,15 @@ const $a40dc702bc0ad3b7$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, ($parcel$int
1584
1652
  function captureFocus() {
1585
1653
  inputRef.current?.focus();
1586
1654
  }
1655
+ const commonProps = {
1656
+ className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)({
1657
+ "input-wrapper": true,
1658
+ [className ?? ""]: !!className,
1659
+ ...space.classNames
1660
+ })
1661
+ };
1587
1662
  return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $00118e4526047a1f$export$2e2bcd8739ae039), {
1663
+ className: space.compactItemWrapperAdjust,
1588
1664
  css: css,
1589
1665
  stack: true,
1590
1666
  ref: ref,
@@ -1596,10 +1672,12 @@ const $a40dc702bc0ad3b7$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, ($parcel$int
1596
1672
  children: label
1597
1673
  }),
1598
1674
  !hasAddOns && /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $61604ea65ee6bc29$export$a195049fd73b3fe2), {
1675
+ ...commonProps,
1599
1676
  ...variantProps,
1600
1677
  ...inputProps
1601
1678
  }),
1602
1679
  hasAddOns && /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $61604ea65ee6bc29$export$479bffa770f4fc8b), {
1680
+ ...commonProps,
1603
1681
  onClick: captureFocus,
1604
1682
  hasPrependComponent: !!prepend,
1605
1683
  ...variantProps,
@@ -1660,6 +1738,12 @@ const $c68076e2eb9f7d63$export$303ef672e091d99 = (0, $80923bc9c1ba824c$export$db
1660
1738
  pointerEvents: "none"
1661
1739
  },
1662
1740
  variants: {
1741
+ isIconButton: {
1742
+ true: {
1743
+ width: "$$button-base-height",
1744
+ px: 0
1745
+ }
1746
+ },
1663
1747
  appearance: {
1664
1748
  unstyled: {
1665
1749
  background: "none",
@@ -1680,6 +1764,9 @@ const $c68076e2eb9f7d63$export$303ef672e091d99 = (0, $80923bc9c1ba824c$export$db
1680
1764
  sharp: {},
1681
1765
  round: {
1682
1766
  borderRadius: "calc($$button-base-height / 4)"
1767
+ },
1768
+ circle: {
1769
+ borderRadius: "50%"
1683
1770
  }
1684
1771
  },
1685
1772
  size: {
@@ -1792,33 +1879,138 @@ $69cfc2fd5ce00dfd$export$3b0d6d7590275603.displayName = "Loader";
1792
1879
 
1793
1880
 
1794
1881
 
1795
- const $8d4373b1a05e63fb$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$interopDefault($E4F9t$react))).forwardRef(({ color: color , variant: variant , append: append , prepend: prepend , size: size = "sm" , children: children , as: as = "button" , css: css , className: className , appearance: appearance , isLoading: isLoading , shape: shape , ...props }, ref)=>{
1882
+
1883
+
1884
+
1885
+
1886
+
1887
+ function $d7cee7e3a6144235$export$30a06c8d3562193f(object, keys) {
1888
+ return Object.keys(object).reduce((obj, key)=>{
1889
+ if (keys.includes(key)) return {
1890
+ ...obj
1891
+ };
1892
+ return {
1893
+ ...obj,
1894
+ [key]: object[key]
1895
+ };
1896
+ }, {});
1897
+ }
1898
+ function $d7cee7e3a6144235$export$357523c63a2253b9(object, keys) {
1899
+ // TODO handle invalid objects properly
1900
+ if (!object) return {};
1901
+ return Object.keys(object).reduce((obj, key)=>{
1902
+ if (keys.includes(key)) return {
1903
+ ...obj,
1904
+ [key]: object[key]
1905
+ };
1906
+ return {
1907
+ ...obj
1908
+ };
1909
+ }, {});
1910
+ }
1911
+ function $d7cee7e3a6144235$export$65980d18b75784e2(object, keys) {
1912
+ const picked = $d7cee7e3a6144235$export$357523c63a2253b9(object, keys);
1913
+ const omitted = $d7cee7e3a6144235$export$30a06c8d3562193f(object, keys);
1914
+ return [
1915
+ picked,
1916
+ omitted
1917
+ ];
1918
+ }
1919
+ function $d7cee7e3a6144235$export$d2dae087199d2383(object) {
1920
+ return Object.keys(object).reduce((obj, key)=>{
1921
+ if (object[key] == null) return {
1922
+ ...obj
1923
+ };
1924
+ return {
1925
+ ...obj,
1926
+ [key]: object[key]
1927
+ };
1928
+ }, {});
1929
+ }
1930
+
1931
+
1932
+ const $89714b081cb78a2f$var$ButtonGroupContext = /*#__PURE__*/ $E4F9t$react.createContext({});
1933
+ function $89714b081cb78a2f$export$69b1032f2ecdf404({ color: color , variant: variant , size: size , compact: compact , shape: shape , gap: gap , children: children , idleColor: idleColor , activeColor: activeColor , idleVariant: idleVariant , activeVariant: activeVariant , isToggle: isToggle }) {
1934
+ const cleanProps = (0, $d7cee7e3a6144235$export$d2dae087199d2383)({
1935
+ color: color,
1936
+ variant: variant,
1937
+ size: size,
1938
+ shape: shape,
1939
+ idleColor: idleColor,
1940
+ activeColor: activeColor,
1941
+ idleVariant: idleVariant,
1942
+ activeVariant: activeVariant,
1943
+ isToggle: isToggle
1944
+ });
1945
+ return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)($89714b081cb78a2f$var$ButtonGroupContext.Provider, {
1946
+ value: cleanProps,
1947
+ children: /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $78991f4fdd965321$export$eef1e68107c58ef2), {
1948
+ gap: gap,
1949
+ compact: compact,
1950
+ children: children
1951
+ })
1952
+ });
1953
+ }
1954
+ function $89714b081cb78a2f$export$749e21be8b14b968() {
1955
+ return $E4F9t$react.useContext($89714b081cb78a2f$var$ButtonGroupContext);
1956
+ }
1957
+
1958
+
1959
+
1960
+
1961
+ const $8d4373b1a05e63fb$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$interopDefault($E4F9t$react))).forwardRef((props, ref)=>{
1962
+ const space = (0, $78991f4fdd965321$export$450c36e0b0e62ccd)();
1963
+ const buttonGroupProps = (0, $89714b081cb78a2f$export$749e21be8b14b968)();
1964
+ const { color: color , variant: variant , append: append , prepend: prepend , size: size = "sm" , children: children , as: as = "button" , css: css , className: className , appearance: appearance , isLoading: isLoading , shape: shape , isToggle: isToggle , activeColor: activeColor = "violet" , activeVariant: activeVariant = "solid" , idleColor: idleColor = "gray" , idleVariant: idleVariant = "outline" , isIconButton: isIconButton , ...otherProps } = {
1965
+ ...buttonGroupProps,
1966
+ ...props
1967
+ };
1968
+ const state = (0, $E4F9t$reactstately.useToggleState)({
1969
+ children: children,
1970
+ ...otherProps
1971
+ });
1796
1972
  const buttonRef = (0, ($parcel$interopDefault($E4F9t$react))).useRef(null);
1797
- const { buttonProps: buttonProps } = (0, $E4F9t$reactaria.useButton)({
1798
- ...props,
1973
+ const { buttonProps: buttonProps } = (0, $E4F9t$reactaria.useToggleButton)({
1974
+ ...otherProps,
1799
1975
  elementType: as,
1800
1976
  children: children
1801
- }, buttonRef);
1977
+ }, state, buttonRef);
1802
1978
  const commonProps = {
1803
- className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)([
1804
- className,
1805
- "button"
1806
- ]),
1979
+ className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)({
1980
+ [className ?? ""]: !!className,
1981
+ button: true,
1982
+ ...space.classNames
1983
+ }),
1807
1984
  css: css,
1808
1985
  as: as,
1809
1986
  ref: (0, $d5b2fb178ea6b1b9$export$c9058316764c140e)(ref, buttonRef)
1810
1987
  };
1988
+ function getColor() {
1989
+ if (!state.isSelected && isToggle) return {
1990
+ color: idleColor,
1991
+ variant: idleVariant
1992
+ };
1993
+ if (state.isSelected && isToggle) return {
1994
+ color: activeColor,
1995
+ variant: activeVariant
1996
+ };
1997
+ return {
1998
+ variant: variant,
1999
+ color: color
2000
+ };
2001
+ }
1811
2002
  if (appearance === "unstyled") return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $c68076e2eb9f7d63$export$3167f6ecaaaa3457), {
1812
2003
  ...commonProps,
1813
2004
  ...buttonProps,
1814
2005
  children: children
1815
2006
  });
1816
2007
  return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $c68076e2eb9f7d63$export$2d5d2ba3c7c8c40b), {
2008
+ isIconButton: isIconButton,
1817
2009
  shape: shape,
1818
2010
  "data-loading": isLoading,
1819
2011
  "aria-busy": isLoading,
1820
- color: color,
1821
- variant: variant,
2012
+ color: getColor().color,
2013
+ variant: getColor().variant,
1822
2014
  size: size,
1823
2015
  ...commonProps,
1824
2016
  ...buttonProps,
@@ -1845,75 +2037,17 @@ const $8d4373b1a05e63fb$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$int
1845
2037
  });
1846
2038
  });
1847
2039
  $8d4373b1a05e63fb$export$353f5b6fc5456de1.displayName = "Button";
2040
+ $8d4373b1a05e63fb$export$353f5b6fc5456de1.Group = (0, $89714b081cb78a2f$export$69b1032f2ecdf404);
1848
2041
 
1849
2042
 
1850
2043
 
1851
2044
 
1852
2045
 
1853
-
1854
-
1855
-
1856
- const $626c660fba87c9a3$var$StyledButton = (0, $80923bc9c1ba824c$export$3817b7a54a07cec7)("button", (0, $02a166a5043d2558$export$5a7eb6284e7684f5), {
1857
- display: "inline-flex",
1858
- alignItems: "center",
1859
- justifyContent: "center",
1860
- overflow: "hidden",
1861
- fontFamily: "$sans",
1862
- boxSizing: "border-box",
1863
- outline: "none",
1864
- border: "none",
1865
- padding: 0,
1866
- flexShrink: 0,
1867
- defaultVariants: {
1868
- size: "md",
1869
- shape: "circle"
1870
- },
1871
- variants: {
1872
- shape: {
1873
- circle: {
1874
- borderRadius: "50% !important"
1875
- },
1876
- square: {}
1877
- },
1878
- size: {
1879
- xs: {
1880
- size: 24,
1881
- borderRadius: 6
1882
- },
1883
- sm: {
1884
- size: 32,
1885
- borderRadius: 6
1886
- },
1887
- md: {
1888
- size: 40,
1889
- borderRadius: 6
1890
- },
1891
- lg: {
1892
- size: 48,
1893
- borderRadius: 8
1894
- },
1895
- xl: {
1896
- size: 56,
1897
- borderRadius: 8
1898
- }
1899
- }
1900
- }
1901
- });
1902
- const $626c660fba87c9a3$export$c25acd513dcc8062 = /*#__PURE__*/ $E4F9t$react.forwardRef(({ color: color = "violet" , variant: variant = "solid" , as: as = "button" , css: css , size: size , shape: shape , ...props }, ref)=>{
1903
- const buttonRef = $E4F9t$react.useRef(null);
1904
- const { buttonProps: buttonProps } = (0, $E4F9t$reactaria.useButton)({
2046
+ const $626c660fba87c9a3$export$c25acd513dcc8062 = /*#__PURE__*/ $E4F9t$react.forwardRef((props, ref)=>{
2047
+ return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $8d4373b1a05e63fb$export$353f5b6fc5456de1), {
2048
+ isIconButton: true,
2049
+ ref: ref,
1905
2050
  ...props,
1906
- elementType: as
1907
- }, buttonRef);
1908
- return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)($626c660fba87c9a3$var$StyledButton, {
1909
- as: as,
1910
- shape: shape,
1911
- size: size,
1912
- variant: variant,
1913
- color: color,
1914
- ref: (0, $d5b2fb178ea6b1b9$export$c9058316764c140e)(buttonRef, ref),
1915
- css: css,
1916
- ...buttonProps,
1917
2051
  children: props.children
1918
2052
  });
1919
2053
  });
@@ -1927,6 +2061,8 @@ $626c660fba87c9a3$export$c25acd513dcc8062.displayName = "IconButton";
1927
2061
 
1928
2062
 
1929
2063
 
2064
+
2065
+
1930
2066
  const $502180e4aeb6f85b$var$Wrapper = (0, $80923bc9c1ba824c$export$3817b7a54a07cec7)("div", {
1931
2067
  position: "relative",
1932
2068
  width: "100%"
@@ -1977,7 +2113,8 @@ const $502180e4aeb6f85b$var$Steppers = (0, $80923bc9c1ba824c$export$3817b7a54a07
1977
2113
  }
1978
2114
  });
1979
2115
  const $502180e4aeb6f85b$export$6bf0cd3a219bbade = /*#__PURE__*/ (0, ($parcel$interopDefault($E4F9t$react))).forwardRef((props, ref)=>{
1980
- const { error: error , label: label , description: description , appearance: appearance , size: size , append: append , hideSteppers: hideSteppers } = props;
2116
+ const { error: error , label: label , description: description , appearance: appearance , size: size , append: append , hideSteppers: hideSteppers , css: css } = props;
2117
+ const space = (0, $78991f4fdd965321$export$450c36e0b0e62ccd)();
1981
2118
  const { locale: locale } = (0, $E4F9t$reactaria.useLocale)();
1982
2119
  const state = (0, $E4F9t$reactstately.useNumberFieldState)({
1983
2120
  ...props,
@@ -1987,6 +2124,8 @@ const $502180e4aeb6f85b$export$6bf0cd3a219bbade = /*#__PURE__*/ (0, ($parcel$int
1987
2124
  const { labelProps: labelProps , groupProps: groupProps , inputProps: inputProps , incrementButtonProps: incrementButtonProps , decrementButtonProps: decrementButtonProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = (0, $E4F9t$reactaria.useNumberField)(props, state, inputRef);
1988
2125
  //TODO clean up append and prepend component placement and positioning
1989
2126
  return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $00118e4526047a1f$export$2e2bcd8739ae039), {
2127
+ css: css,
2128
+ className: space.compactItemWrapperAdjust,
1990
2129
  stack: true,
1991
2130
  gap: 1,
1992
2131
  children: [
@@ -1999,6 +2138,10 @@ const $502180e4aeb6f85b$export$6bf0cd3a219bbade = /*#__PURE__*/ (0, ($parcel$int
1999
2138
  ref: ref,
2000
2139
  children: [
2001
2140
  /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $61604ea65ee6bc29$export$a195049fd73b3fe2), {
2141
+ className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)({
2142
+ "number-input": true,
2143
+ ...space.classNames
2144
+ }),
2002
2145
  hasError: !!error,
2003
2146
  appearance: appearance,
2004
2147
  size: size,
@@ -2844,7 +2987,10 @@ $3347a410c0691704$export$5b6b19405a83ff9d.displayName = "Popover";
2844
2987
 
2845
2988
 
2846
2989
 
2990
+
2991
+
2847
2992
  const $0a4561d925fa922e$export$cd0225d99c675387 = /*#__PURE__*/ (0, ($parcel$interopDefault($E4F9t$react))).forwardRef((props, ref)=>{
2993
+ const space = (0, $78991f4fdd965321$export$450c36e0b0e62ccd)();
2848
2994
  const { renderValue: renderValue , renderOption: renderOption , placeholder: placeholder = "Select an option" , appearance: appearance , size: size , css: css , labelKey: labelKey , label: label } = props;
2849
2995
  const state = (0, $E4F9t$reactstately.useSelectState)(props);
2850
2996
  const selectRef = (0, ($parcel$interopDefault($E4F9t$react))).useRef(null);
@@ -2853,6 +2999,7 @@ const $0a4561d925fa922e$export$cd0225d99c675387 = /*#__PURE__*/ (0, ($parcel$int
2853
2999
  const { focusProps: focusProps , isFocused: isFocused } = (0, $E4F9t$reactaria.useFocusRing)();
2854
3000
  const hasSelection = state.selectedItem != null;
2855
3001
  return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $00118e4526047a1f$export$2e2bcd8739ae039), {
3002
+ className: space.compactItemWrapperAdjust,
2856
3003
  stretchX: true,
2857
3004
  css: css,
2858
3005
  position: "relative",
@@ -2872,6 +3019,10 @@ const $0a4561d925fa922e$export$cd0225d99c675387 = /*#__PURE__*/ (0, ($parcel$int
2872
3019
  name: props.name
2873
3020
  }),
2874
3021
  /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $6f8af3bc5f5b1477$export$3ac1e88a1c0b9f1), {
3022
+ className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)({
3023
+ "select-trigger": true,
3024
+ ...space.classNames
3025
+ }),
2875
3026
  type: "button",
2876
3027
  "data-focused": isFocused,
2877
3028
  appearance: appearance,
@@ -3079,39 +3230,6 @@ $913821b64d4cfe80$export$d9781c7894a82487.displayName = "DateField";
3079
3230
 
3080
3231
 
3081
3232
 
3082
- function $d7cee7e3a6144235$export$30a06c8d3562193f(object, keys) {
3083
- return Object.keys(object).reduce((obj, key)=>{
3084
- if (keys.includes(key)) return {
3085
- ...obj
3086
- };
3087
- return {
3088
- ...obj,
3089
- [key]: object[key]
3090
- };
3091
- }, {});
3092
- }
3093
- function $d7cee7e3a6144235$export$357523c63a2253b9(object, keys) {
3094
- // TODO handle invalid objects properly
3095
- if (!object) return {};
3096
- return Object.keys(object).reduce((obj, key)=>{
3097
- if (keys.includes(key)) return {
3098
- ...obj,
3099
- [key]: object[key]
3100
- };
3101
- return {
3102
- ...obj
3103
- };
3104
- }, {});
3105
- }
3106
- function $d7cee7e3a6144235$export$65980d18b75784e2(object, keys) {
3107
- const picked = $d7cee7e3a6144235$export$357523c63a2253b9(object, keys);
3108
- const omitted = $d7cee7e3a6144235$export$30a06c8d3562193f(object, keys);
3109
- return [
3110
- picked,
3111
- omitted
3112
- ];
3113
- }
3114
-
3115
3233
 
3116
3234
  function $9784c62924ae0fea$export$d02631cccf789723(start = 0, end, step = 1) {
3117
3235
  const result = [];
@@ -3156,7 +3274,7 @@ const $0ec4a031b4f9a702$export$e1aef45b828286de = /*#__PURE__*/ $E4F9t$react.for
3156
3274
  className: "header",
3157
3275
  children: [
3158
3276
  /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $626c660fba87c9a3$export$c25acd513dcc8062), {
3159
- shape: "square",
3277
+ shape: "sharp",
3160
3278
  size: "xs",
3161
3279
  color: "white",
3162
3280
  ...prevButtonProps,
@@ -3172,7 +3290,7 @@ const $0ec4a031b4f9a702$export$e1aef45b828286de = /*#__PURE__*/ $E4F9t$react.for
3172
3290
  children: title
3173
3291
  }),
3174
3292
  /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $626c660fba87c9a3$export$c25acd513dcc8062), {
3175
- shape: "square",
3293
+ shape: "sharp",
3176
3294
  size: "xs",
3177
3295
  color: "white",
3178
3296
  ...nextButtonProps,
@@ -3274,9 +3392,12 @@ function $2dd111a4532b252d$export$85930906f541ddb8(date) {
3274
3392
  }
3275
3393
 
3276
3394
 
3395
+
3396
+
3277
3397
  const $4d607687132d9f4f$export$5109c6dd95d8fb00 = /*#__PURE__*/ $E4F9t$react.forwardRef(({ appearance: appearance = "filled" , size: size = "md" , css: css , numberOfMonths: numberOfMonths , value: value , onChange: onChange , defaultValue: defaultValue , dropdownIcon: dropdownIcon = /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $E4F9t$reacticonshi.HiOutlineCalendar), {
3278
3398
  size: 16
3279
3399
  }) , ...props }, ref)=>{
3400
+ const space = (0, $78991f4fdd965321$export$450c36e0b0e62ccd)();
3280
3401
  function _onChange(date) {
3281
3402
  onChange?.(new Date(date.year, date.month, date.day), date);
3282
3403
  }
@@ -3300,6 +3421,8 @@ const $4d607687132d9f4f$export$5109c6dd95d8fb00 = /*#__PURE__*/ $E4F9t$react.for
3300
3421
  const pickerRef = $E4F9t$react.useRef(null);
3301
3422
  const { groupProps: groupProps , calendarProps: calendarProps , fieldProps: fieldProps , buttonProps: buttonProps , errorMessageProps: errorMessageProps , labelProps: labelProps } = (0, $E4F9t$reactaria.useDatePicker)(newPropsWithProxies, state, pickerRef);
3302
3423
  return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $00118e4526047a1f$export$2e2bcd8739ae039), {
3424
+ className: space.compactItemWrapperAdjust,
3425
+ css: css,
3303
3426
  stretchX: true,
3304
3427
  stack: true,
3305
3428
  gap: 1,
@@ -3311,12 +3434,15 @@ const $4d607687132d9f4f$export$5109c6dd95d8fb00 = /*#__PURE__*/ $E4F9t$react.for
3311
3434
  /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $00118e4526047a1f$export$2e2bcd8739ae039), {
3312
3435
  ref: ref,
3313
3436
  gap: 10,
3314
- css: css,
3315
3437
  stretchX: true,
3316
3438
  inline: true,
3317
3439
  stack: true,
3318
3440
  children: [
3319
3441
  /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $99240aa62a70fb69$export$79e84280796e5e38), {
3442
+ className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)({
3443
+ "date-picker-trigger": true,
3444
+ ...space.classNames
3445
+ }),
3320
3446
  ref: pickerRef,
3321
3447
  justify: "between",
3322
3448
  align: "center",
@@ -5148,4 +5274,5 @@ $ceb05569908c0e0d$export$2b77a92f1a5ad772.useModal = $ceb05569908c0e0d$export$33
5148
5274
 
5149
5275
 
5150
5276
 
5277
+
5151
5278
  //# sourceMappingURL=main.js.map