@parrot-co/parrot-ui 0.0.71 → 0.0.73

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
  }
@@ -1561,7 +1562,75 @@ var $04e5d96aee536e27$export$2e2bcd8739ae039 = $04e5d96aee536e27$var$Sockets;
1561
1562
 
1562
1563
 
1563
1564
 
1564
- 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)();
1565
1634
  const inputRef = (0, ($parcel$interopDefault($E4F9t$react))).useRef(null);
1566
1635
  const { labelProps: labelProps , inputProps: inputProps , errorMessageProps: errorMessageProps , descriptionProps: descriptionProps } = (0, $E4F9t$reactaria.useTextField)({
1567
1636
  ...props,
@@ -1583,7 +1652,15 @@ const $a40dc702bc0ad3b7$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, ($parcel$int
1583
1652
  function captureFocus() {
1584
1653
  inputRef.current?.focus();
1585
1654
  }
1655
+ const commonProps = {
1656
+ className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)({
1657
+ "input-wrapper": true,
1658
+ [className ?? ""]: !!className,
1659
+ ...space.classNames
1660
+ })
1661
+ };
1586
1662
  return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $00118e4526047a1f$export$2e2bcd8739ae039), {
1663
+ className: space.compactItemWrapperAdjust,
1587
1664
  css: css,
1588
1665
  stack: true,
1589
1666
  ref: ref,
@@ -1595,10 +1672,12 @@ const $a40dc702bc0ad3b7$export$f5b8910cec6cf069 = /*#__PURE__*/ (0, ($parcel$int
1595
1672
  children: label
1596
1673
  }),
1597
1674
  !hasAddOns && /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $61604ea65ee6bc29$export$a195049fd73b3fe2), {
1675
+ ...commonProps,
1598
1676
  ...variantProps,
1599
1677
  ...inputProps
1600
1678
  }),
1601
1679
  hasAddOns && /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $61604ea65ee6bc29$export$479bffa770f4fc8b), {
1680
+ ...commonProps,
1602
1681
  onClick: captureFocus,
1603
1682
  hasPrependComponent: !!prepend,
1604
1683
  ...variantProps,
@@ -1659,6 +1738,12 @@ const $c68076e2eb9f7d63$export$303ef672e091d99 = (0, $80923bc9c1ba824c$export$db
1659
1738
  pointerEvents: "none"
1660
1739
  },
1661
1740
  variants: {
1741
+ isIconButton: {
1742
+ true: {
1743
+ width: "$$button-base-height",
1744
+ px: 0
1745
+ }
1746
+ },
1662
1747
  appearance: {
1663
1748
  unstyled: {
1664
1749
  background: "none",
@@ -1679,6 +1764,9 @@ const $c68076e2eb9f7d63$export$303ef672e091d99 = (0, $80923bc9c1ba824c$export$db
1679
1764
  sharp: {},
1680
1765
  round: {
1681
1766
  borderRadius: "calc($$button-base-height / 4)"
1767
+ },
1768
+ circle: {
1769
+ borderRadius: "50%"
1682
1770
  }
1683
1771
  },
1684
1772
  size: {
@@ -1791,33 +1879,139 @@ $69cfc2fd5ce00dfd$export$3b0d6d7590275603.displayName = "Loader";
1791
1879
 
1792
1880
 
1793
1881
 
1794
- 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 , css: css }) {
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
+ css: css,
1949
+ gap: gap,
1950
+ compact: compact,
1951
+ children: children
1952
+ })
1953
+ });
1954
+ }
1955
+ function $89714b081cb78a2f$export$749e21be8b14b968() {
1956
+ return $E4F9t$react.useContext($89714b081cb78a2f$var$ButtonGroupContext);
1957
+ }
1958
+
1959
+
1960
+
1961
+
1962
+ const $8d4373b1a05e63fb$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$interopDefault($E4F9t$react))).forwardRef((props, ref)=>{
1963
+ const space = (0, $78991f4fdd965321$export$450c36e0b0e62ccd)();
1964
+ const buttonGroupProps = (0, $89714b081cb78a2f$export$749e21be8b14b968)();
1965
+ 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 } = {
1966
+ ...buttonGroupProps,
1967
+ ...props
1968
+ };
1969
+ const state = (0, $E4F9t$reactstately.useToggleState)({
1970
+ children: children,
1971
+ ...otherProps
1972
+ });
1795
1973
  const buttonRef = (0, ($parcel$interopDefault($E4F9t$react))).useRef(null);
1796
- const { buttonProps: buttonProps } = (0, $E4F9t$reactaria.useButton)({
1797
- ...props,
1974
+ const { buttonProps: buttonProps } = (0, $E4F9t$reactaria.useToggleButton)({
1975
+ ...otherProps,
1798
1976
  elementType: as,
1799
1977
  children: children
1800
- }, buttonRef);
1978
+ }, state, buttonRef);
1801
1979
  const commonProps = {
1802
- className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)([
1803
- className,
1804
- "button"
1805
- ]),
1980
+ className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)({
1981
+ [className ?? ""]: !!className,
1982
+ button: true,
1983
+ ...space.classNames
1984
+ }),
1806
1985
  css: css,
