@parrot-co/parrot-ui 0.0.71 → 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 +240 -112
- package/dist/main.js.map +1 -1
- package/dist/module.js +242 -115
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +2577 -184
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
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: `
|
|
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
|
-
|
|
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,138 @@ $69cfc2fd5ce00dfd$export$3b0d6d7590275603.displayName = "Loader";
|
|
|
1791
1879
|
|
|
1792
1880
|
|
|
1793
1881
|
|
|
1794
|
-
|
|
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
|
+
});
|
|
1795
1972
|
const buttonRef = (0, ($parcel$interopDefault($E4F9t$react))).useRef(null);
|
|
1796
|
-
const { buttonProps: buttonProps } = (0, $E4F9t$reactaria.
|
|
1797
|
-
...
|
|
1973
|
+
const { buttonProps: buttonProps } = (0, $E4F9t$reactaria.useToggleButton)({
|
|
1974
|
+
...otherProps,
|
|
1798
1975
|
elementType: as,
|
|
1799
1976
|
children: children
|
|
1800
|
-
}, buttonRef);
|
|
1977
|
+
}, state, buttonRef);
|
|
1801
1978
|
const commonProps = {
|
|
1802
|
-
className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)(
|
|
1803
|
-
className,
|
|
1804
|
-
|
|
1805
|
-
|
|
1979
|
+
className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)({
|
|
1980
|
+
[className ?? ""]: !!className,
|
|
1981
|
+
button: true,
|
|
1982
|
+
...space.classNames
|
|
1983
|
+
}),
|
|
1806
1984
|
css: css,
|
|
1807
1985
|
as: as,
|
|
1808
1986
|
ref: (0, $d5b2fb178ea6b1b9$export$c9058316764c140e)(ref, buttonRef)
|
|
1809
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
|
+
}
|
|
1810
2002
|
if (appearance === "unstyled") return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $c68076e2eb9f7d63$export$3167f6ecaaaa3457), {
|
|
1811
2003
|
...commonProps,
|
|
1812
2004
|
...buttonProps,
|
|
1813
2005
|
children: children
|
|
1814
2006
|
});
|
|
1815
2007
|
return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $c68076e2eb9f7d63$export$2d5d2ba3c7c8c40b), {
|
|
2008
|
+
isIconButton: isIconButton,
|
|
1816
2009
|
shape: shape,
|
|
1817
2010
|
"data-loading": isLoading,
|
|
1818
2011
|
"aria-busy": isLoading,
|
|
1819
|
-
color: color,
|
|
1820
|
-
variant: variant,
|
|
2012
|
+
color: getColor().color,
|
|
2013
|
+
variant: getColor().variant,
|
|
1821
2014
|
size: size,
|
|
1822
2015
|
...commonProps,
|
|
1823
2016
|
...buttonProps,
|
|
@@ -1844,75 +2037,17 @@ const $8d4373b1a05e63fb$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$int
|
|
|
1844
2037
|
});
|
|
1845
2038
|
});
|
|
1846
2039
|
$8d4373b1a05e63fb$export$353f5b6fc5456de1.displayName = "Button";
|
|
2040
|
+
$8d4373b1a05e63fb$export$353f5b6fc5456de1.Group = (0, $89714b081cb78a2f$export$69b1032f2ecdf404);
|
|
1847
2041
|
|
|
1848
2042
|
|
|
1849
2043
|
|
|
1850
2044
|
|
|
1851
2045
|
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
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)({
|
|
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,
|
|
1904
2050
|
...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
2051
|
children: props.children
|
|
1917
2052
|
});
|
|
1918
2053
|
});
|
|
@@ -1926,6 +2061,8 @@ $626c660fba87c9a3$export$c25acd513dcc8062.displayName = "IconButton";
|
|
|
1926
2061
|
|
|
1927
2062
|
|
|
1928
2063
|
|
|
2064
|
+
|
|
2065
|
+
|
|
1929
2066
|
const $502180e4aeb6f85b$var$Wrapper = (0, $80923bc9c1ba824c$export$3817b7a54a07cec7)("div", {
|
|
1930
2067
|
position: "relative",
|
|
1931
2068
|
width: "100%"
|
|
@@ -1976,7 +2113,8 @@ const $502180e4aeb6f85b$var$Steppers = (0, $80923bc9c1ba824c$export$3817b7a54a07
|
|
|
1976
2113
|
}
|
|
1977
2114
|
});
|
|
1978
2115
|
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;
|
|
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)();
|
|
1980
2118
|
const { locale: locale } = (0, $E4F9t$reactaria.useLocale)();
|
|
1981
2119
|
const state = (0, $E4F9t$reactstately.useNumberFieldState)({
|
|
1982
2120
|
...props,
|
|
@@ -1986,6 +2124,8 @@ const $502180e4aeb6f85b$export$6bf0cd3a219bbade = /*#__PURE__*/ (0, ($parcel$int
|
|
|
1986
2124
|
const { labelProps: labelProps , groupProps: groupProps , inputProps: inputProps , incrementButtonProps: incrementButtonProps , decrementButtonProps: decrementButtonProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = (0, $E4F9t$reactaria.useNumberField)(props, state, inputRef);
|
|
1987
2125
|
//TODO clean up append and prepend component placement and positioning
|
|
1988
2126
|
return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $00118e4526047a1f$export$2e2bcd8739ae039), {
|
|
2127
|
+
css: css,
|
|
2128
|
+
className: space.compactItemWrapperAdjust,
|
|
1989
2129
|
stack: true,
|
|
1990
2130
|
gap: 1,
|
|
1991
2131
|
children: [
|
|
@@ -1998,6 +2138,10 @@ const $502180e4aeb6f85b$export$6bf0cd3a219bbade = /*#__PURE__*/ (0, ($parcel$int
|
|
|
1998
2138
|
ref: ref,
|
|
1999
2139
|
children: [
|
|
2000
2140
|
/*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $61604ea65ee6bc29$export$a195049fd73b3fe2), {
|
|
2141
|
+
className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)({
|
|
2142
|
+
"number-input": true,
|
|
2143
|
+
...space.classNames
|
|
2144
|
+
}),
|
|
2001
2145
|
hasError: !!error,
|
|
2002
2146
|
appearance: appearance,
|
|
2003
2147
|
size: size,
|
|
@@ -2843,7 +2987,10 @@ $3347a410c0691704$export$5b6b19405a83ff9d.displayName = "Popover";
|
|
|
2843
2987
|
|
|
2844
2988
|
|
|
2845
2989
|
|
|
2990
|
+
|
|
2991
|
+
|
|
2846
2992
|
const $0a4561d925fa922e$export$cd0225d99c675387 = /*#__PURE__*/ (0, ($parcel$interopDefault($E4F9t$react))).forwardRef((props, ref)=>{
|
|
2993
|
+
const space = (0, $78991f4fdd965321$export$450c36e0b0e62ccd)();
|
|
2847
2994
|
const { renderValue: renderValue , renderOption: renderOption , placeholder: placeholder = "Select an option" , appearance: appearance , size: size , css: css , labelKey: labelKey , label: label } = props;
|
|
2848
2995
|
const state = (0, $E4F9t$reactstately.useSelectState)(props);
|
|
2849
2996
|
const selectRef = (0, ($parcel$interopDefault($E4F9t$react))).useRef(null);
|
|
@@ -2852,6 +2999,7 @@ const $0a4561d925fa922e$export$cd0225d99c675387 = /*#__PURE__*/ (0, ($parcel$int
|
|
|
2852
2999
|
const { focusProps: focusProps , isFocused: isFocused } = (0, $E4F9t$reactaria.useFocusRing)();
|
|
2853
3000
|
const hasSelection = state.selectedItem != null;
|
|
2854
3001
|
return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $00118e4526047a1f$export$2e2bcd8739ae039), {
|
|
3002
|
+
className: space.compactItemWrapperAdjust,
|
|
2855
3003
|
stretchX: true,
|
|
2856
3004
|
css: css,
|
|
2857
3005
|
position: "relative",
|
|
@@ -2871,6 +3019,10 @@ const $0a4561d925fa922e$export$cd0225d99c675387 = /*#__PURE__*/ (0, ($parcel$int
|
|
|
2871
3019
|
name: props.name
|
|
2872
3020
|
}),
|
|
2873
3021
|
/*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $6f8af3bc5f5b1477$export$3ac1e88a1c0b9f1), {
|
|
3022
|
+
className: (0, $d5b2fb178ea6b1b9$export$a274e22fb40f762e)({
|
|
3023
|
+
"select-trigger": true,
|
|
3024
|
+
...space.classNames
|
|
3025
|
+
}),
|
|
2874
3026
|
type: "button",
|
|
2875
3027
|
"data-focused": isFocused,
|
|
2876
3028
|
appearance: appearance,
|
|
@@ -3078,39 +3230,6 @@ $913821b64d4cfe80$export$d9781c7894a82487.displayName = "DateField";
|
|
|
3078
3230
|
|
|
3079
3231
|
|
|
3080
3232
|
|
|
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
3233
|
|
|
3115
3234
|
function $9784c62924ae0fea$export$d02631cccf789723(start = 0, end, step = 1) {
|
|
3116
3235
|
const result = [];
|
|
@@ -3155,7 +3274,7 @@ const $0ec4a031b4f9a702$export$e1aef45b828286de = /*#__PURE__*/ $E4F9t$react.for
|
|
|
3155
3274
|
className: "header",
|
|
3156
3275
|
children: [
|
|
3157
3276
|
/*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $626c660fba87c9a3$export$c25acd513dcc8062), {
|
|
3158
|
-
shape: "
|
|
3277
|
+
shape: "sharp",
|
|
3159
3278
|
size: "xs",
|
|
3160
3279
|
color: "white",
|
|
3161
3280
|
...prevButtonProps,
|
|
@@ -3171,7 +3290,7 @@ const $0ec4a031b4f9a702$export$e1aef45b828286de = /*#__PURE__*/ $E4F9t$react.for
|
|
|
3171
3290
|
children: title
|
|
3172
3291
|
}),
|
|
3173
3292
|
/*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsx)((0, $626c660fba87c9a3$export$c25acd513dcc8062), {
|
|
3174
|
-
shape: "
|
|
3293
|
+
shape: "sharp",
|
|
3175
3294
|
size: "xs",
|
|
3176
3295
|
color: "white",
|
|
3177
3296
|
...nextButtonProps,
|
|
@@ -3273,9 +3392,12 @@ function $2dd111a4532b252d$export$85930906f541ddb8(date) {
|
|
|
3273
3392
|
}
|
|
3274
3393
|
|
|
3275
3394
|
|
|
3395
|
+
|
|
3396
|
+
|
|
3276
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), {
|
|
3277
3398
|
size: 16
|
|
3278
3399
|
}) , ...props }, ref)=>{
|
|
3400
|
+
const space = (0, $78991f4fdd965321$export$450c36e0b0e62ccd)();
|
|
3279
3401
|
function _onChange(date) {
|
|
3280
3402
|
onChange?.(new Date(date.year, date.month, date.day), date);
|
|
3281
3403
|
}
|
|
@@ -3299,6 +3421,8 @@ const $4d607687132d9f4f$export$5109c6dd95d8fb00 = /*#__PURE__*/ $E4F9t$react.for
|
|
|
3299
3421
|
const pickerRef = $E4F9t$react.useRef(null);
|
|
3300
3422
|
const { groupProps: groupProps , calendarProps: calendarProps , fieldProps: fieldProps , buttonProps: buttonProps , errorMessageProps: errorMessageProps , labelProps: labelProps } = (0, $E4F9t$reactaria.useDatePicker)(newPropsWithProxies, state, pickerRef);
|
|
3301
3423
|
return /*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $00118e4526047a1f$export$2e2bcd8739ae039), {
|
|
3424
|
+
className: space.compactItemWrapperAdjust,
|
|
3425
|
+
css: css,
|
|
3302
3426
|
stretchX: true,
|
|
3303
3427
|
stack: true,
|
|
3304
3428
|
gap: 1,
|
|
@@ -3310,12 +3434,15 @@ const $4d607687132d9f4f$export$5109c6dd95d8fb00 = /*#__PURE__*/ $E4F9t$react.for
|
|
|
3310
3434
|
/*#__PURE__*/ (0, $E4F9t$reactjsxruntime.jsxs)((0, $00118e4526047a1f$export$2e2bcd8739ae039), {
|
|
3311
3435
|
ref: ref,
|
|
3312
3436
|
gap: 10,
|
|
3313
|
-
css: css,
|
|
3314
3437
|
stretchX: true,
|
|
3315
3438
|
inline: true,
|
|
3316
3439
|
stack: true,
|
|
3317
3440
|
children: [
|
|
3318
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
|
+
}),
|
|
3319
3446
|
ref: pickerRef,
|
|
3320
3447
|
justify: "between",
|
|
3321
3448
|
align: "center",
|
|
@@ -5147,4 +5274,5 @@ $ceb05569908c0e0d$export$2b77a92f1a5ad772.useModal = $ceb05569908c0e0d$export$33
|
|
|
5147
5274
|
|
|
5148
5275
|
|
|
5149
5276
|
|
|
5277
|
+
|
|
5150
5278
|
//# sourceMappingURL=main.js.map
|