@easypost/easy-ui 1.0.0-alpha.111 → 1.0.0-alpha.113
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/AlertBadge/AlertBadge.d.ts +1 -1
- package/AlertBadge/AlertBadge.d.ts.map +1 -1
- package/AlertBadge/index.js +20 -16
- package/AlertBadge/index.mjs +20 -16
- package/Badge/index.js +29 -19
- package/Badge/index.mjs +29 -19
- package/Banner/index.js +19 -12
- package/Banner/index.mjs +19 -12
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +13 -0
- package/Calendar/index.js +1 -1
- package/Calendar/index.mjs +1 -1
- package/Card/index.js +1 -1
- package/Card/index.mjs +1 -1
- package/CheckableCard/index.js +33 -24
- package/CheckableCard/index.mjs +33 -24
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/CodeBlock/context.d.ts +2 -1
- package/CodeBlock/context.d.ts.map +1 -1
- package/CodeBlock/index.js +81 -59
- package/CodeBlock/index.mjs +81 -59
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/ColorPicker/index.js +71 -54
- package/ColorPicker/index.mjs +71 -54
- package/CustomerPortalLayout/index.js +101 -72
- package/CustomerPortalLayout/index.mjs +101 -72
- package/DataGrid/index.js +229 -173
- package/DataGrid/index.mjs +229 -173
- package/DatePicker/index.js +10 -8
- package/DatePicker/index.mjs +10 -8
- package/DateRangePicker/index.js +10 -8
- package/DateRangePicker/index.mjs +10 -8
- package/Drawer/context.d.ts +2 -2
- package/Drawer/context.d.ts.map +1 -1
- package/Drawer/index.js +99 -78
- package/Drawer/index.mjs +99 -78
- package/Drawer/useIntersectionDetection.d.ts +1 -1
- package/Drawer/useIntersectionDetection.d.ts.map +1 -1
- package/DropdownButton/index.js +15 -7
- package/DropdownButton/index.mjs +16 -8
- package/EmptyStateCard/index.js +53 -33
- package/EmptyStateCard/index.mjs +53 -33
- package/FocusedProductLayout/index.js +104 -76
- package/FocusedProductLayout/index.mjs +104 -76
- package/ForgeLayout/index.js +283 -217
- package/ForgeLayout/index.mjs +283 -217
- package/FormLayout/index.js +38 -24
- package/FormLayout/index.mjs +38 -24
- package/HorizontalGrid/index.js +1 -1
- package/HorizontalGrid/index.mjs +1 -1
- package/HorizontalStack/index.js +1 -1
- package/HorizontalStack/index.mjs +1 -1
- package/Icon/index.js +1 -1
- package/Icon/index.mjs +1 -1
- package/IconButton/index.js +16 -9
- package/IconButton/index.mjs +17 -10
- package/InputField/index.js +1 -1
- package/InputField/index.mjs +1 -1
- package/KebabButton/index.js +1 -1
- package/KebabButton/index.mjs +1 -1
- package/Menu/MenuTrigger.d.ts +1 -1
- package/Menu/MenuTrigger.d.ts.map +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/context.d.ts +3 -3
- package/Modal/context.d.ts.map +1 -1
- package/Modal/index.js +124 -93
- package/Modal/index.mjs +124 -93
- package/Modal/useIntersectionDetection.d.ts +1 -1
- package/Modal/useIntersectionDetection.d.ts.map +1 -1
- package/MultiSelect/MultiSelectDropdown.d.ts +2 -2
- package/MultiSelect/MultiSelectDropdown.d.ts.map +1 -1
- package/MultiSelect/index.js +106 -83
- package/MultiSelect/index.mjs +107 -84
- package/MultiSelect/utilities.d.ts +1 -1
- package/MultiSelect/utilities.d.ts.map +1 -1
- package/MultipageSection/index.js +94 -71
- package/MultipageSection/index.mjs +94 -71
- package/NexusLayout/index.js +136 -102
- package/NexusLayout/index.mjs +136 -102
- package/Notification/NotificationTransition.d.ts +1 -1
- package/Notification/NotificationTransition.d.ts.map +1 -1
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +62 -50
- package/Pagination/index.mjs +63 -51
- package/PillGroup/index.js +1 -1
- package/PillGroup/index.mjs +1 -1
- package/PlanCard/illustrations/Building01/index.js +532 -531
- package/PlanCard/illustrations/Building01/index.mjs +532 -531
- package/PlanCard/illustrations/Building02/index.js +206 -205
- package/PlanCard/illustrations/Building02/index.mjs +206 -205
- package/PlanCard/illustrations/Building03/index.js +773 -772
- package/PlanCard/illustrations/Building03/index.mjs +773 -772
- package/PlanCard/illustrations/Building04/index.js +1528 -1527
- package/PlanCard/illustrations/Building04/index.mjs +1528 -1527
- package/PlanCard/index.js +59 -36
- package/PlanCard/index.mjs +60 -37
- package/ProductLayout/index.js +132 -91
- package/ProductLayout/index.mjs +132 -91
- package/Provider/index.js +18 -14
- package/Provider/index.mjs +18 -14
- package/RadioButtonGroup/index.js +14 -10
- package/RadioButtonGroup/index.mjs +14 -10
- package/RadioGroup/index.js +1 -1
- package/RadioGroup/index.mjs +1 -1
- package/RangeCalendar/index.js +1 -1
- package/RangeCalendar/index.mjs +1 -1
- package/SearchNav/CondensedSearchNav.d.ts.map +1 -1
- package/SearchNav/index.js +197 -141
- package/SearchNav/index.mjs +197 -141
- package/SearchNav/utilities.d.ts +3 -3
- package/SearchNav/utilities.d.ts.map +1 -1
- package/SectionCard/index.js +43 -25
- package/SectionCard/index.mjs +43 -25
- package/Select/index.js +74 -62
- package/Select/index.mjs +74 -62
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.js +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +22 -16
- package/SplitToggleCard/index.mjs +22 -16
- package/Stepper/index.js +1 -1
- package/Stepper/index.mjs +1 -1
- package/TabNav/index.js +1 -1
- package/TabNav/index.mjs +1 -1
- package/TabPanels/index.js +22 -16
- package/TabPanels/index.mjs +24 -18
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/Text/index.js +1 -1
- package/Text/index.mjs +1 -1
- package/TextField/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +3 -3
- package/Textarea/index.mjs +3 -3
- package/Theme/index.js +1 -1
- package/Theme/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +20 -15
- package/ToggleCard/index.mjs +21 -16
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/UnstyledButton/index.js +1 -1
- package/UnstyledButton/index.mjs +1 -1
- package/VerticalNav/index.js +115 -88
- package/VerticalNav/index.mjs +115 -88
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-5AuHgwU3.js → Button-C3vDXJsJ.js} +15 -12
- package/__chunks__/{Button-BsGH6vGC.mjs → Button-Dexauftx.mjs} +16 -13
- package/__chunks__/{Calendar-D09mdpmC.js → Calendar-BEbdigVB.js} +3 -2
- package/__chunks__/{Calendar-BGZysoV0.mjs → Calendar-BOxw8lwX.mjs} +3 -2
- package/__chunks__/{CalendarBase-Bn9o8BdD.mjs → CalendarBase-3a9i7QNo.mjs} +86 -64
- package/__chunks__/{CalendarBase-DHxad3N9.js → CalendarBase-Bx8bdXeT.js} +86 -64
- package/__chunks__/{Card-CJug4GMX.mjs → Card-8778avMv.mjs} +21 -12
- package/__chunks__/{Card-BM2DKiVA.js → Card-DIZFYg6E.js} +21 -12
- package/__chunks__/{Checkbox-BWfY9XqH.mjs → Checkbox-C-NlI-Ym.mjs} +36 -28
- package/__chunks__/{Checkbox-D2-8vvdr.js → Checkbox-DFWhjlaO.js} +36 -28
- package/__chunks__/{CodeSnippet-CIijbclb.js → CodeSnippet-BCOMwE07.js} +16 -12
- package/__chunks__/{CodeSnippet-QpCpkoXv.mjs → CodeSnippet-CWnMHdVu.mjs} +16 -12
- package/__chunks__/{DatePickerBase-CFB0JDQA.mjs → DatePickerBase-C4PwUr9x.mjs} +80 -62
- package/__chunks__/{DatePickerBase-DSPIErms.js → DatePickerBase-XoRply_u.js} +80 -62
- package/__chunks__/EasyPostLogo-D3WNdZ29.js +22 -0
- package/__chunks__/EasyPostLogo-tf6CCEAq.mjs +23 -0
- package/__chunks__/{HelpMenu-CO6kYktc.mjs → HelpMenu-8r0cjx5z.mjs} +30 -21
- package/__chunks__/{HelpMenu-nihaGEVy.js → HelpMenu-DBo_fklD.js} +30 -20
- package/__chunks__/{HorizontalGrid-CAwv7zKY.js → HorizontalGrid-BAvSeg39.js} +5 -3
- package/__chunks__/{HorizontalGrid-Dz8EFgmu.mjs → HorizontalGrid-C4MBFEH-.mjs} +6 -4
- package/__chunks__/{HorizontalStack-CxE8tPx_.mjs → HorizontalStack-BkE82C73.mjs} +6 -4
- package/__chunks__/{HorizontalStack-CXpjASZi.js → HorizontalStack-DidoI4Ks.js} +5 -3
- package/__chunks__/{Icon-W8F9w-jS.js → Icon-BVa5ddiD.js} +11 -10
- package/__chunks__/{Icon-0SN9dbwU.mjs → Icon-DzTns8u5.mjs} +11 -10
- package/__chunks__/{InputCaption-BJO9_Tby.mjs → InputCaption-B8bZH6sX.mjs} +19 -15
- package/__chunks__/{InputCaption-C3Hf9Hvt.js → InputCaption-Dkyn1sg6.js} +19 -15
- package/__chunks__/{InputField-dq5XIhr1.mjs → InputField-BTrYBVAD.mjs} +77 -66
- package/__chunks__/{InputField-CDHznUZd.js → InputField-Dvkk5R1K.js} +77 -66
- package/__chunks__/{InputIcon-Bpg4lyQx.mjs → InputIcon-BLJ6dx_5.mjs} +9 -8
- package/__chunks__/{InputIcon-DdcvN3A4.js → InputIcon-BSIAXX9k.js} +9 -8
- package/__chunks__/{KebabButton-DdzHU7is.js → KebabButton-3FnxY-Fz.js} +15 -8
- package/__chunks__/{KebabButton-Bf1OdC5_.mjs → KebabButton-DSK0ISAn.mjs} +15 -8
- package/__chunks__/{Menu-DHwqwFlg.mjs → Menu-C2F4fvhd.mjs} +88 -70
- package/__chunks__/{Menu-Kfc6nxFP.js → Menu-Du8SsMeJ.js} +88 -70
- package/__chunks__/{Notification-vF_YGVIP.js → Notification-CeJn5Qq1.js} +62 -48
- package/__chunks__/{Notification-BoT3Hm0B.mjs → Notification-CgUT2gv6.mjs} +64 -50
- package/__chunks__/{PillGroup-DjLJ4wVb.mjs → PillGroup-EJ8t8SrT.mjs} +41 -27
- package/__chunks__/{PillGroup-CAHVIlU0.js → PillGroup-rTS853Rr.js} +41 -27
- package/__chunks__/{RadioGroup-CGQKZwDU.js → RadioGroup-BFqH1Csi.js} +58 -40
- package/__chunks__/{RadioGroup-DUu5GEpn.mjs → RadioGroup-DBgIqOkZ.mjs} +58 -40
- package/__chunks__/{RangeCalendar-LPcJB19o.mjs → RangeCalendar-BSsmX9l4.mjs} +3 -2
- package/__chunks__/{RangeCalendar-Ckqj2J9L.js → RangeCalendar-Do2nei5A.js} +3 -2
- package/__chunks__/{SelectOverlay-DptO7xtn.mjs → SelectOverlay-DUIIhF4t.mjs} +62 -51
- package/__chunks__/{SelectOverlay-CmbC4zrD.js → SelectOverlay-DjiJHthj.js} +62 -51
- package/__chunks__/{SelectorErrorTooltip-Dw1Fvd_q.mjs → SelectorErrorTooltip-BC-1JoX3.mjs} +19 -12
- package/__chunks__/{SelectorErrorTooltip-_D8DSBKs.js → SelectorErrorTooltip-BMxbuFiM.js} +19 -11
- package/__chunks__/{Spinner-DOmPV59I.mjs → Spinner-2PFCOK3I.mjs} +17 -13
- package/__chunks__/{Spinner-D0ifPtVV.js → Spinner-Dd68v9QX.js} +16 -12
- package/__chunks__/{Stepper-CX0Mu37p.js → Stepper-BZ90AIx0.js} +47 -36
- package/__chunks__/{Stepper-BEyDIPNJ.mjs → Stepper-q3YNLglj.mjs} +48 -37
- package/__chunks__/{TabNav-vCt_zTvE.mjs → TabNav-BnpNl7tj.mjs} +10 -8
- package/__chunks__/{TabNav-B8aEzVyr.js → TabNav-CLVG0bL2.js} +10 -8
- package/__chunks__/{Tabs-BL8odO0p.js → Tabs-5_61DIBw.js} +46 -37
- package/__chunks__/{Tabs-DJ4aKu11.mjs → Tabs-CtyYEye0.mjs} +47 -38
- package/__chunks__/{Text-CSESKR_s.js → Text-C4CEsglh.js} +5 -4
- package/__chunks__/{Text-YOL3isF4.mjs → Text-u9mYLeWj.mjs} +5 -4
- package/__chunks__/{TextField-D2QhDAdD.mjs → TextField-D1JGaTQv.mjs} +3 -3
- package/__chunks__/{TextField-94cCP805.js → TextField-DE1vPtQm.js} +3 -3
- package/__chunks__/{Theme-BAFk7BvV.mjs → Theme-CyUCrGdN.mjs} +28 -18
- package/__chunks__/{Theme-DqbmY4wy.js → Theme-unLHjjnm.js} +27 -17
- package/__chunks__/{Toggle-D2ucsFxO.js → Toggle-BHzAGPDh.js} +43 -37
- package/__chunks__/{Toggle-CxjLdmzW.mjs → Toggle-DioYP2KQ.mjs} +43 -37
- package/__chunks__/{Tooltip-DAyUY3na.mjs → Tooltip-BKGkKnOx.mjs} +25 -17
- package/__chunks__/{Tooltip-DqpxBjpa.js → Tooltip-COjtKErw.js} +25 -17
- package/__chunks__/{UnstyledButton-DpQ5Ic9D.mjs → UnstyledButton-BCg7eEyP.mjs} +6 -4
- package/__chunks__/{UnstyledButton-BFpQ2Irc.js → UnstyledButton-_YQekhlm.js} +5 -3
- package/__chunks__/{VerticalStack-C2yDQVHD.mjs → VerticalStack-Cbdpucbh.mjs} +6 -4
- package/__chunks__/{VerticalStack-Dzpv3O67.js → VerticalStack-CunLpHRv.js} +5 -3
- package/__chunks__/index-CqNUlUoB.js +217 -0
- package/__chunks__/index-ee-P7jQr.mjs +218 -0
- package/__chunks__/jsx-runtime-CH1d66I3.js +320 -0
- package/__chunks__/jsx-runtime-DTpFD6nx.mjs +321 -0
- package/__chunks__/{useEdgeInterceptors-D_DARZZd.mjs → useEdgeInterceptors-BBmo6MI4.mjs} +17 -14
- package/__chunks__/{useEdgeInterceptors-Ihk8NfjJ.js → useEdgeInterceptors-BLxn3eUi.js} +16 -13
- package/package.json +5 -7
- package/types.d.ts +1 -1
- package/types.d.ts.map +1 -1
- package/utilities/Noop.d.ts +1 -1
- package/utilities/Noop.d.ts.map +1 -1
- package/utilities/react.d.ts +1 -1
- package/utilities/react.d.ts.map +1 -1
- package/utilities/react.js +1 -1
- package/utilities/react.mjs +1 -1
- package/utilities/test.d.ts +1 -0
- package/utilities/test.d.ts.map +1 -1
- package/__chunks__/EasyPostLogo-B3Um5vvS.mjs +0 -22
- package/__chunks__/EasyPostLogo-DQt5KlFX.js +0 -21
- package/__chunks__/index-CUcRN4NO.js +0 -311
- package/__chunks__/index-Izk6uvQC.mjs +0 -312
package/TabPanels/index.js
CHANGED
|
@@ -31,15 +31,16 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
34
|
+
const jsxRuntime = require("../__chunks__/jsx-runtime-CH1d66I3.js");
|
|
34
35
|
const React = require("react");
|
|
35
36
|
const Item = require("../__chunks__/Item-h_oPjYVR.js");
|
|
36
37
|
const useListState = require("../__chunks__/useListState-DDaaA7mG.js");
|
|
37
|
-
const index = require("../__chunks__/index-
|
|
38
|
+
const index = require("../__chunks__/index-CqNUlUoB.js");
|
|
38
39
|
const SelectionManager = require("../__chunks__/SelectionManager-CFPcxpAj.js");
|
|
39
40
|
const mergeProps = require("../__chunks__/mergeProps-DLPcevok.js");
|
|
40
41
|
const useLabels = require("../__chunks__/useLabels-BiHauKNF.js");
|
|
41
42
|
const useHasTabbableChild = require("../__chunks__/useHasTabbableChild-9MZ8LK0l.js");
|
|
42
|
-
const Tabs = require("../__chunks__/Tabs-
|
|
43
|
+
const Tabs = require("../__chunks__/Tabs-5_61DIBw.js");
|
|
43
44
|
const useSingleSelectListState = require("../__chunks__/useSingleSelectListState-BX2vNU2f.js");
|
|
44
45
|
const context = require("../__chunks__/context-DJdNiOsb.js");
|
|
45
46
|
const useSelectableItem = require("../__chunks__/useSelectableItem-Dtmy73y6.js");
|
|
@@ -269,9 +270,11 @@ function TabPanelsPanel(_a) {
|
|
|
269
270
|
const { tabPanelProps } = $34bce698202e07cb$export$fae0121b5afe572d(props, state, ref);
|
|
270
271
|
return children && React.isValidElement(children) && !index.reactIsExports.isFragment(children) ? React.cloneElement(children, __spreadValues(__spreadValues({
|
|
271
272
|
ref
|
|
272
|
-
}, tabPanelProps), children.props)) :
|
|
273
|
+
}, tabPanelProps), children.props)) : jsxRuntime.jsxRuntimeExports.jsx("div", __spreadProps(__spreadValues({
|
|
273
274
|
ref
|
|
274
|
-
}, tabPanelProps),
|
|
275
|
+
}, tabPanelProps), {
|
|
276
|
+
children
|
|
277
|
+
}));
|
|
275
278
|
}
|
|
276
279
|
function TabPanelsTabs(props) {
|
|
277
280
|
const { tabProps, setTabListState } = useTabPanels();
|
|
@@ -282,17 +285,17 @@ function TabPanelsTabs(props) {
|
|
|
282
285
|
React.useEffect(() => {
|
|
283
286
|
setTabListState(state);
|
|
284
287
|
}, [state.disabledKeys, state.selectedItem, state.selectedKey, props.children]);
|
|
285
|
-
return
|
|
288
|
+
return jsxRuntime.jsxRuntimeExports.jsx(Tabs.Tabs, {
|
|
286
289
|
containerComponent: "div",
|
|
287
290
|
containerProps: {},
|
|
288
291
|
listComponent: "div",
|
|
289
292
|
listProps: tabListProps,
|
|
290
|
-
listRef: ref
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
})
|
|
293
|
+
listRef: ref,
|
|
294
|
+
children: [...state.collection].map((item) => jsxRuntime.jsxRuntimeExports.jsx(TabPanelsTab, {
|
|
295
|
+
item,
|
|
296
|
+
state
|
|
297
|
+
}, item.key))
|
|
298
|
+
});
|
|
296
299
|
}
|
|
297
300
|
function TabPanelsTab({ item, state }) {
|
|
298
301
|
const ref = React.useRef(null);
|
|
@@ -301,12 +304,14 @@ function TabPanelsTab({ item, state }) {
|
|
|
301
304
|
}, state, ref);
|
|
302
305
|
const isSelected = state.selectedItem === item;
|
|
303
306
|
const isDisabled = state.disabledKeys.has(item.key) || state.isDisabled;
|
|
304
|
-
return
|
|
307
|
+
return jsxRuntime.jsxRuntimeExports.jsx(Tabs.Tabs.Item, __spreadProps(__spreadValues({
|
|
305
308
|
tabComponent: "div",
|
|
306
309
|
tabRef: ref,
|
|
307
310
|
isSelected,
|
|
308
311
|
isDisabled
|
|
309
|
-
}, tabProps),
|
|
312
|
+
}, tabProps), {
|
|
313
|
+
children: item.rendered
|
|
314
|
+
}));
|
|
310
315
|
}
|
|
311
316
|
function TabPanels(props) {
|
|
312
317
|
const [tabListState, setTabListState] = React.useState(null);
|
|
@@ -317,9 +322,10 @@ function TabPanels(props) {
|
|
|
317
322
|
setTabListState
|
|
318
323
|
};
|
|
319
324
|
}, [tabListState, props]);
|
|
320
|
-
return
|
|
321
|
-
value: context2
|
|
322
|
-
|
|
325
|
+
return jsxRuntime.jsxRuntimeExports.jsx(TabPanelsContext.Provider, {
|
|
326
|
+
value: context2,
|
|
327
|
+
children: props.children
|
|
328
|
+
});
|
|
323
329
|
}
|
|
324
330
|
TabPanels.Tabs = TabPanelsTabs;
|
|
325
331
|
TabPanels.Panels = TabPanelsPanels;
|
package/TabPanels/index.mjs
CHANGED
|
@@ -29,15 +29,16 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import
|
|
32
|
+
import { j as jsxRuntimeExports } from "../__chunks__/jsx-runtime-DTpFD6nx.mjs";
|
|
33
|
+
import React__default, { useRef, useEffect, useMemo, createContext, useContext, useCallback, createElement, isValidElement, useState } from "react";
|
|
33
34
|
import { $ as $c1d7fb2ec91bae71$export$6d08773d2e66f8f2 } from "../__chunks__/Item-FD89BR0i.mjs";
|
|
34
35
|
import { a as $a02d57049d202695$export$d085fb9e920b5ca7 } from "../__chunks__/useListState-3s3ZON5A.mjs";
|
|
35
|
-
import { r as reactIsExports } from "../__chunks__/index-
|
|
36
|
+
import { r as reactIsExports } from "../__chunks__/index-ee-P7jQr.mjs";
|
|
36
37
|
import { a as $7613b1592d41b092$export$6cd28814d92fa9c9 } from "../__chunks__/SelectionManager-QKdFux5L.mjs";
|
|
37
38
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928, c as $bdb11010cef70236$export$f680877a34711e37 } from "../__chunks__/mergeProps-COnPag8r.mjs";
|
|
38
39
|
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../__chunks__/useLabels-AshNb54x.mjs";
|
|
39
40
|
import { $ as $83013635b024ae3d$export$eac1895992b9f3d6 } from "../__chunks__/useHasTabbableChild-73d-1Yus.mjs";
|
|
40
|
-
import { T as Tabs } from "../__chunks__/Tabs-
|
|
41
|
+
import { T as Tabs } from "../__chunks__/Tabs-CtyYEye0.mjs";
|
|
41
42
|
import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "../__chunks__/useSingleSelectListState-KDg6mjR3.mjs";
|
|
42
43
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../__chunks__/context-5UR8ToA1.mjs";
|
|
43
44
|
import { $ as $880e95eb8b93ba9a$export$ecf600387e221c37, b as $ae20dd8cbca75726$export$d6daf82dcd84e87c } from "../__chunks__/useSelectableItem-BP2rZ6Gy.mjs";
|
|
@@ -255,7 +256,7 @@ function TabPanelsPanels(props) {
|
|
|
255
256
|
return null;
|
|
256
257
|
}
|
|
257
258
|
const selectedItem = tabListState.selectedKey === null ? null : collection.getItem(tabListState.selectedKey);
|
|
258
|
-
return
|
|
259
|
+
return createElement(TabPanelsPanel, __spreadProps(__spreadValues({}, props), {
|
|
259
260
|
key: tabListState == null ? void 0 : tabListState.selectedKey,
|
|
260
261
|
state: tabListState
|
|
261
262
|
}), selectedItem && selectedItem.props.children);
|
|
@@ -267,9 +268,11 @@ function TabPanelsPanel(_a) {
|
|
|
267
268
|
const { tabPanelProps } = $34bce698202e07cb$export$fae0121b5afe572d(props, state, ref);
|
|
268
269
|
return children && isValidElement(children) && !reactIsExports.isFragment(children) ? React__default.cloneElement(children, __spreadValues(__spreadValues({
|
|
269
270
|
ref
|
|
270
|
-
}, tabPanelProps), children.props)) :
|
|
271
|
+
}, tabPanelProps), children.props)) : jsxRuntimeExports.jsx("div", __spreadProps(__spreadValues({
|
|
271
272
|
ref
|
|
272
|
-
}, tabPanelProps),
|
|
273
|
+
}, tabPanelProps), {
|
|
274
|
+
children
|
|
275
|
+
}));
|
|
273
276
|
}
|
|
274
277
|
function TabPanelsTabs(props) {
|
|
275
278
|
const { tabProps, setTabListState } = useTabPanels();
|
|
@@ -280,17 +283,17 @@ function TabPanelsTabs(props) {
|
|
|
280
283
|
useEffect(() => {
|
|
281
284
|
setTabListState(state);
|
|
282
285
|
}, [state.disabledKeys, state.selectedItem, state.selectedKey, props.children]);
|
|
283
|
-
return
|
|
286
|
+
return jsxRuntimeExports.jsx(Tabs, {
|
|
284
287
|
containerComponent: "div",
|
|
285
288
|
containerProps: {},
|
|
286
289
|
listComponent: "div",
|
|
287
290
|
listProps: tabListProps,
|
|
288
|
-
listRef: ref
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
})
|
|
291
|
+
listRef: ref,
|
|
292
|
+
children: [...state.collection].map((item) => jsxRuntimeExports.jsx(TabPanelsTab, {
|
|
293
|
+
item,
|
|
294
|
+
state
|
|
295
|
+
}, item.key))
|
|
296
|
+
});
|
|
294
297
|
}
|
|
295
298
|
function TabPanelsTab({ item, state }) {
|
|
296
299
|
const ref = React__default.useRef(null);
|
|
@@ -299,12 +302,14 @@ function TabPanelsTab({ item, state }) {
|
|
|
299
302
|
}, state, ref);
|
|
300
303
|
const isSelected = state.selectedItem === item;
|
|
301
304
|
const isDisabled = state.disabledKeys.has(item.key) || state.isDisabled;
|
|
302
|
-
return
|
|
305
|
+
return jsxRuntimeExports.jsx(Tabs.Item, __spreadProps(__spreadValues({
|
|
303
306
|
tabComponent: "div",
|
|
304
307
|
tabRef: ref,
|
|
305
308
|
isSelected,
|
|
306
309
|
isDisabled
|
|
307
|
-
}, tabProps),
|
|
310
|
+
}, tabProps), {
|
|
311
|
+
children: item.rendered
|
|
312
|
+
}));
|
|
308
313
|
}
|
|
309
314
|
function TabPanels(props) {
|
|
310
315
|
const [tabListState, setTabListState] = useState(null);
|
|
@@ -315,9 +320,10 @@ function TabPanels(props) {
|
|
|
315
320
|
setTabListState
|
|
316
321
|
};
|
|
317
322
|
}, [tabListState, props]);
|
|
318
|
-
return
|
|
319
|
-
value: context
|
|
320
|
-
|
|
323
|
+
return jsxRuntimeExports.jsx(TabPanelsContext.Provider, {
|
|
324
|
+
value: context,
|
|
325
|
+
children: props.children
|
|
326
|
+
});
|
|
321
327
|
}
|
|
322
328
|
TabPanels.Tabs = TabPanelsTabs;
|
|
323
329
|
TabPanels.Panels = TabPanelsPanels;
|
package/Tabs/index.js
CHANGED
package/Tabs/index.mjs
CHANGED
package/Text/index.js
CHANGED
package/Text/index.mjs
CHANGED
package/TextField/index.js
CHANGED
package/TextField/index.mjs
CHANGED
package/Textarea/index.js
CHANGED
|
@@ -28,11 +28,11 @@ var __objRest = (source, exclude) => {
|
|
|
28
28
|
return target;
|
|
29
29
|
};
|
|
30
30
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
31
|
-
const
|
|
32
|
-
const InputField = require("../__chunks__/InputField-
|
|
31
|
+
const jsxRuntime = require("../__chunks__/jsx-runtime-CH1d66I3.js");
|
|
32
|
+
const InputField = require("../__chunks__/InputField-Dvkk5R1K.js");
|
|
33
33
|
function Textarea(props) {
|
|
34
34
|
const _a = props, { size = "md", isDisabled = false, isRequired = false, validationState = "valid", isLabelEmphasized = false, autoFocus = false, rows = 1 } = _a, restProps = __objRest(_a, ["size", "isDisabled", "isRequired", "validationState", "isLabelEmphasized", "autoFocus", "rows"]);
|
|
35
|
-
return
|
|
35
|
+
return jsxRuntime.jsxRuntimeExports.jsx(InputField.InputField, __spreadValues({
|
|
36
36
|
isMultiline: true,
|
|
37
37
|
size,
|
|
38
38
|
isDisabled,
|
package/Textarea/index.mjs
CHANGED
|
@@ -26,11 +26,11 @@ var __objRest = (source, exclude) => {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
|
-
import
|
|
30
|
-
import { I as InputField } from "../__chunks__/InputField-
|
|
29
|
+
import { j as jsxRuntimeExports } from "../__chunks__/jsx-runtime-DTpFD6nx.mjs";
|
|
30
|
+
import { I as InputField } from "../__chunks__/InputField-BTrYBVAD.mjs";
|
|
31
31
|
function Textarea(props) {
|
|
32
32
|
const _a = props, { size = "md", isDisabled = false, isRequired = false, validationState = "valid", isLabelEmphasized = false, autoFocus = false, rows = 1 } = _a, restProps = __objRest(_a, ["size", "isDisabled", "isRequired", "validationState", "isLabelEmphasized", "autoFocus", "rows"]);
|
|
33
|
-
return
|
|
33
|
+
return jsxRuntimeExports.jsx(InputField, __spreadValues({
|
|
34
34
|
isMultiline: true,
|
|
35
35
|
size,
|
|
36
36
|
isDisabled,
|
package/Theme/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const Theme = require("../__chunks__/Theme-
|
|
3
|
+
const Theme = require("../__chunks__/Theme-unLHjjnm.js");
|
|
4
4
|
exports.ThemeProvider = Theme.ThemeProvider;
|
|
5
5
|
exports.createTheme = Theme.createTheme;
|
|
6
6
|
exports.defaultTheme = Theme.defaultTheme;
|
package/Theme/index.mjs
CHANGED
package/Toggle/index.js
CHANGED
package/Toggle/index.mjs
CHANGED
package/ToggleCard/index.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("../__chunks__/jsx-runtime-CH1d66I3.js");
|
|
3
4
|
const React = require("react");
|
|
4
|
-
const Card = require("../__chunks__/Card-
|
|
5
|
-
const HorizontalStack = require("../__chunks__/HorizontalStack-
|
|
5
|
+
const Card = require("../__chunks__/Card-DIZFYg6E.js");
|
|
6
|
+
const HorizontalStack = require("../__chunks__/HorizontalStack-DidoI4Ks.js");
|
|
6
7
|
const utilities_react = require("../utilities/react.js");
|
|
7
8
|
function ToggleCard(props) {
|
|
8
9
|
const { children } = props;
|
|
9
|
-
return
|
|
10
|
-
borderRadius: "lg"
|
|
11
|
-
|
|
10
|
+
return jsxRuntime.jsxRuntimeExports.jsx(Card.Card.Container, {
|
|
11
|
+
borderRadius: "lg",
|
|
12
|
+
children
|
|
13
|
+
});
|
|
12
14
|
}
|
|
13
15
|
function ToggleCardHeader(props) {
|
|
14
16
|
const { children } = props;
|
|
@@ -25,22 +27,25 @@ function ToggleCardHeader(props) {
|
|
|
25
27
|
throw new Error("ToggleCard.Header must contain Toggle");
|
|
26
28
|
}
|
|
27
29
|
}, [children]);
|
|
28
|
-
return
|
|
30
|
+
return jsxRuntime.jsxRuntimeExports.jsx(Card.Card.Area, {
|
|
29
31
|
background: "neutral.050",
|
|
30
32
|
paddingY: "0.5",
|
|
31
|
-
paddingX: "1"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
paddingX: "1",
|
|
34
|
+
children: jsxRuntime.jsxRuntimeExports.jsx(HorizontalStack.HorizontalStack, {
|
|
35
|
+
gap: "2",
|
|
36
|
+
align: "space-between",
|
|
37
|
+
blockAlign: "center",
|
|
38
|
+
children
|
|
39
|
+
})
|
|
40
|
+
});
|
|
37
41
|
}
|
|
38
42
|
function ToggleCardBody(props) {
|
|
39
43
|
const { children } = props;
|
|
40
|
-
return
|
|
44
|
+
return jsxRuntime.jsxRuntimeExports.jsx(Card.Card.Area, {
|
|
41
45
|
paddingX: "0.5",
|
|
42
|
-
paddingY: "1"
|
|
43
|
-
|
|
46
|
+
paddingY: "1",
|
|
47
|
+
children
|
|
48
|
+
});
|
|
44
49
|
}
|
|
45
50
|
ToggleCard.Header = ToggleCardHeader;
|
|
46
51
|
ToggleCard.Body = ToggleCardBody;
|
package/ToggleCard/index.mjs
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { j as jsxRuntimeExports } from "../__chunks__/jsx-runtime-DTpFD6nx.mjs";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { C as Card } from "../__chunks__/Card-8778avMv.mjs";
|
|
4
|
+
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-BkE82C73.mjs";
|
|
4
5
|
import { flattenChildren, getDisplayNameFromReactNode } from "../utilities/react.mjs";
|
|
5
6
|
function ToggleCard(props) {
|
|
6
7
|
const { children } = props;
|
|
7
|
-
return
|
|
8
|
-
borderRadius: "lg"
|
|
9
|
-
|
|
8
|
+
return jsxRuntimeExports.jsx(Card.Container, {
|
|
9
|
+
borderRadius: "lg",
|
|
10
|
+
children
|
|
11
|
+
});
|
|
10
12
|
}
|
|
11
13
|
function ToggleCardHeader(props) {
|
|
12
14
|
const { children } = props;
|
|
@@ -23,22 +25,25 @@ function ToggleCardHeader(props) {
|
|
|
23
25
|
throw new Error("ToggleCard.Header must contain Toggle");
|
|
24
26
|
}
|
|
25
27
|
}, [children]);
|
|
26
|
-
return
|
|
28
|
+
return jsxRuntimeExports.jsx(Card.Area, {
|
|
27
29
|
background: "neutral.050",
|
|
28
30
|
paddingY: "0.5",
|
|
29
|
-
paddingX: "1"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
paddingX: "1",
|
|
32
|
+
children: jsxRuntimeExports.jsx(HorizontalStack, {
|
|
33
|
+
gap: "2",
|
|
34
|
+
align: "space-between",
|
|
35
|
+
blockAlign: "center",
|
|
36
|
+
children
|
|
37
|
+
})
|
|
38
|
+
});
|
|
35
39
|
}
|
|
36
40
|
function ToggleCardBody(props) {
|
|
37
41
|
const { children } = props;
|
|
38
|
-
return
|
|
42
|
+
return jsxRuntimeExports.jsx(Card.Area, {
|
|
39
43
|
paddingX: "0.5",
|
|
40
|
-
paddingY: "1"
|
|
41
|
-
|
|
44
|
+
paddingY: "1",
|
|
45
|
+
children
|
|
46
|
+
});
|
|
42
47
|
}
|
|
43
48
|
ToggleCard.Header = ToggleCardHeader;
|
|
44
49
|
ToggleCard.Body = ToggleCardBody;
|
package/Tooltip/index.js
CHANGED
package/Tooltip/index.mjs
CHANGED
package/UnstyledButton/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const UnstyledButton = require("../__chunks__/UnstyledButton-
|
|
3
|
+
const UnstyledButton = require("../__chunks__/UnstyledButton-_YQekhlm.js");
|
|
4
4
|
exports.UnstyledButton = UnstyledButton.UnstyledButton;
|
package/UnstyledButton/index.mjs
CHANGED