1807
1986
  as: as,
1808
1987
  ref: (0, $d5b2fb178ea6b1b9$export$c9058316764c140e)(ref, buttonRef)
1809
1988
  };
1989
+ function getColor() {
1990
+ if (!state.isSelected && isToggle) return {
1991
+ color: idleColor,
1992
+ variant: idleVariant
1993
+ };
1994
+ if (state.isSelected && isToggle) return {
1995
+ color: activeColor,
1996
+ variant: activeVariant
1997
+ };
1998
+ return {
1999
+ variant: variant,
2000
+ color: color
2001
+ };
2002
+ }
1810
2003
  if (appearance === "unstyled") return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $c68076e2eb9f7d63$export$3167f6ecaaaa3457), {
1811
2004
  ...commonProps,
1812
2005
  ...buttonProps,
1813
2006
  children: children
1814
2007
  });
1815
2008
  return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $c68076e2eb9f7d63$export$2d5d2ba3c7c8c40b), {
2009
+ isIconButton: isIconButton,
1816
2010
  shape: shape,
1817
2011
  "data-loading": isLoading,
1818
2012
  "aria-busy": isLoading,
1819
- color: color,
1820
- variant: variant,
2013
+ color: getColor().color,
2014
+ variant: getColor().variant,
1821
2015
  size: size,
1822
2016
  ...commonProps,
1823
2017
  ...buttonProps,
@@ -1844,75 +2038,17 @@ const $8d4373b1a05e63fb$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$int
1844
2038
  });
1845
2039
  });
1846
2040
  $8d4373b1a05e63fb$export$353f5b6fc5456de1.displayName = "Button";
2041
+ $8d4373b1a05e63fb$export$353f5b6fc5456de1.Group = (0, $89714b081cb78a2f$export$69b1032f2ecdf404);
1847
2042
 
1848
2043
 
1849
2044
 
1850
2045
 
1851
2046
 
