@planningcenter/tapestry 4.14.0 → 4.14.1-qa-1664.0
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/components/DataTable/ActiveFilters.d.ts +6 -1
- package/dist/components/DataTable/ActiveFilters.d.ts.map +1 -1
- package/dist/components/DataTable/ActiveFilters.js +18 -10
- package/dist/components/DataTable/ActiveFilters.js.map +1 -1
- package/dist/components/DataTable/CollectionEditorsStatic.js +2 -2
- package/dist/components/DataTable/CollectionEditorsStatic.js.map +1 -1
- package/dist/components/DataTable/DataTable.d.ts +8 -5
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.js +26 -14
- package/dist/components/DataTable/DataTable.js.map +1 -1
- package/dist/components/DataTable/DataTableColumn.d.ts +12 -3
- package/dist/components/DataTable/DataTableColumn.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableColumnTypes.js +4 -4
- package/dist/components/DataTable/DataTableColumnTypes.js.map +1 -1
- package/dist/components/DataTable/ResultsCount.d.ts +2 -2
- package/dist/components/DataTable/ResultsCount.d.ts.map +1 -1
- package/dist/components/DataTable/ResultsCount.js +8 -7
- package/dist/components/DataTable/ResultsCount.js.map +1 -1
- package/dist/components/DataTable/SelectAllBanner.d.ts.map +1 -1
- package/dist/components/DataTable/SelectAllBanner.js +5 -3
- package/dist/components/DataTable/SelectAllBanner.js.map +1 -1
- package/dist/components/DataTable/TableActions.d.ts.map +1 -1
- package/dist/components/DataTable/TableActions.js +5 -3
- package/dist/components/DataTable/TableActions.js.map +1 -1
- package/dist/components/DataTable/dateFilter.js +28 -10
- package/dist/components/DataTable/dateFilter.js.map +1 -1
- package/dist/components/DataTable/dayFilter.js +4 -3
- package/dist/components/DataTable/dayFilter.js.map +1 -1
- package/dist/components/DataTable/numberFilter.js +2 -2
- package/dist/components/DataTable/numberFilter.js.map +1 -1
- package/dist/components/DataTable/useIsNarrowViewport.d.ts.map +1 -1
- package/dist/components/DataTable/useIsNarrowViewport.js +3 -1
- package/dist/components/DataTable/useIsNarrowViewport.js.map +1 -1
- package/dist/components/DataTable/useResultsAnnouncement.d.ts.map +1 -1
- package/dist/components/DataTable/useResultsAnnouncement.js +3 -1
- package/dist/components/DataTable/useResultsAnnouncement.js.map +1 -1
- package/dist/components/DataTable/useSavedViewsClient.d.ts +9 -2
- package/dist/components/DataTable/useSavedViewsClient.d.ts.map +1 -1
- package/dist/components/DataTable/useSavedViewsClient.js +9 -2
- package/dist/components/DataTable/useSavedViewsClient.js.map +1 -1
- package/dist/components/DataTable/useShelfExpanded.d.ts +4 -3
- package/dist/components/DataTable/useShelfExpanded.d.ts.map +1 -1
- package/dist/components/DataTable/useShelfExpanded.js +21 -5
- package/dist/components/DataTable/useShelfExpanded.js.map +1 -1
- package/dist/components/DataTable/views.js +1 -4
- package/dist/components/DataTable/views.js.map +1 -1
- package/dist/components/button/ActionsDropdownIconButton.js +3 -3
- package/dist/components/button/ActionsDropdownIconButton.js.map +1 -1
- package/dist/components/button/BaseButton.js +4 -4
- package/dist/components/button/BaseButton.js.map +1 -1
- package/dist/components/button/Button.js +2 -2
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/button/DropdownButton.js +3 -3
- package/dist/components/button/DropdownButton.js.map +1 -1
- package/dist/components/button/DropdownIconButton.js +2 -2
- package/dist/components/button/DropdownIconButton.js.map +1 -1
- package/dist/components/button/IconButton.js +5 -5
- package/dist/components/button/IconButton.js.map +1 -1
- package/dist/components/button/LoadingButton.js +2 -2
- package/dist/components/button/LoadingButton.js.map +1 -1
- package/dist/components/button/PageHeaderActionsDropdownButton.js +3 -3
- package/dist/components/button/PageHeaderActionsDropdownButton.js.map +1 -1
- package/dist/components/combo-box/ComboBox.d.ts.map +1 -1
- package/dist/components/combo-box/ComboBox.js +46 -31
- package/dist/components/combo-box/ComboBox.js.map +1 -1
- package/dist/components/currency-input/CurrencyInput.d.ts +1 -1
- package/dist/components/currency-input/CurrencyInput.d.ts.map +1 -1
- package/dist/components/currency-input/CurrencyInput.js +4 -1
- package/dist/components/currency-input/CurrencyInput.js.map +1 -1
- package/dist/components/date-picker/DatePicker.d.ts +1 -1
- package/dist/components/date-picker/DatePicker.d.ts.map +1 -1
- package/dist/components/date-picker/DatePicker.js +99 -96
- package/dist/components/date-picker/DatePicker.js.map +1 -1
- package/dist/components/dropdown/Dropdown.js +13 -13
- package/dist/components/dropdown/Dropdown.js.map +1 -1
- package/dist/components/field/Field.js +5 -5
- package/dist/components/field/Field.js.map +1 -1
- package/dist/components/internal/LoadingSpinner.js +2 -2
- package/dist/components/internal/LoadingSpinner.js.map +1 -1
- package/dist/components/internal/tooltip/Tooltip.js +8 -8
- package/dist/components/internal/tooltip/Tooltip.js.map +1 -1
- package/dist/components/link/BaseLink.js +3 -3
- package/dist/components/link/BaseLink.js.map +1 -1
- package/dist/components/link/IconLink.js +5 -5
- package/dist/components/link/IconLink.js.map +1 -1
- package/dist/components/link/Link.js +2 -2
- package/dist/components/link/Link.js.map +1 -1
- package/dist/components/number-stepper/NumberStepper.js +11 -11
- package/dist/components/number-stepper/NumberStepper.js.map +1 -1
- package/dist/components/page-header/PageHeader.js +10 -10
- package/dist/components/page-header/PageHeader.js.map +1 -1
- package/dist/components/search-input/SearchInput.js +6 -6
- package/dist/components/search-input/SearchInput.js.map +1 -1
- package/dist/components/segmented-control/IconSegment.js +1 -1
- package/dist/components/segmented-control/IconSegment.js.map +1 -1
- package/dist/components/select/Select.js +6 -6
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/select/SelectNative.js +6 -6
- package/dist/components/select/SelectNative.js.map +1 -1
- package/dist/components/select/SelectOptions.js +9 -9
- package/dist/components/select/SelectOptions.js.map +1 -1
- package/dist/components/select/SelectPopover.js +14 -14
- package/dist/components/select/SelectPopover.js.map +1 -1
- package/dist/components/sidenav/Sidenav.js +6 -6
- package/dist/components/sidenav/Sidenav.js.map +1 -1
- package/dist/components/sidenav/SidenavItem.js +2 -2
- package/dist/components/sidenav/SidenavItem.js.map +1 -1
- package/dist/components/sidenav/SidenavSection.js +7 -7
- package/dist/components/sidenav/SidenavSection.js.map +1 -1
- package/dist/components/sidenav/private/SidenavResponsiveHeader.js +6 -6
- package/dist/components/sidenav/private/SidenavResponsiveHeader.js.map +1 -1
- package/dist/components/sidenav/private/withSlotChildrenAsActions.js +7 -7
- package/dist/components/sidenav/private/withSlotChildrenAsActions.js.map +1 -1
- package/dist/components/time-field/TimeField.d.ts.map +1 -1
- package/dist/components/time-field/TimeField.js +13 -10
- package/dist/components/time-field/TimeField.js.map +1 -1
- package/dist/packages/tapestry-render/dist/buildComponent-DzY2PDMT.js +4 -4
- package/dist/packages/tapestry-render/dist/buildComponent-DzY2PDMT.js.map +1 -1
- package/dist/reactRender.css +1463 -1460
- package/dist/reactRender.css.map +1 -1
- package/dist/reactRenderLegacy.css +1463 -1460
- package/dist/reactRenderLegacy.css.map +1 -1
- package/dist/tapestryMount.css +1463 -1460
- package/dist/tapestryMount.css.map +1 -1
- package/dist/tapestryMountLegacy.css +1463 -1460
- package/dist/tapestryMountLegacy.css.map +1 -1
- package/dist/unstable.css +3 -0
- package/dist/unstable.css.map +1 -1
- package/dist/utilities/Icon.js +2 -2
- package/dist/utilities/Icon.js.map +1 -1
- package/dist/utilities/buttonLinkShared.js +2 -2
- package/dist/utilities/buttonLinkShared.js.map +1 -1
- package/dist/utilities/locale.d.ts +4 -4
- package/dist/utilities/locale.js +5 -5
- package/dist/utilities/locale.js.map +1 -1
- package/dist/utilities/useDateFieldLocale.js +2 -2
- package/dist/utilities/useDateFieldLocale.js.map +1 -1
- package/docs/components/DataTable.md +158 -0
- package/docs/llms.txt +3 -0
- package/package.json +8 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidenavResponsiveHeader.js","sources":["../../../../src/components/sidenav/private/SidenavResponsiveHeader.tsx"],"sourcesContent":["import React from \"react\"\n\nexport function SidenavResponsiveHeader({\n label,\n popoverId,\n}: {\n label?: string\n popoverId: string\n}) {\n return (\n <div className=\"tds-sidenav-responsive-header\">\n {label && (\n <h2 className=\"tds-sidenav-responsive-header-label\">{label}</h2>\n )}\n <button\n type=\"button\"\n className=\"tds-btn tds-btn--outline-neutral tds-btn--icononly tds-sidenav-responsive-header-toggle\"\n aria-label=\"Menu\"\n aria-controls={popoverId}\n popovertarget={popoverId}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M0 6.91104H16V8.68904H0V6.91104ZM0 13.133H16V11.356H0V13.133ZM0 2.46704V4.24404H16V2.46704H0Z\"\n fill=\"currentColor\"\n />\n </svg>\n </button>\n </div>\n )\n}\n"],"names":[],"mappings":";;SAEgB,uBAAuB,CAAC,EACtC,KAAK,EACL,SAAS,GAIV,EAAA;AACC,IAAA,
|
|
1
|
+
{"version":3,"file":"SidenavResponsiveHeader.js","sources":["../../../../src/components/sidenav/private/SidenavResponsiveHeader.tsx"],"sourcesContent":["import React from \"react\"\n\nexport function SidenavResponsiveHeader({\n label,\n popoverId,\n}: {\n label?: string\n popoverId: string\n}) {\n return (\n <div className=\"tds-sidenav-responsive-header\">\n {label && (\n <h2 className=\"tds-sidenav-responsive-header-label\">{label}</h2>\n )}\n <button\n type=\"button\"\n className=\"tds-btn tds-btn--outline-neutral tds-btn--icononly tds-sidenav-responsive-header-toggle\"\n aria-label=\"Menu\"\n aria-controls={popoverId}\n popovertarget={popoverId}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M0 6.91104H16V8.68904H0V6.91104ZM0 13.133H16V11.356H0V13.133ZM0 2.46704V4.24404H16V2.46704H0Z\"\n fill=\"currentColor\"\n />\n </svg>\n </button>\n </div>\n )\n}\n"],"names":["React"],"mappings":";;SAEgB,uBAAuB,CAAC,EACtC,KAAK,EACL,SAAS,GAIV,EAAA;AACC,IAAA,QACEA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,+BAA+B,EAAA;QAC3C,KAAK,KACJA,cAAA,CAAA,aAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAC,qCAAqC,EAAA,EAAE,KAAK,CAAM,CACjE;AACD,QAAAA,cAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,yFAAyF,EAAA,YAAA,EACxF,MAAM,EAAA,eAAA,EACF,SAAS,EACxB,aAAa,EAAE,SAAS,EAAA;YAExBA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,iBACC,MAAM,EAAA;AAElB,gBAAAA,cAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EACE,CAAC,EAAC,+FAA+F,EACjG,IAAI,EAAC,cAAc,EAAA,CACnB,CACE,CACC,CACL;AAEV;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
let warned = false;
|
|
4
4
|
/**
|
|
@@ -32,18 +32,18 @@ function withSlotChildrenAsActions(props) {
|
|
|
32
32
|
}
|
|
33
33
|
// Fragments render no DOM, so the web component slotted their children too.
|
|
34
34
|
function partitionSlotChildren(node, slotted, keyPrefix = "") {
|
|
35
|
-
return
|
|
36
|
-
if (!
|
|
35
|
+
return React__default.Children.toArray(node).flatMap((child) => {
|
|
36
|
+
if (!React__default.isValidElement(child))
|
|
37
37
|
return [child];
|
|
38
|
-
if (child.type ===
|
|
38
|
+
if (child.type === React__default.Fragment) {
|
|
39
39
|
const rest = partitionSlotChildren(child.props.children, slotted, `${keyPrefix}${child.key}`);
|
|
40
|
-
return [
|
|
40
|
+
return [React__default.cloneElement(child, undefined, ...rest)];
|
|
41
41
|
}
|
|
42
42
|
const { slot } = child.props;
|
|
43
43
|
if (slot !== "label-actions" && slot !== "section-actions")
|
|
44
44
|
return [child];
|
|
45
45
|
const keyed = keyPrefix
|
|
46
|
-
?
|
|
46
|
+
? React__default.cloneElement(child, { key: `${keyPrefix}${child.key}` })
|
|
47
47
|
: child;
|
|
48
48
|
if (slot === "label-actions")
|
|
49
49
|
slotted.labelActions.push(keyed);
|
|
@@ -55,7 +55,7 @@ function partitionSlotChildren(node, slotted, keyPrefix = "") {
|
|
|
55
55
|
function appendActions(actions, slotted) {
|
|
56
56
|
if (!slotted.length)
|
|
57
57
|
return actions;
|
|
58
|
-
return
|
|
58
|
+
return React__default.createElement(React__default.Fragment, null, actions, ...slotted);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
export { withSlotChildrenAsActions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withSlotChildrenAsActions.js","sources":["../../../../src/components/sidenav/private/withSlotChildrenAsActions.ts"],"sourcesContent":["import React from \"react\"\n\ntype SectionActionProps = {\n children: React.ReactNode\n labelActions?: React.ReactNode\n sectionActions?: React.ReactNode\n}\n\nlet warned = false\n\n/**\n * Backward compatibility for `SidenavSection` children marked with\n * `slot=\"label-actions\"` or `slot=\"section-actions\"`, from when it wrapped the\n * `tds-sidenav-section` web component. Moves them into the `labelActions` and\n * `sectionActions` props. Remove in DE-1292.\n */\nexport function withSlotChildrenAsActions<P extends SectionActionProps>(\n props: P\n): P {\n const labelActions: React.ReactNode[] = []\n const sectionActions: React.ReactNode[] = []\n const children = partitionSlotChildren(props.children, {\n labelActions,\n sectionActions,\n })\n\n if (!labelActions.length && !sectionActions.length) return props\n\n if (!warned) {\n warned = true\n console.warn(\n '[tapestry] SidenavSection children with slot=\"label-actions\" or ' +\n 'slot=\"section-actions\" are deprecated and will be removed in the ' +\n \"next major version. Pass them as the labelActions and \" +\n \"sectionActions props instead.\"\n )\n }\n\n return {\n ...props,\n children,\n labelActions: appendActions(props.labelActions, labelActions),\n sectionActions: appendActions(props.sectionActions, sectionActions),\n }\n}\n\ntype SlotChildren = {\n labelActions: React.ReactNode[]\n sectionActions: React.ReactNode[]\n}\n\n// Fragments render no DOM, so the web component slotted their children too.\nfunction partitionSlotChildren(\n node: React.ReactNode,\n slotted: SlotChildren,\n keyPrefix = \"\"\n): React.ReactNode[] {\n return React.Children.toArray(node).flatMap((child) => {\n if (\n !React.isValidElement<{ children?: React.ReactNode; slot?: string }>(\n child\n )\n )\n return [child]\n\n if (child.type === React.Fragment) {\n const rest = partitionSlotChildren(\n child.props.children,\n slotted,\n `${keyPrefix}${child.key}`\n )\n return [React.cloneElement(child, undefined, ...rest)]\n }\n\n const { slot } = child.props\n if (slot !== \"label-actions\" && slot !== \"section-actions\") return [child]\n\n const keyed = keyPrefix\n ? React.cloneElement(child, { key: `${keyPrefix}${child.key}` })\n : child\n if (slot === \"label-actions\") slotted.labelActions.push(keyed)\n else slotted.sectionActions.push(keyed)\n return []\n })\n}\n\nfunction appendActions(actions: React.ReactNode, slotted: React.ReactNode[]) {\n if (!slotted.length) return actions\n return React.createElement(React.Fragment, null, actions, ...slotted)\n}\n"],"names":[],"mappings":";;AAQA,IAAI,MAAM,GAAG,KAAK;AAElB;;;;;AAKG;AACG,SAAU,yBAAyB,CACvC,KAAQ,EAAA;IAER,MAAM,YAAY,GAAsB,EAAE;IAC1C,MAAM,cAAc,GAAsB,EAAE;AAC5C,IAAA,MAAM,QAAQ,GAAG,qBAAqB,CAAC,KAAK,CAAC,QAAQ,EAAE;QACrD,YAAY;QACZ,cAAc;AACf,KAAA,CAAC;IAEF,IAAI,CAAC,YAAY,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM;AAAE,QAAA,OAAO,KAAK;IAEhE,IAAI,CAAC,MAAM,EAAE;QACX,MAAM,GAAG,IAAI;QACb,OAAO,CAAC,IAAI,CACV,kEAAkE;YAChE,mEAAmE;YACnE,wDAAwD;AACxD,YAAA,+BAA+B,CAClC;IACH;IAEA,OAAO;AACL,QAAA,GAAG,KAAK;QACR,QAAQ;QACR,YAAY,EAAE,aAAa,CAAC,KAAK,CAAC,YAAY,EAAE,YAAY,CAAC;QAC7D,cAAc,EAAE,aAAa,CAAC,KAAK,CAAC,cAAc,EAAE,cAAc,CAAC;KACpE;AACH;AAOA;AACA,SAAS,qBAAqB,CAC5B,IAAqB,EACrB,OAAqB,EACrB,SAAS,GAAG,EAAE,EAAA;AAEd,IAAA,
|
|
1
|
+
{"version":3,"file":"withSlotChildrenAsActions.js","sources":["../../../../src/components/sidenav/private/withSlotChildrenAsActions.ts"],"sourcesContent":["import React from \"react\"\n\ntype SectionActionProps = {\n children: React.ReactNode\n labelActions?: React.ReactNode\n sectionActions?: React.ReactNode\n}\n\nlet warned = false\n\n/**\n * Backward compatibility for `SidenavSection` children marked with\n * `slot=\"label-actions\"` or `slot=\"section-actions\"`, from when it wrapped the\n * `tds-sidenav-section` web component. Moves them into the `labelActions` and\n * `sectionActions` props. Remove in DE-1292.\n */\nexport function withSlotChildrenAsActions<P extends SectionActionProps>(\n props: P\n): P {\n const labelActions: React.ReactNode[] = []\n const sectionActions: React.ReactNode[] = []\n const children = partitionSlotChildren(props.children, {\n labelActions,\n sectionActions,\n })\n\n if (!labelActions.length && !sectionActions.length) return props\n\n if (!warned) {\n warned = true\n console.warn(\n '[tapestry] SidenavSection children with slot=\"label-actions\" or ' +\n 'slot=\"section-actions\" are deprecated and will be removed in the ' +\n \"next major version. Pass them as the labelActions and \" +\n \"sectionActions props instead.\"\n )\n }\n\n return {\n ...props,\n children,\n labelActions: appendActions(props.labelActions, labelActions),\n sectionActions: appendActions(props.sectionActions, sectionActions),\n }\n}\n\ntype SlotChildren = {\n labelActions: React.ReactNode[]\n sectionActions: React.ReactNode[]\n}\n\n// Fragments render no DOM, so the web component slotted their children too.\nfunction partitionSlotChildren(\n node: React.ReactNode,\n slotted: SlotChildren,\n keyPrefix = \"\"\n): React.ReactNode[] {\n return React.Children.toArray(node).flatMap((child) => {\n if (\n !React.isValidElement<{ children?: React.ReactNode; slot?: string }>(\n child\n )\n )\n return [child]\n\n if (child.type === React.Fragment) {\n const rest = partitionSlotChildren(\n child.props.children,\n slotted,\n `${keyPrefix}${child.key}`\n )\n return [React.cloneElement(child, undefined, ...rest)]\n }\n\n const { slot } = child.props\n if (slot !== \"label-actions\" && slot !== \"section-actions\") return [child]\n\n const keyed = keyPrefix\n ? React.cloneElement(child, { key: `${keyPrefix}${child.key}` })\n : child\n if (slot === \"label-actions\") slotted.labelActions.push(keyed)\n else slotted.sectionActions.push(keyed)\n return []\n })\n}\n\nfunction appendActions(actions: React.ReactNode, slotted: React.ReactNode[]) {\n if (!slotted.length) return actions\n return React.createElement(React.Fragment, null, actions, ...slotted)\n}\n"],"names":["React"],"mappings":";;AAQA,IAAI,MAAM,GAAG,KAAK;AAElB;;;;;AAKG;AACG,SAAU,yBAAyB,CACvC,KAAQ,EAAA;IAER,MAAM,YAAY,GAAsB,EAAE;IAC1C,MAAM,cAAc,GAAsB,EAAE;AAC5C,IAAA,MAAM,QAAQ,GAAG,qBAAqB,CAAC,KAAK,CAAC,QAAQ,EAAE;QACrD,YAAY;QACZ,cAAc;AACf,KAAA,CAAC;IAEF,IAAI,CAAC,YAAY,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM;AAAE,QAAA,OAAO,KAAK;IAEhE,IAAI,CAAC,MAAM,EAAE;QACX,MAAM,GAAG,IAAI;QACb,OAAO,CAAC,IAAI,CACV,kEAAkE;YAChE,mEAAmE;YACnE,wDAAwD;AACxD,YAAA,+BAA+B,CAClC;IACH;IAEA,OAAO;AACL,QAAA,GAAG,KAAK;QACR,QAAQ;QACR,YAAY,EAAE,aAAa,CAAC,KAAK,CAAC,YAAY,EAAE,YAAY,CAAC;QAC7D,cAAc,EAAE,aAAa,CAAC,KAAK,CAAC,cAAc,EAAE,cAAc,CAAC;KACpE;AACH;AAOA;AACA,SAAS,qBAAqB,CAC5B,IAAqB,EACrB,OAAqB,EACrB,SAAS,GAAG,EAAE,EAAA;AAEd,IAAA,OAAOA,cAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,KAAI;AACpD,QAAA,IACE,CAACA,cAAK,CAAC,cAAc,CACnB,KAAK,CACN;YAED,OAAO,CAAC,KAAK,CAAC;QAEhB,IAAI,KAAK,CAAC,IAAI,KAAKA,cAAK,CAAC,QAAQ,EAAE;YACjC,MAAM,IAAI,GAAG,qBAAqB,CAChC,KAAK,CAAC,KAAK,CAAC,QAAQ,EACpB,OAAO,EACP,CAAA,EAAG,SAAS,CAAA,EAAG,KAAK,CAAC,GAAG,CAAA,CAAE,CAC3B;AACD,YAAA,OAAO,CAACA,cAAK,CAAC,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,CAAC;QACxD;AAEA,QAAA,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC,KAAK;AAC5B,QAAA,IAAI,IAAI,KAAK,eAAe,IAAI,IAAI,KAAK,iBAAiB;YAAE,OAAO,CAAC,KAAK,CAAC;QAE1E,MAAM,KAAK,GAAG;AACZ,cAAEA,cAAK,CAAC,YAAY,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,CAAA,EAAG,SAAS,CAAA,EAAG,KAAK,CAAC,GAAG,CAAA,CAAE,EAAE;cAC7D,KAAK;QACT,IAAI,IAAI,KAAK,eAAe;AAAE,YAAA,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;;AACzD,YAAA,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC;AACvC,QAAA,OAAO,EAAE;AACX,IAAA,CAAC,CAAC;AACJ;AAEA,SAAS,aAAa,CAAC,OAAwB,EAAE,OAA0B,EAAA;IACzE,IAAI,CAAC,OAAO,CAAC,MAAM;AAAE,QAAA,OAAO,OAAO;AACnC,IAAA,OAAOA,cAAK,CAAC,aAAa,CAACA,cAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;AACvE;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeField.d.ts","sourceRoot":"","sources":["../../../src/components/time-field/TimeField.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAA;AAC3B,OAAO,aAAa,CAAA;AAEpB,OAAO,EACL,KAAK,gBAAgB,EAErB,KAAK,IAAI,EACT,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"TimeField.d.ts","sourceRoot":"","sources":["../../../src/components/time-field/TimeField.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAA;AAC3B,OAAO,aAAa,CAAA;AAEpB,OAAO,EACL,KAAK,gBAAgB,EAErB,KAAK,IAAI,EACT,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAA;AAGhC,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAA;AAGhF,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAML,KAAK,cAAc,IAAI,kBAAkB,EAC1C,MAAM,iCAAiC,CAAA;AAExC,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,CAAA;AAEvC,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG,IAAI,GAAG,aAAa,CAAA;AAEpE,MAAM,WAAW,cAAc;IAC7B,0GAA0G;IAC1G,YAAY,CAAC,EAAE,cAAc,GAAG,MAAM,CAAA;IACtC,gGAAgG;IAChG,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,+DAA+D;IAC/D,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,oDAAoD;IACpD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,qEAAqE;IACrE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,mGAAmG;IACnG,GAAG,CAAC,EAAE,cAAc,GAAG,MAAM,CAAA;IAC7B,mGAAmG;IACnG,GAAG,CAAC,EAAE,cAAc,GAAG,MAAM,CAAA;IAC7B,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kCAAkC;IAClC,IAAI,CAAC,EAAE,aAAa,CAAA;CACrB;AAED,KAAK,wBAAwB,GACzB,UAAU,GACV,aAAa,GACb,kBAAkB,GAClB,yBAAyB,GACzB,MAAM,CAAA;AAEV,KAAK,2BAA2B,GAC5B,cAAc,GACd,WAAW,GACX,MAAM,GACN,UAAU,GACV,OAAO,CAAA;AAEX,MAAM,MAAM,qBAAqB,GAAG,+BAA+B,CACjE,kBAAkB,CAAC,cAAc,CAAC,EAClC,cAAc,EACd,wBAAwB,EACxB,2BAA2B,CAC5B,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,iBAAiB,EACjB,SAAS,EACT,OAAO,EACP,KAAK,EACL,GAAG,EACH,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,IAAW,EACX,GAAG,SAAS,EACb,EAAE,qBAAqB,qBAgEvB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { parseTime as $58246871e4652552$export$c9698ec7f05a07e1 } from './../../ext/@internationalized/date/dist/private/string.js';
|
|
2
2
|
import Icon from '../../utilities/Icon.js';
|
|
3
|
+
import { useTapestryLocale } from '../../utilities/locale.js';
|
|
3
4
|
import { useDateFieldLocale } from '../../utilities/useDateFieldLocale.js';
|
|
4
5
|
import classNames from 'classnames';
|
|
5
|
-
import
|
|
6
|
+
import React__default from 'react';
|
|
6
7
|
import { I18nProvider } from 'react-aria/I18nProvider';
|
|
7
8
|
import { TimeField as TimeField$1, Label, DateInput, DateSegment, Text } from 'react-aria-components/TimeField';
|
|
8
9
|
|
|
@@ -24,16 +25,18 @@ function TimeField({ className, defaultValue, description, disabled, forceLeadin
|
|
|
24
25
|
"tds-field--lg": size === "lg",
|
|
25
26
|
"tds-time-field--lg": size === "lg",
|
|
26
27
|
}, className);
|
|
28
|
+
const locale = useTapestryLocale();
|
|
27
29
|
const dateFieldLocale = useDateFieldLocale();
|
|
28
|
-
return (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
return (React__default.createElement(I18nProvider, { locale: locale },
|
|
31
|
+
React__default.createElement(TimeField$1, { ...restProps, "aria-label": hideLabel ? label : undefined, className: combinedClassName, defaultValue: asTimeFieldValue(defaultValue), granularity: "minute", isDisabled: disabled, isReadOnly: readOnly, isRequired: required, maxValue: asTimeFieldValue(max), minValue: asTimeFieldValue(min), shouldForceLeadingZeros: forceLeadingZeros },
|
|
32
|
+
!hideLabel && React__default.createElement(Label, { className: "tds-field-label" }, label),
|
|
33
|
+
React__default.createElement(I18nProvider, { locale: dateFieldLocale },
|
|
34
|
+
React__default.createElement(DateInput, { "aria-invalid": invalid || undefined, className: "tds-field-control tds-time-field-input" }, (segment) => (React__default.createElement(DateSegment, { "aria-invalid": invalid || undefined, className: segment.type === "literal"
|
|
35
|
+
? "tds-field-date-segment-separator"
|
|
36
|
+
: "tds-field-date-segment", segment: segment })))),
|
|
37
|
+
description && (React__default.createElement(Text, { elementType: "p", className: "tds-field-description", slot: "description" },
|
|
38
|
+
React__default.createElement(Icon, { "aria-hidden": true, className: "tds-field-description-invalid-icon", symbol: "general#exclamation-triangle" }),
|
|
39
|
+
description)))));
|
|
37
40
|
}
|
|
38
41
|
function asTimeFieldValue(value) {
|
|
39
42
|
if (typeof value === "string") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeField.js","sources":["../../../src/components/time-field/TimeField.tsx"],"sourcesContent":["import \"../field/index.css\"\nimport \"./index.css\"\n\nimport {\n type CalendarDateTime,\n parseTime,\n type Time,\n type ZonedDateTime,\n} from \"@internationalized/date\"\nimport Icon from \"@utilities/Icon\"\nimport type { CombineAriaPropsWithCustomProps } from \"@utilities/reactAriaProps\"\nimport { useDateFieldLocale } from \"@utilities/useDateFieldLocale\"\nimport classNames from \"classnames\"\nimport React from \"react\"\nimport { I18nProvider } from \"react-aria/I18nProvider\"\nimport {\n DateInput,\n DateSegment,\n Label,\n Text,\n TimeField as AriaTimeField,\n type TimeFieldProps as AriaTimeFieldProps,\n} from \"react-aria-components/TimeField\"\n\nexport type TimeFieldSize = \"md\" | \"lg\"\n\nexport type TimeFieldValue = CalendarDateTime | Time | ZonedDateTime\n\nexport interface TimeFieldProps {\n /** The default value for the field, as a `TimeFieldValue` or an ISO 8601 time string (e.g. `\"12:00\"`). */\n defaultValue?: TimeFieldValue | string\n /** Helper text displayed below the component. Styled as error text when `invalid` is `true`. */\n description?: React.ReactNode\n /** Disables the field. */\n disabled?: boolean\n /** If `true`, always shows leading zeros in the hour field. */\n forceLeadingZeros?: boolean\n /** If `true`, renders the label visually hidden. */\n hideLabel?: boolean\n /** If `true`, applies error styling to the field and description. */\n invalid?: boolean\n /** Accessible label for the field. */\n label: string\n /** The maximum allowed time, as a `TimeFieldValue` or an ISO 8601 time string (e.g. `\"17:00\"`). */\n max?: TimeFieldValue | string\n /** The minimum allowed time, as a `TimeFieldValue` or an ISO 8601 time string (e.g. `\"09:00\"`). */\n min?: TimeFieldValue | string\n /** Allows the value to be read but not changed. */\n readOnly?: boolean\n /** If `true`, appends an asterisk after the label text. */\n required?: boolean\n /** The size of the time field. */\n size?: TimeFieldSize\n}\n\ntype AriaTimeFieldPropsToOmit =\n | \"children\"\n | \"granularity\"\n | \"placeholderValue\"\n | \"shouldForceLeadingZeros\"\n | \"slot\"\n\ntype AriaTimeFieldPropsToInclude =\n | \"hideTimeZone\"\n | \"hourCycle\"\n | \"name\"\n | \"onChange\"\n | \"value\"\n\nexport type TimeFieldElementProps = CombineAriaPropsWithCustomProps<\n AriaTimeFieldProps<TimeFieldValue>,\n TimeFieldProps,\n AriaTimeFieldPropsToOmit,\n AriaTimeFieldPropsToInclude\n>\n\n/**\n * A time field component allows users to enter and edit time values as individual\n * segments. Each segment supports keyboard entry, increment/decrement\n * with arrow keys, and respects the user's locale (12- vs 24-hour clock),\n * which can be overridden with `hourCycle`.\n *\n * Values are `Time`, `CalendarDateTime`, or `ZonedDateTime` from\n * `@internationalized/date`. Restrict the allowed range with `min`/`max`.\n *\n * @component\n * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/forms-timefield--docs | Storybook Documentation}\n * @see {@link https://github.com/planningcenter/tapestry/tree/main/packages/tapestry-migration-cli | Migration CLI: Available}\n */\nexport function TimeField({\n className,\n defaultValue,\n description,\n disabled,\n forceLeadingZeros,\n hideLabel,\n invalid,\n label,\n max,\n min,\n readOnly,\n required,\n size = \"md\",\n ...restProps\n}: TimeFieldElementProps) {\n const combinedClassName = classNames(\n \"tds-field tds-time-field\",\n {\n \"tds-field--lg\": size === \"lg\",\n \"tds-time-field--lg\": size === \"lg\",\n },\n className\n )\n\n const dateFieldLocale = useDateFieldLocale()\n\n return (\n <AriaTimeField\n
|
|
1
|
+
{"version":3,"file":"TimeField.js","sources":["../../../src/components/time-field/TimeField.tsx"],"sourcesContent":["import \"../field/index.css\"\nimport \"./index.css\"\n\nimport {\n type CalendarDateTime,\n parseTime,\n type Time,\n type ZonedDateTime,\n} from \"@internationalized/date\"\nimport Icon from \"@utilities/Icon\"\nimport { useTapestryLocale } from \"@utilities/locale\"\nimport type { CombineAriaPropsWithCustomProps } from \"@utilities/reactAriaProps\"\nimport { useDateFieldLocale } from \"@utilities/useDateFieldLocale\"\nimport classNames from \"classnames\"\nimport React from \"react\"\nimport { I18nProvider } from \"react-aria/I18nProvider\"\nimport {\n DateInput,\n DateSegment,\n Label,\n Text,\n TimeField as AriaTimeField,\n type TimeFieldProps as AriaTimeFieldProps,\n} from \"react-aria-components/TimeField\"\n\nexport type TimeFieldSize = \"md\" | \"lg\"\n\nexport type TimeFieldValue = CalendarDateTime | Time | ZonedDateTime\n\nexport interface TimeFieldProps {\n /** The default value for the field, as a `TimeFieldValue` or an ISO 8601 time string (e.g. `\"12:00\"`). */\n defaultValue?: TimeFieldValue | string\n /** Helper text displayed below the component. Styled as error text when `invalid` is `true`. */\n description?: React.ReactNode\n /** Disables the field. */\n disabled?: boolean\n /** If `true`, always shows leading zeros in the hour field. */\n forceLeadingZeros?: boolean\n /** If `true`, renders the label visually hidden. */\n hideLabel?: boolean\n /** If `true`, applies error styling to the field and description. */\n invalid?: boolean\n /** Accessible label for the field. */\n label: string\n /** The maximum allowed time, as a `TimeFieldValue` or an ISO 8601 time string (e.g. `\"17:00\"`). */\n max?: TimeFieldValue | string\n /** The minimum allowed time, as a `TimeFieldValue` or an ISO 8601 time string (e.g. `\"09:00\"`). */\n min?: TimeFieldValue | string\n /** Allows the value to be read but not changed. */\n readOnly?: boolean\n /** If `true`, appends an asterisk after the label text. */\n required?: boolean\n /** The size of the time field. */\n size?: TimeFieldSize\n}\n\ntype AriaTimeFieldPropsToOmit =\n | \"children\"\n | \"granularity\"\n | \"placeholderValue\"\n | \"shouldForceLeadingZeros\"\n | \"slot\"\n\ntype AriaTimeFieldPropsToInclude =\n | \"hideTimeZone\"\n | \"hourCycle\"\n | \"name\"\n | \"onChange\"\n | \"value\"\n\nexport type TimeFieldElementProps = CombineAriaPropsWithCustomProps<\n AriaTimeFieldProps<TimeFieldValue>,\n TimeFieldProps,\n AriaTimeFieldPropsToOmit,\n AriaTimeFieldPropsToInclude\n>\n\n/**\n * A time field component allows users to enter and edit time values as individual\n * segments. Each segment supports keyboard entry, increment/decrement\n * with arrow keys, and respects the user's locale (12- vs 24-hour clock),\n * which can be overridden with `hourCycle`.\n *\n * Values are `Time`, `CalendarDateTime`, or `ZonedDateTime` from\n * `@internationalized/date`. Restrict the allowed range with `min`/`max`.\n *\n * @component\n * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/forms-timefield--docs | Storybook Documentation}\n * @see {@link https://github.com/planningcenter/tapestry/tree/main/packages/tapestry-migration-cli | Migration CLI: Available}\n */\nexport function TimeField({\n className,\n defaultValue,\n description,\n disabled,\n forceLeadingZeros,\n hideLabel,\n invalid,\n label,\n max,\n min,\n readOnly,\n required,\n size = \"md\",\n ...restProps\n}: TimeFieldElementProps) {\n const combinedClassName = classNames(\n \"tds-field tds-time-field\",\n {\n \"tds-field--lg\": size === \"lg\",\n \"tds-time-field--lg\": size === \"lg\",\n },\n className\n )\n\n const locale = useTapestryLocale()\n const dateFieldLocale = useDateFieldLocale()\n\n return (\n <I18nProvider locale={locale}>\n <AriaTimeField\n {...restProps}\n aria-label={hideLabel ? label : undefined}\n className={combinedClassName}\n defaultValue={asTimeFieldValue(defaultValue)}\n granularity=\"minute\"\n isDisabled={disabled}\n isReadOnly={readOnly}\n isRequired={required}\n maxValue={asTimeFieldValue(max)}\n minValue={asTimeFieldValue(min)}\n shouldForceLeadingZeros={forceLeadingZeros}\n >\n {!hideLabel && <Label className=\"tds-field-label\">{label}</Label>}\n <I18nProvider locale={dateFieldLocale}>\n <DateInput\n aria-invalid={invalid || undefined}\n className=\"tds-field-control tds-time-field-input\"\n >\n {(segment) => (\n <DateSegment\n aria-invalid={invalid || undefined}\n className={\n segment.type === \"literal\"\n ? \"tds-field-date-segment-separator\"\n : \"tds-field-date-segment\"\n }\n segment={segment}\n />\n )}\n </DateInput>\n </I18nProvider>\n {description && (\n <Text\n elementType=\"p\"\n className=\"tds-field-description\"\n slot=\"description\"\n >\n <Icon\n aria-hidden\n className=\"tds-field-description-invalid-icon\"\n symbol=\"general#exclamation-triangle\"\n />\n {description}\n </Text>\n )}\n </AriaTimeField>\n </I18nProvider>\n )\n}\n\nfunction asTimeFieldValue(\n value: TimeFieldValue | string | undefined\n): TimeFieldValue | undefined {\n if (typeof value === \"string\") {\n return parseTime(value)\n }\n return value ?? undefined\n}\n"],"names":["React","AriaTimeField","parseTime"],"mappings":";;;;;;;;;AA6EA;;;;;;;;;;;;AAYG;AACG,SAAU,SAAS,CAAC,EACxB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,iBAAiB,EACjB,SAAS,EACT,OAAO,EACP,KAAK,EACL,GAAG,EACH,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,IAAI,GAAG,IAAI,EACX,GAAG,SAAS,EACU,EAAA;AACtB,IAAA,MAAM,iBAAiB,GAAG,UAAU,CAClC,0BAA0B,EAC1B;QACE,eAAe,EAAE,IAAI,KAAK,IAAI;QAC9B,oBAAoB,EAAE,IAAI,KAAK,IAAI;KACpC,EACD,SAAS,CACV;AAED,IAAA,MAAM,MAAM,GAAG,iBAAiB,EAAE;AAClC,IAAA,MAAM,eAAe,GAAG,kBAAkB,EAAE;AAE5C,IAAA,QACEA,cAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EAAC,MAAM,EAAE,MAAM,EAAA;QAC1BA,cAAA,CAAA,aAAA,CAACC,WAAa,EAAA,EAAA,GACR,SAAS,EAAA,YAAA,EACD,SAAS,GAAG,KAAK,GAAG,SAAS,EACzC,SAAS,EAAE,iBAAiB,EAC5B,YAAY,EAAE,gBAAgB,CAAC,YAAY,CAAC,EAC5C,WAAW,EAAC,QAAQ,EACpB,UAAU,EAAE,QAAQ,EACpB,UAAU,EAAE,QAAQ,EACpB,UAAU,EAAE,QAAQ,EACpB,QAAQ,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAC/B,QAAQ,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAC/B,uBAAuB,EAAE,iBAAiB,EAAA;YAEzC,CAAC,SAAS,IAAID,cAAA,CAAA,aAAA,CAAC,KAAK,EAAA,EAAC,SAAS,EAAC,iBAAiB,EAAA,EAAE,KAAK,CAAS;AACjE,YAAAA,cAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EAAC,MAAM,EAAE,eAAe,EAAA;AACnC,gBAAAA,cAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EAAA,cAAA,EACM,OAAO,IAAI,SAAS,EAClC,SAAS,EAAC,wCAAwC,EAAA,EAEjD,CAAC,OAAO,MACPA,cAAA,CAAA,aAAA,CAAC,WAAW,EAAA,EAAA,cAAA,EACI,OAAO,IAAI,SAAS,EAClC,SAAS,EACP,OAAO,CAAC,IAAI,KAAK;AACf,0BAAE;0BACA,wBAAwB,EAE9B,OAAO,EAAE,OAAO,EAAA,CAChB,CACH,CACS,CACC;AACd,YAAA,WAAW,KACVA,cAAA,CAAA,aAAA,CAAC,IAAI,IACH,WAAW,EAAC,GAAG,EACf,SAAS,EAAC,uBAAuB,EACjC,IAAI,EAAC,aAAa,EAAA;gBAElBA,cAAA,CAAA,aAAA,CAAC,IAAI,yBAEH,SAAS,EAAC,oCAAoC,EAC9C,MAAM,EAAC,8BAA8B,EAAA,CACrC;AACD,gBAAA,WAAW,CACP,CACR,CACa,CACH;AAEnB;AAEA,SAAS,gBAAgB,CACvB,KAA0C,EAAA;AAE1C,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AAC7B,QAAA,OAAOE,yCAAS,CAAC,KAAK,CAAC;IACzB;IACA,OAAO,KAAK,IAAI,SAAS;AAC3B;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
import { getComponent as o } from './registry.js';
|
|
4
4
|
|
|
5
5
|
function Se(t) {
|
|
@@ -1692,7 +1692,7 @@ function ye() {
|
|
|
1692
1692
|
return c && c.__esModule ? c : { default: c };
|
|
1693
1693
|
};
|
|
1694
1694
|
Object.defineProperty(t, "__esModule", { value: true }), t.returnFirstArg = t.canTextBeChildOfNode = t.ELEMENTS_WITH_NO_TEXT_CHILDREN = t.PRESERVE_CUSTOM_ATTRIBUTES = void 0, t.isCustomComponent = p, t.setStyleProp = l;
|
|
1695
|
-
var u =
|
|
1695
|
+
var u = React__default, s = o(Me()), d = /* @__PURE__ */ new Set([
|
|
1696
1696
|
"annotation-xml",
|
|
1697
1697
|
"color-profile",
|
|
1698
1698
|
"font-face",
|
|
@@ -1789,7 +1789,7 @@ function Le() {
|
|
|
1789
1789
|
return l && l.__esModule ? l : { default: l };
|
|
1790
1790
|
};
|
|
1791
1791
|
Object.defineProperty(H, "__esModule", { value: true }), H.default = p;
|
|
1792
|
-
var o =
|
|
1792
|
+
var o = React__default, u = t(_e()), s = ye(), d = {
|
|
1793
1793
|
cloneElement: o.cloneElement,
|
|
1794
1794
|
createElement: o.createElement,
|
|
1795
1795
|
isValidElement: o.isValidElement
|
|
@@ -1881,7 +1881,7 @@ function Ge(t) {
|
|
|
1881
1881
|
return u.length === 1 ? u[0] : u;
|
|
1882
1882
|
}
|
|
1883
1883
|
function Ue(t) {
|
|
1884
|
-
return
|
|
1884
|
+
return React__default.isValidElement(t) && typeof t.type != "string";
|
|
1885
1885
|
}
|
|
1886
1886
|
function Te(t) {
|
|
1887
1887
|
return typeof t == "string" && t.trim() === "";
|