1852
-
1853
-
1854
-
1855
- const $626c660fba87c9a3$var$StyledButton = (0, $80923bc9c1ba824c$export$3817b7a54a07cec7)("button", (0, $02a166a5043d2558$export$5a7eb6284e7684f5), {
1856
- display: "inline-flex",
1857
- alignItems: "center",
1858
- justifyContent: "center",
1859
- overflow: "hidden",
1860
- fontFamily: "$sans",
1861
- boxSizing: "border-box",
1862
- outline: "none",
1863
- border: "none",
1864
- padding: 0,
1865
- flexShrink: 0,
1866
- defaultVariants: {
1867
- size: "md",
1868
- shape: "circle"
1869
- },
1870
- variants: {
1871
- shape: {
1872
- circle: {
1873
- borderRadius: "50% !important"
1874
- },
1875
- square: {}
1876
- },
1877
- size: {
1878
- xs: {
1879
- size: 24,
1880
- borderRadius: 6
1881
- },
1882
- sm: {
1883
- size: 32,
1884
- borderRadius: 6
1885
- },
1886
- md: {
1887
- size: 40,
1888
- borderRadius: 6
1889
- },
1890
- lg: {
1891
- size: 48,
1892
- borderRadius: 8
1893
- },
1894
- xl: {
1895
- size: 56,
1896
- borderRadius: 8
1897
- }
1898
- }
1899
- }
1900
- });
1901
- 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)=>{
1902
- const buttonRef = $E4F9t$react.useRef(null);
1903
- const { buttonProps: buttonProps } = (0, $E4F9t$reactaria.useButton)({
2047
+ const $626c660fba87c9a3$export$c25acd513dcc8062 = /*#__PURE__*/ $E4F9t$react.forwardRef((props, ref)=>{
2048
+ return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $8d4373b1a05e63fb$export$353f5b6fc5456de1), {
2049
+ isIconButton: true,
2050
+ ref: ref,
1904
2051
  ...props,
1905
- elementType: as
1906
- }, buttonRef);
1907
- return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)($626c660fba87c9a3$var$StyledButton, {
1908
- as: as,
1909
- shape: shape,
1910
- size: size,
1911
- variant: variant,
1912
- color: color,
1913
- ref: (0, $d5b2fb178ea6b1b9$export$c9058316764c140e)(buttonRef, ref),
1914
- css: css,
1915
- ...buttonProps,
1916
2052
  children: props.children
1917
2053
  });
1918
2054
  });
@@ -1926,6 +2062,8 @@ $626c660fba87c9a3$export$c25acd513dcc8062.displayName = "IconButton";
1926
2062
 
1927
2063
 
1928
2064
 
2065
+
2066
+
1929
2067
  const $502180e4aeb6f85b$var$Wrapper = (0, $80923bc9c1ba824c$export$3817b7a54a07cec7)("div", {
1930
2068
  position: "relative",
1931
2069
  width: "100%"
@@ -1976,7 +2114,8 @@ const $502180e4aeb6f85b$var$Steppers = (0, $80923bc9c1ba824c$export$3817b7a54a07
1976
2114
  }
1977
2115
  });
1978
2116
  const $502180e4aeb6f85b$export$6bf0cd3a219bbade = /*#__PURE__*/ (0, ($parcel$interopDefault($E4F9t$react))).forwardRef((props, ref)=>{
1979
- const { error: error , label: label , description: description , appearance: appearance , size: size , append: append , hideSteppers: hideSteppers } = props;
2117
+ const { error: error , label: label , description: description , appearance: appearance , size: size , append: append , hideSteppers: hideSteppers , css: css } = props;
2118
+ const space = (0, $78991f4fdd965321$export$450c36e0b0e62ccd)();
1980
2119
  const { locale: locale } = (0, $E4F9t$reactaria.useLocale)();
1981
2120
  const state = (0, $E4F9t$reactstately.useNumberFieldState)({
1982
2121
  ...props,
@@ -1986,6 +2125,8 @@ const $502180e4aeb6f85b$export$6bf0cd3a219bbade = /*#__PURE__*/ (0, ($parcel$int
1986
2125
  const { labelProps: labelProps , groupProps: groupProps , inputProps: inputProps , incrementButtonProps: incrementButtonProps , decrementButtonProps: decrementButtonProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = (0, $E4F9t$reactaria.useNumberField)(props, state, inputRef);
1987
2126
  //TODO clean up append and prepend component placement and positioning
1988
2127
  return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $00118e4526047a1f$export$2e2bcd8739ae039), {
2128
+ css: css,
2129
+ className: space.compactItemWrapperAdjust,
1989
2130
  stack: true,
1990
2131
  gap: 1,
1991
2132
  children: [
@@ -1998,6 +2139,10 @@ const $502180e4aeb6f85b$export$6bf0cd3a219bbade = /*#__PURE__*/ (0, ($parcel$int
1998
2139
  ref: ref,
1999
2140
  children: [
2000
2141
  /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $61604ea65ee6bc29$export$a195049fd73b3fe2), {
2142
+ className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)({
2143
+ "number-input": true,
2144
+ ...space.classNames
2145
+ }),
2001
2146
  hasError: !!error,
2002
2147
  appearance: appearance,
2003
2148
  size: size,
@@ -2843,7 +2988,10 @@ $3347a410c0691704$export$5b6b19405a83ff9d.displayName = "Popover";
2843
2988
 
2844
2989
 
2845
2990
 
2991
+
2992
+
2846
2993
  const $0a4561d925fa922e$export$cd0225d99c675387 = /*#__PURE__*/ (0, ($parcel$interopDefault($E4F9t$react))).forwardRef((props, ref)=>{
2994
+ const space = (0, $78991f4fdd965321$export$450c36e0b0e62ccd)();
2847
2995
  const { renderValue: renderValue , renderOption: renderOption , placeholder: placeholder = "Select an option" , appearance: appearance , size: size , css: css , labelKey: labelKey , label: label } = props;
2848
2996
  const state = (0, $E4F9t$reactstately.useSelectState)(props);
2849
2997
  const selectRef = (0, ($parcel$interopDefault($E4F9t$react))).useRef(null);
@@ -2852,6 +3000,7 @@ const $0a4561d925fa922e$export$cd0225d99c675387 = /*#__PURE__*/ (0, ($parcel$int
2852
3000
  const { focusProps: focusProps , isFocused: isFocused } = (0, $E4F9t$reactaria.useFocusRing)();
2853
3001
  const hasSelection = state.selectedItem != null;
2854
3002
  return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $00118e4526047a1f$export$2e2bcd8739ae039), {
3003
+ className: space.compactItemWrapperAdjust,
2855
3004
  stretchX: true,
2856
3005
  css: css,
2857
3006
  position: "relative",
@@ -2871,6 +3020,10 @@ const $0a4561d925fa922e$export$cd0225d99c675387 = /*#__PURE__*/ (0, ($parcel$int
2871
3020
  name: props.name
2872
3021
  }),
2873
3022
  /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $6f8af3bc5f5b1477$export$3ac1e88a1c0b9f1), {
3023
+ className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)({
3024
+ "select-trigger": true,
3025
+ ...space.classNames
3026
+ }),
2874
3027
  type: "button",
2875
3028
  "data-focused": isFocused,
2876
3029
  appearance: appearance,
@@ -3078,39 +3231,6 @@ $913821b64d4cfe80$export$d9781c7894a82487.displayName = "DateField";
3078
3231
 
3079
3232
 
3080
3233
 
3081
- function $d7cee7e3a6144235$export$30a06c8d3562193f(object, keys) {
3082
- return Object.keys(object).reduce((obj, key)=>{
3083
- if (keys.includes(key)) return {
3084
- ...obj
3085
- };
3086
- return {
3087
- ...obj,
3088
- [key]: object[key]
3089
- };
3090
- }, {});
3091
- }
3092
- function $d7cee7e3a6144235$export$357523c63a2253b9(object, keys) {
3093
- // TODO handle invalid objects properly
3094
- if (!object) return {};
3095
- return Object.keys(object).reduce((obj, key)=>{
3096
- if (keys.includes(key)) return {
3097
- ...obj,
3098
- [key]: object[key]
3099
- };
3100
- return {
3101
- ...obj
3102
- };
3103
- }, {});
3104
- }
3105
- function $d7cee7e3a6144235$export$65980d18b75784e2(object, keys) {
3106
- const picked = $d7cee7e3a6144235$export$357523c63a2253b9(object, keys);
3107
- const omitted = $d7cee7e3a6144235$export$30a06c8d3562193f(object, keys);
3108
- return [
3109
- picked,
3110
- omitted
3111
- ];
3112
- }
3113
-
3114
3234
 
3115
3235
  function $9784c62924ae0fea$export$d02631cccf789723(start = 0, end, step = 1) {
3116
3236
  const result = [];
@@ -3155,7 +3275,7 @@ const $0ec4a031b4f9a702$export$e1aef45b828286de = /*#__PURE__*/ $E4F9t$react.for
3155
3275
  className: "header",
3156
3276
  children: [
3157
3277
  /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $626c660fba87c9a3$export$c25acd513dcc8062), {
3158
- shape: "square",
3278
+ shape: "sharp",
3159
3279
  size: "xs",
3160
3280
  color: "white",
3161
3281
  ...prevButtonProps,
@@ -3171,7 +3291,7 @@ const $0ec4a031b4f9a702$export$e1aef45b828286de = /*#__PURE__*/ $E4F9t$react.for
3171
3291
  children: title
3172
3292
  }),
3173
3293
  /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $626c660fba87c9a3$export$c25acd513dcc8062), {
3174
- shape: "square",
3294
+ shape: "sharp",
3175
3295
  size: "xs",
3176
3296
  color: "white",
3177
3297
  ...nextButtonProps,
@@ -3273,9 +3393,12 @@ function $2dd111a4532b252d$export$85930906f541ddb8(date) {
3273
3393
  }
3274
3394
 
3275
3395
 
3396
+
3397
+
3276
3398
  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), {
3277
3399
  size: 16
3278
3400
  }) , ...props }, ref)=>{
3401
+ const space = (0, $78991f4fdd965321$export$450c36e0b0e62ccd)();
3279
3402
  function _onChange(date) {
3280
3403
  onChange?.(new Date(date.year, date.month, date.day), date);
3281
3404
  }
@@ -3299,6 +3422,8 @@ const $4d607687132d9f4f$export$5109c6dd95d8fb00 = /*#__PURE__*/ $E4F9t$react.for
3299
3422
  const pickerRef = $E4F9t$react.useRef(null);
3300
3423
  const { groupProps: groupProps , calendarProps: calendarProps , fieldProps: fieldProps , buttonProps: buttonProps , errorMessageProps: errorMessageProps , labelProps: labelProps } = (0, $E4F9t$reactaria.useDatePicker)(newPropsWithProxies, state, pickerRef);
3301
3424
  return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $00118e4526047a1f$export$2e2bcd8739ae039), {
3425
+ className: space.compactItemWrapperAdjust,
3426
+ css: css,
3302
3427
  stretchX: true,
3303
3428
  stack: true,
3304
3429
  gap: 1,
@@ -3310,12 +3435,15 @@ const $4d607687132d9f4f$export$5109c6dd95d8fb00 = /*#__PURE__*/ $E4F9t$react.for
3310
3435
  /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $00118e4526047a1f$export$2e2bcd8739ae039), {
3311
3436
  ref: ref,
3312
3437
  gap: 10,
3313
- css: css,
3314
3438
  stretchX: true,
3315
3439
  inline: true,
3316
3440
  stack: true,
3317
3441
  children: [
3318
3442
  /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $99240aa62a70fb69$export$79e84280796e5e38), {
3443
+ className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)({
3444
+ "date-picker-trigger": true,
3445
+ ...space.classNames
3446
+ }),
3319
3447
  ref: pickerRef,
3320
3448
  justify: "between",
3321
3449
  align: "center",
@@ -5147,4 +5275,5 @@ $ceb05569908c0e0d$export$2b77a92f1a5ad772.useModal = $ceb05569908c0e0d$export$33
5147
5275
 
5148
5276
 
5149
5277
 
5278
+
5150
5279
  //# sourceMappingURL=main.js.map