@flipdish/ui-library 0.18.0 → 0.20.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/README.md +6 -7
- package/dist/components/atoms/AppStoreButton/components/app-store-buttons-outline.cjs +5 -12
- package/dist/components/atoms/AppStoreButton/components/app-store-buttons-outline.cjs.map +1 -1
- package/dist/components/atoms/AppStoreButton/components/app-store-buttons-outline.d.ts.map +1 -1
- package/dist/components/atoms/AppStoreButton/components/app-store-buttons-outline.js +5 -12
- package/dist/components/atoms/AppStoreButton/components/app-store-buttons-outline.js.map +1 -1
- package/dist/components/atoms/AppStoreButton/index.cjs +6 -15
- package/dist/components/atoms/AppStoreButton/index.cjs.map +1 -1
- package/dist/components/atoms/AppStoreButton/index.d.ts.map +1 -1
- package/dist/components/atoms/AppStoreButton/index.js +6 -15
- package/dist/components/atoms/AppStoreButton/index.js.map +1 -1
- package/dist/components/atoms/Avatar/components/avatar-base.cjs +60 -0
- package/dist/components/atoms/Avatar/components/avatar-base.cjs.map +1 -0
- package/dist/components/atoms/Avatar/components/avatar-base.d.ts +77 -0
- package/dist/components/atoms/Avatar/components/avatar-base.d.ts.map +1 -0
- package/dist/components/atoms/Avatar/components/avatar-base.js +58 -0
- package/dist/components/atoms/Avatar/components/avatar-base.js.map +1 -0
- package/dist/components/atoms/Avatar/components/avatar-label-group.cjs +2 -2
- package/dist/components/atoms/Avatar/components/avatar-label-group.cjs.map +1 -1
- package/dist/components/atoms/Avatar/components/avatar-label-group.d.ts +1 -1
- package/dist/components/atoms/Avatar/components/avatar-label-group.d.ts.map +1 -1
- package/dist/components/atoms/Avatar/components/avatar-label-group.js +1 -1
- package/dist/components/atoms/Avatar/index.cjs +3 -55
- package/dist/components/atoms/Avatar/index.cjs.map +1 -1
- package/dist/components/atoms/Avatar/index.d.ts +2 -70
- package/dist/components/atoms/Avatar/index.d.ts.map +1 -1
- package/dist/components/atoms/Avatar/index.js +1 -57
- package/dist/components/atoms/Avatar/index.js.map +1 -1
- package/dist/components/atoms/Badge/index.cjs +0 -1
- package/dist/components/atoms/Badge/index.cjs.map +1 -1
- package/dist/components/atoms/Badge/index.d.ts +0 -5
- package/dist/components/atoms/Badge/index.d.ts.map +1 -1
- package/dist/components/atoms/Badge/index.js +1 -1
- package/dist/components/atoms/Badge/index.js.map +1 -1
- package/dist/components/atoms/Button/index.cjs +3 -3
- package/dist/components/atoms/Button/index.cjs.map +1 -1
- package/dist/components/atoms/Button/index.d.ts.map +1 -1
- package/dist/components/atoms/Button/index.js +1 -1
- package/dist/components/atoms/FeaturedIcon/index.cjs +2 -2
- package/dist/components/atoms/FeaturedIcon/index.cjs.map +1 -1
- package/dist/components/atoms/FeaturedIcon/index.d.ts.map +1 -1
- package/dist/components/atoms/FeaturedIcon/index.js +1 -1
- package/dist/components/atoms/UtilityButton/index.cjs +2 -2
- package/dist/components/atoms/UtilityButton/index.cjs.map +1 -1
- package/dist/components/atoms/UtilityButton/index.d.ts.map +1 -1
- package/dist/components/atoms/UtilityButton/index.js +1 -1
- package/dist/components/molecules/BadgeGroup/index.cjs +3 -3
- package/dist/components/molecules/BadgeGroup/index.cjs.map +1 -1
- package/dist/components/molecules/BadgeGroup/index.d.ts.map +1 -1
- package/dist/components/molecules/BadgeGroup/index.js +1 -1
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-account-item.cjs +2 -2
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-account-item.cjs.map +1 -1
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-account-item.js +1 -1
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-item.cjs +9 -6
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-item.cjs.map +1 -1
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-item.d.ts +1 -1
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-item.d.ts.map +1 -1
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-item.js +7 -4
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-item.js.map +1 -1
- package/dist/components/molecules/Breadcrumbs/index.cjs +3 -6
- package/dist/components/molecules/Breadcrumbs/index.cjs.map +1 -1
- package/dist/components/molecules/Breadcrumbs/index.d.ts +2 -6
- package/dist/components/molecules/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/molecules/Breadcrumbs/index.js +2 -5
- package/dist/components/molecules/Breadcrumbs/index.js.map +1 -1
- package/dist/components/molecules/Breadcrumbs/providers/breadcrumbs-context.cjs +17 -0
- package/dist/components/molecules/Breadcrumbs/providers/breadcrumbs-context.cjs.map +1 -0
- package/dist/components/molecules/Breadcrumbs/providers/breadcrumbs-context.d.ts +13 -0
- package/dist/components/molecules/Breadcrumbs/providers/breadcrumbs-context.d.ts.map +1 -0
- package/dist/components/molecules/Breadcrumbs/providers/breadcrumbs-context.js +15 -0
- package/dist/components/molecules/Breadcrumbs/providers/breadcrumbs-context.js.map +1 -0
- package/dist/components/molecules/ButtonGroup/index.cjs +2 -2
- package/dist/components/molecules/ButtonGroup/index.cjs.map +1 -1
- package/dist/components/molecules/ButtonGroup/index.d.ts.map +1 -1
- package/dist/components/molecules/ButtonGroup/index.js +1 -1
- package/dist/components/molecules/Carousel/index.cjs +0 -1
- package/dist/components/molecules/Carousel/index.cjs.map +1 -1
- package/dist/components/molecules/Carousel/index.d.ts +0 -1
- package/dist/components/molecules/Carousel/index.d.ts.map +1 -1
- package/dist/components/molecules/Carousel/index.js +1 -1
- package/dist/components/molecules/Carousel/index.js.map +1 -1
- package/dist/components/molecules/Select/components/combobox.cjs +2 -2
- package/dist/components/molecules/Select/components/combobox.cjs.map +1 -1
- package/dist/components/molecules/Select/components/combobox.d.ts.map +1 -1
- package/dist/components/molecules/Select/components/combobox.js +1 -1
- package/dist/components/molecules/Select/components/select-item.cjs +2 -2
- package/dist/components/molecules/Select/components/select-item.cjs.map +1 -1
- package/dist/components/molecules/Select/components/select-item.d.ts.map +1 -1
- package/dist/components/molecules/Select/components/select-item.js +1 -1
- package/dist/components/molecules/Select/index.cjs +2 -2
- package/dist/components/molecules/Select/index.cjs.map +1 -1
- package/dist/components/molecules/Select/index.d.ts.map +1 -1
- package/dist/components/molecules/Select/index.js +1 -1
- package/dist/components/molecules/Tabs/index.cjs +2 -2
- package/dist/components/molecules/Tabs/index.cjs.map +1 -1
- package/dist/components/molecules/Tabs/index.d.ts.map +1 -1
- package/dist/components/molecules/Tabs/index.js +1 -1
- package/dist/components/organisms/ActivityFeed/index.cjs +5 -1
- package/dist/components/organisms/ActivityFeed/index.cjs.map +1 -1
- package/dist/components/organisms/ActivityFeed/index.d.ts.map +1 -1
- package/dist/components/organisms/ActivityFeed/index.js +5 -1
- package/dist/components/organisms/ActivityFeed/index.js.map +1 -1
- package/dist/components/organisms/Charts/index.d.ts +22 -6
- package/dist/components/organisms/Charts/index.d.ts.map +1 -1
- package/dist/components/organisms/FileUpload/index.cjs +1 -4
- package/dist/components/organisms/FileUpload/index.cjs.map +1 -1
- package/dist/components/organisms/FileUpload/index.d.ts +1 -9
- package/dist/components/organisms/FileUpload/index.d.ts.map +1 -1
- package/dist/components/organisms/FileUpload/index.js +3 -3
- package/dist/components/organisms/FileUpload/index.js.map +1 -1
- package/dist/components/organisms/GradientPicker/index.cjs +0 -6
- package/dist/components/organisms/GradientPicker/index.cjs.map +1 -1
- package/dist/components/organisms/GradientPicker/index.d.ts +0 -28
- package/dist/components/organisms/GradientPicker/index.d.ts.map +1 -1
- package/dist/components/organisms/GradientPicker/index.js +1 -1
- package/dist/components/organisms/GradientPicker/index.js.map +1 -1
- package/dist/components/organisms/HeaderNavigation/components/nav-account-card.cjs +2 -1
- package/dist/components/organisms/HeaderNavigation/components/nav-account-card.cjs.map +1 -1
- package/dist/components/organisms/HeaderNavigation/components/nav-account-card.d.ts.map +1 -1
- package/dist/components/organisms/HeaderNavigation/components/nav-account-card.js +2 -1
- package/dist/components/organisms/HeaderNavigation/components/nav-account-card.js.map +1 -1
- package/dist/components/organisms/HeaderNavigation/components/nav-item.cjs +4 -3
- package/dist/components/organisms/HeaderNavigation/components/nav-item.cjs.map +1 -1
- package/dist/components/organisms/HeaderNavigation/components/nav-item.d.ts.map +1 -1
- package/dist/components/organisms/HeaderNavigation/components/nav-item.js +4 -3
- package/dist/components/organisms/HeaderNavigation/components/nav-item.js.map +1 -1
- package/dist/components/organisms/ImagePicker/index.cjs +0 -3
- package/dist/components/organisms/ImagePicker/index.cjs.map +1 -1
- package/dist/components/organisms/ImagePicker/index.d.ts +0 -6
- package/dist/components/organisms/ImagePicker/index.d.ts.map +1 -1
- package/dist/components/organisms/ImagePicker/index.js +1 -1
- package/dist/components/organisms/ImagePicker/index.js.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-button.cjs +5 -2
- package/dist/components/organisms/SidebarNavigation/components/nav-button.cjs.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-button.d.ts.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-button.js +5 -2
- package/dist/components/organisms/SidebarNavigation/components/nav-button.js.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-item.cjs +5 -4
- package/dist/components/organisms/SidebarNavigation/components/nav-item.cjs.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-item.d.ts.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/nav-item.js +5 -4
- package/dist/components/organisms/SidebarNavigation/components/nav-item.js.map +1 -1
- package/dist/components/organisms/TextEditor/components/text-editor-extensions.cjs +13 -13
- package/dist/components/organisms/TextEditor/components/text-editor-extensions.cjs.map +1 -1
- package/dist/components/organisms/TextEditor/components/text-editor-extensions.js +1 -1
- package/dist/components/organisms/TextEditor/components/text-editor-tooltip.cjs +2 -2
- package/dist/components/organisms/TextEditor/components/text-editor-tooltip.cjs.map +1 -1
- package/dist/components/organisms/TextEditor/components/text-editor-tooltip.js +1 -1
- package/dist/components/organisms/TextEditor/index.cjs +6 -13
- package/dist/components/organisms/TextEditor/index.cjs.map +1 -1
- package/dist/components/organisms/TextEditor/index.d.ts +2 -10
- package/dist/components/organisms/TextEditor/index.d.ts.map +1 -1
- package/dist/components/organisms/TextEditor/index.js +2 -9
- package/dist/components/organisms/TextEditor/index.js.map +1 -1
- package/dist/components/organisms/TextEditor/providers/text-editor-context.cjs +21 -0
- package/dist/components/organisms/TextEditor/providers/text-editor-context.cjs.map +1 -0
- package/dist/components/organisms/TextEditor/providers/text-editor-context.d.ts +17 -0
- package/dist/components/organisms/TextEditor/providers/text-editor-context.d.ts.map +1 -0
- package/dist/components/organisms/TextEditor/providers/text-editor-context.js +18 -0
- package/dist/components/organisms/TextEditor/providers/text-editor-context.js.map +1 -0
- package/dist/components/organisms/TreeView/index.cjs +2 -2
- package/dist/components/organisms/TreeView/index.cjs.map +1 -1
- package/dist/components/organisms/TreeView/index.d.ts.map +1 -1
- package/dist/components/organisms/TreeView/index.js +1 -1
- package/dist/hooks/{useAriaDisclosureAttrs/index.cjs → __internal__/useAriaDisclosureAttrs/useAriaDisclosureAttrs.cjs} +1 -1
- package/dist/hooks/__internal__/useAriaDisclosureAttrs/useAriaDisclosureAttrs.cjs.map +1 -0
- package/dist/hooks/{useAriaDisclosureAttrs/index.d.ts → __internal__/useAriaDisclosureAttrs/useAriaDisclosureAttrs.d.ts} +1 -1
- package/dist/hooks/__internal__/useAriaDisclosureAttrs/useAriaDisclosureAttrs.d.ts.map +1 -0
- package/dist/hooks/{useAriaDisclosureAttrs/index.js → __internal__/useAriaDisclosureAttrs/useAriaDisclosureAttrs.js} +1 -1
- package/dist/hooks/__internal__/useAriaDisclosureAttrs/useAriaDisclosureAttrs.js.map +1 -0
- package/dist/native/components/atoms/Button/index.d.ts.map +1 -1
- package/dist/native/components/atoms/Button/index.js +1 -1
- package/dist/{utilities/isReactComponent/index.d.ts → native/utilities/__internal__/componentGuardUtils/componentGuard.utils.d.ts} +3 -3
- package/dist/native/utilities/__internal__/componentGuardUtils/componentGuard.utils.d.ts.map +1 -0
- package/dist/{utilities/isReactComponent/index.js → native/utilities/__internal__/componentGuardUtils/componentGuard.utils.js} +3 -3
- package/dist/native/utilities/__internal__/componentGuardUtils/componentGuard.utils.js.map +1 -0
- package/dist/native/utilities/cx/index.d.ts +2 -2
- package/dist/native/utilities/cx/index.js +2 -2
- package/dist/native/{hooks/useAriaDisclosureAttrs → utilities/hrefUtils}/index.d.ts +3 -3
- package/dist/utilities/{isReactComponent/index.cjs → __internal__/componentGuardUtils/componentGuard.utils.cjs} +3 -3
- package/dist/utilities/__internal__/componentGuardUtils/componentGuard.utils.cjs.map +1 -0
- package/dist/{native/utilities/isReactComponent/index.d.ts → utilities/__internal__/componentGuardUtils/componentGuard.utils.d.ts} +3 -3
- package/dist/utilities/__internal__/componentGuardUtils/componentGuard.utils.d.ts.map +1 -0
- package/dist/{native/utilities/isReactComponent/index.js → utilities/__internal__/componentGuardUtils/componentGuard.utils.js} +3 -3
- package/dist/utilities/__internal__/componentGuardUtils/componentGuard.utils.js.map +1 -0
- package/dist/utilities/__internal__/logUtils/log.utils.cjs +32 -0
- package/dist/utilities/__internal__/logUtils/log.utils.cjs.map +1 -0
- package/dist/utilities/__internal__/logUtils/log.utils.d.ts +23 -0
- package/dist/utilities/__internal__/logUtils/log.utils.d.ts.map +1 -0
- package/dist/utilities/__internal__/logUtils/log.utils.js +30 -0
- package/dist/utilities/__internal__/logUtils/log.utils.js.map +1 -0
- package/dist/utilities/__internal__/webStorageUtils/webStorage.utils.cjs +102 -0
- package/dist/utilities/__internal__/webStorageUtils/webStorage.utils.cjs.map +1 -0
- package/dist/utilities/__internal__/webStorageUtils/webStorage.utils.d.ts +41 -0
- package/dist/utilities/__internal__/webStorageUtils/webStorage.utils.d.ts.map +1 -0
- package/dist/utilities/__internal__/webStorageUtils/webStorage.utils.js +98 -0
- package/dist/utilities/__internal__/webStorageUtils/webStorage.utils.js.map +1 -0
- package/dist/utilities/cx/index.cjs +2 -2
- package/dist/utilities/cx/index.d.ts +2 -2
- package/dist/utilities/cx/index.js +2 -2
- package/dist/utilities/hrefUtils/index.cjs +50 -0
- package/dist/utilities/hrefUtils/index.cjs.map +1 -0
- package/dist/utilities/hrefUtils/index.d.ts +19 -0
- package/dist/utilities/hrefUtils/index.d.ts.map +1 -0
- package/dist/utilities/hrefUtils/index.js +47 -0
- package/dist/utilities/hrefUtils/index.js.map +1 -0
- package/dist/utilities/localStorageUtils/index.cjs +9 -102
- package/dist/utilities/localStorageUtils/index.cjs.map +1 -1
- package/dist/utilities/localStorageUtils/index.d.ts +5 -5
- package/dist/utilities/localStorageUtils/index.d.ts.map +1 -1
- package/dist/utilities/localStorageUtils/index.js +7 -100
- package/dist/utilities/localStorageUtils/index.js.map +1 -1
- package/dist/utilities/renderUtils/index.cjs +7 -12
- package/dist/utilities/renderUtils/index.cjs.map +1 -1
- package/dist/utilities/renderUtils/index.d.ts.map +1 -1
- package/dist/utilities/renderUtils/index.js +7 -12
- package/dist/utilities/renderUtils/index.js.map +1 -1
- package/dist/utilities/sessionStorageUtils/index.cjs +9 -103
- package/dist/utilities/sessionStorageUtils/index.cjs.map +1 -1
- package/dist/utilities/sessionStorageUtils/index.d.ts +5 -6
- package/dist/utilities/sessionStorageUtils/index.d.ts.map +1 -1
- package/dist/utilities/sessionStorageUtils/index.js +7 -101
- package/dist/utilities/sessionStorageUtils/index.js.map +1 -1
- package/package.json +7 -7
- package/dist/hooks/useAriaDisclosureAttrs/index.cjs.map +0 -1
- package/dist/hooks/useAriaDisclosureAttrs/index.d.ts.map +0 -1
- package/dist/hooks/useAriaDisclosureAttrs/index.js.map +0 -1
- package/dist/native/utilities/isReactComponent/index.d.ts.map +0 -1
- package/dist/native/utilities/isReactComponent/index.js.map +0 -1
- package/dist/utilities/isReactComponent/index.cjs.map +0 -1
- package/dist/utilities/isReactComponent/index.d.ts.map +0 -1
- package/dist/utilities/isReactComponent/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAriaDisclosureAttrs.cjs","sources":["../../../../src/hooks/__internal__/useAriaDisclosureAttrs/useAriaDisclosureAttrs.ts"],"sourcesContent":[null],"names":["useEffect"],"mappings":";;;;AAWA;;;;;;;;;;AAUG;AACI,MAAM,sBAAsB,GAAG,CACpC,GAAwB,EACxB,EAAE,YAAY,EAAE,YAAY,EAAiC,KAC3D;IACFA,eAAS,CAAC,MAAK;AACb,QAAA,MAAM,IAAI,GAAG,GAAG,CAAC,OAAO;AACxB,QAAA,IAAI,CAAC,IAAI;YAAE;AAEX,QAAA,IAAI,YAAY,KAAK,SAAS,EAAE;AAC9B,YAAA,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC;QACvC;aAAO;YACL,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;QAC1D;AAEA,QAAA,IAAI,YAAY,KAAK,SAAS,EAAE;AAC9B,YAAA,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC;QACvC;aAAO;AACL,YAAA,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,YAAY,CAAC;QAClD;IACF,CAAC,EAAE,CAAC,GAAG,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AACvC;;;;"}
|
|
@@ -17,4 +17,4 @@ export interface UseAriaDisclosureAttrsOptions {
|
|
|
17
17
|
* @summary set disclosure ARIA attributes directly on a ref'd node
|
|
18
18
|
*/
|
|
19
19
|
export declare const useAriaDisclosureAttrs: <T extends HTMLElement>(ref: RefObject<T | null>, { ariaExpanded, ariaControls }: UseAriaDisclosureAttrsOptions) => void;
|
|
20
|
-
//# sourceMappingURL=
|
|
20
|
+
//# sourceMappingURL=useAriaDisclosureAttrs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAriaDisclosureAttrs.d.ts","sourceRoot":"","sources":["../../../../src/hooks/__internal__/useAriaDisclosureAttrs/useAriaDisclosureAttrs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAC;AAElD,MAAM,WAAW,6BAA6B;IAC5C,iGAAiG;IACjG,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,kGAAkG;IAClG,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,WAAW,EAC1D,KAAK,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,EACxB,gCAAgC,6BAA6B,SAkB9D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAriaDisclosureAttrs.js","sources":["../../../../src/hooks/__internal__/useAriaDisclosureAttrs/useAriaDisclosureAttrs.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAWA;;;;;;;;;;AAUG;AACI,MAAM,sBAAsB,GAAG,CACpC,GAAwB,EACxB,EAAE,YAAY,EAAE,YAAY,EAAiC,KAC3D;IACF,SAAS,CAAC,MAAK;AACb,QAAA,MAAM,IAAI,GAAG,GAAG,CAAC,OAAO;AACxB,QAAA,IAAI,CAAC,IAAI;YAAE;AAEX,QAAA,IAAI,YAAY,KAAK,SAAS,EAAE;AAC9B,YAAA,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC;QACvC;aAAO;YACL,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;QAC1D;AAEA,QAAA,IAAI,YAAY,KAAK,SAAS,EAAE;AAC9B,YAAA,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC;QACvC;aAAO;AACL,YAAA,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,YAAY,CAAC;QAClD;IACF,CAAC,EAAE,CAAC,GAAG,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AACvC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Button/index.native.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Button/index.native.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAkB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAC7F,OAAO,EAAyC,KAAK,cAAc,EAAc,MAAM,cAAc,CAAC;AAEtG,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,KAAK,QAAQ,GAAG,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,SAAS,CAAC;AAEtF,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,MAAM,CAAC,KAAK,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,MAAM,CAAC,MAAM,CAAC;AAErD,UAAU,WAAW;IACnB,qDAAqD;IACrD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sDAAsD;IACtD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qCAAqC;IACrC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,sCAAsC;IACtC,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,wDAAwD;IACxD,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,uDAAuD;IACvD,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,uDAAuD;IACvD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,6DAA6D;IAC7D,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,SAAS,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,SAAS,GAAG,oBAAoB,GAAG,mBAAmB,CAAC,CAAC;AAE1G,8CAA8C;AAC9C,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC;AAElD,mFAAmF;AACnF,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnE,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,SAAS,CAAC;AA4F5C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,EAAE;IACnB,CAAC,KAAK,EAAE,SAAS,GAAG,YAAY,CAAC;IACjC,CAAC,KAAK,EAAE,WAAW,GAAG,YAAY,CAAC;CAsGpC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { cx } from '../../../utilities/cx/index.js';
|
|
3
|
-
import { isReactComponent } from '../../../utilities/isReactComponent/index.js';
|
|
4
3
|
import { useResolvedTestId } from '../../../utilities/testIdUtils/index.js';
|
|
5
4
|
import { useState, isValidElement } from 'react';
|
|
6
5
|
import { Pressable, View, ActivityIndicator, Text, Linking } from 'react-native';
|
|
6
|
+
import { isReactComponent } from '../../../utilities/__internal__/componentGuardUtils/componentGuard.utils.js';
|
|
7
7
|
import { styles } from './Button.styles.js';
|
|
8
8
|
|
|
9
9
|
const LINK_COLORS = ['link-gray', 'link-color', 'link-destructive'];
|
|
@@ -9,8 +9,8 @@ type ReactComponent = React.FC<any> | React.ComponentClass<any, any> | React.For
|
|
|
9
9
|
* form; these guards select the "render it yourself" branch.
|
|
10
10
|
*
|
|
11
11
|
* Pure JS with no DOM dependency — works on web (PostCSS) and React Native
|
|
12
|
-
* (NativeWind).
|
|
13
|
-
*
|
|
12
|
+
* (NativeWind). INTERNAL: imported by components as
|
|
13
|
+
* `#internal/utilities/componentGuardUtils/componentGuard.utils`.
|
|
14
14
|
*/
|
|
15
15
|
/** Checks if a given value is a function component. */
|
|
16
16
|
export declare const isFunctionComponent: (component: any) => component is React.FC<any>;
|
|
@@ -21,4 +21,4 @@ export declare const isForwardRefComponent: (component: any) => component is Rea
|
|
|
21
21
|
/** Checks if a given value is a valid React component (FC, class, or forwardRef). */
|
|
22
22
|
export declare const isReactComponent: (component: any) => component is ReactComponent;
|
|
23
23
|
export {};
|
|
24
|
-
//# sourceMappingURL=
|
|
24
|
+
//# sourceMappingURL=componentGuard.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentGuard.utils.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/__internal__/componentGuardUtils/componentGuard.utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,cAAc,GAAG,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC;AAE5G;;;;;;;;;;;GAWG;AAEH,uDAAuD;AAEvD,eAAO,MAAM,mBAAmB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,KAAK,CAAC,EAAE,CAAC,GAAG,CAE7E,CAAC;AAEF,oDAAoD;AAEpD,eAAO,MAAM,gBAAgB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAE3F,CAAC;AAEF,0DAA0D;AAE1D,eAAO,MAAM,qBAAqB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,KAAK,CAAC,yBAAyB,CAAC,GAAG,CAEtG,CAAC;AAEF,qFAAqF;AAErF,eAAO,MAAM,gBAAgB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,cAE9D,CAAC"}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* form; these guards select the "render it yourself" branch.
|
|
8
8
|
*
|
|
9
9
|
* Pure JS with no DOM dependency — works on web (PostCSS) and React Native
|
|
10
|
-
* (NativeWind).
|
|
11
|
-
*
|
|
10
|
+
* (NativeWind). INTERNAL: imported by components as
|
|
11
|
+
* `#internal/utilities/componentGuardUtils/componentGuard.utils`.
|
|
12
12
|
*/
|
|
13
13
|
/** Checks if a given value is a function component. */
|
|
14
14
|
// biome-ignore lint/suspicious/noExplicitAny: required for React component type guard
|
|
@@ -32,4 +32,4 @@ const isReactComponent = (component) => {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
export { isClassComponent, isForwardRefComponent, isFunctionComponent, isReactComponent };
|
|
35
|
-
//# sourceMappingURL=
|
|
35
|
+
//# sourceMappingURL=componentGuard.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentGuard.utils.js","sources":["../../../../../../src/utilities/__internal__/componentGuardUtils/componentGuard.utils.ts"],"sourcesContent":[null],"names":[],"mappings":"AAMA;;;;;;;;;;;AAWG;AAEH;AACA;AACO,MAAM,mBAAmB,GAAG,CAAC,SAAc,KAAgC;AAChF,IAAA,OAAO,OAAO,SAAS,KAAK,UAAU;AACxC;AAEA;AACA;AACO,MAAM,gBAAgB,GAAG,CAAC,SAAc,KAAiD;IAC9F,OAAO,OAAO,SAAS,KAAK,UAAU,IAAI,SAAS,CAAC,SAAS,KAAK,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,gBAAgB,IAAI,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC;AAC3I;AAEA;AACA;AACO,MAAM,qBAAqB,GAAG,CAAC,SAAc,KAAuD;AACzG,IAAA,OAAO,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,2BAA2B;AAC9H;AAEA;AACA;AACO,MAAM,gBAAgB,GAAG,CAAC,SAAc,KAAiC;AAC9E,IAAA,OAAO,mBAAmB,CAAC,SAAS,CAAC,IAAI,qBAAqB,CAAC,SAAS,CAAC,IAAI,gBAAgB,CAAC,SAAS,CAAC;AAC1G;;;;"}
|
|
@@ -14,8 +14,8 @@ type ClassValue = string | number;
|
|
|
14
14
|
type ClassDefinition = Record<string, ClassValue | Record<string, ClassValue | Record<string, ClassValue>>>;
|
|
15
15
|
/**
|
|
16
16
|
* Identity helper that exists only so Tailwind IntelliSense recognises and sorts
|
|
17
|
-
* the class strings held inside style-config objects (
|
|
18
|
-
*
|
|
17
|
+
* the class strings held inside style-config objects (the `*.styles.ts` sortCx
|
|
18
|
+
* maps components use). Returns its argument unchanged.
|
|
19
19
|
*/
|
|
20
20
|
export declare const sortCx: <T extends ClassDefinition>(classes: T) => T;
|
|
21
21
|
export {};
|
|
@@ -29,8 +29,8 @@ const twMerge = extendTailwindMerge({
|
|
|
29
29
|
const cx = twMerge;
|
|
30
30
|
/**
|
|
31
31
|
* Identity helper that exists only so Tailwind IntelliSense recognises and sorts
|
|
32
|
-
* the class strings held inside style-config objects (
|
|
33
|
-
*
|
|
32
|
+
* the class strings held inside style-config objects (the `*.styles.ts` sortCx
|
|
33
|
+
* maps components use). Returns its argument unchanged.
|
|
34
34
|
*/
|
|
35
35
|
const sortCx = (classes) => classes;
|
|
36
36
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `
|
|
2
|
+
* `hrefUtils` has no React Native implementation.
|
|
3
3
|
*
|
|
4
4
|
* This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
|
|
5
|
-
* that importing `@flipdish/ui-library/
|
|
5
|
+
* that importing `@flipdish/ui-library/utilities/hrefUtils` from React Native fails at
|
|
6
6
|
* compile time rather than resolving to the web build's types. There is no
|
|
7
7
|
* matching `index.js`, so Metro cannot bundle this module either.
|
|
8
8
|
*
|
|
9
|
-
* To make `
|
|
9
|
+
* To make `hrefUtils` available on React Native, add an `index.native.tsx` beside
|
|
10
10
|
* its `index.tsx` — the build picks it up automatically and this stub disappears.
|
|
11
11
|
*/
|
|
12
12
|
export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* form; these guards select the "render it yourself" branch.
|
|
10
10
|
*
|
|
11
11
|
* Pure JS with no DOM dependency — works on web (PostCSS) and React Native
|
|
12
|
-
* (NativeWind).
|
|
13
|
-
*
|
|
12
|
+
* (NativeWind). INTERNAL: imported by components as
|
|
13
|
+
* `#internal/utilities/componentGuardUtils/componentGuard.utils`.
|
|
14
14
|
*/
|
|
15
15
|
/** Checks if a given value is a function component. */
|
|
16
16
|
// biome-ignore lint/suspicious/noExplicitAny: required for React component type guard
|
|
@@ -37,4 +37,4 @@ exports.isClassComponent = isClassComponent;
|
|
|
37
37
|
exports.isForwardRefComponent = isForwardRefComponent;
|
|
38
38
|
exports.isFunctionComponent = isFunctionComponent;
|
|
39
39
|
exports.isReactComponent = isReactComponent;
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=componentGuard.utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentGuard.utils.cjs","sources":["../../../../src/utilities/__internal__/componentGuardUtils/componentGuard.utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAMA;;;;;;;;;;;AAWG;AAEH;AACA;AACO,MAAM,mBAAmB,GAAG,CAAC,SAAc,KAAgC;AAChF,IAAA,OAAO,OAAO,SAAS,KAAK,UAAU;AACxC;AAEA;AACA;AACO,MAAM,gBAAgB,GAAG,CAAC,SAAc,KAAiD;IAC9F,OAAO,OAAO,SAAS,KAAK,UAAU,IAAI,SAAS,CAAC,SAAS,KAAK,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,gBAAgB,IAAI,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC;AAC3I;AAEA;AACA;AACO,MAAM,qBAAqB,GAAG,CAAC,SAAc,KAAuD;AACzG,IAAA,OAAO,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,2BAA2B;AAC9H;AAEA;AACA;AACO,MAAM,gBAAgB,GAAG,CAAC,SAAc,KAAiC;AAC9E,IAAA,OAAO,mBAAmB,CAAC,SAAS,CAAC,IAAI,qBAAqB,CAAC,SAAS,CAAC,IAAI,gBAAgB,CAAC,SAAS,CAAC;AAC1G;;;;;;;"}
|
|
@@ -9,8 +9,8 @@ type ReactComponent = React.FC<any> | React.ComponentClass<any, any> | React.For
|
|
|
9
9
|
* form; these guards select the "render it yourself" branch.
|
|
10
10
|
*
|
|
11
11
|
* Pure JS with no DOM dependency — works on web (PostCSS) and React Native
|
|
12
|
-
* (NativeWind).
|
|
13
|
-
*
|
|
12
|
+
* (NativeWind). INTERNAL: imported by components as
|
|
13
|
+
* `#internal/utilities/componentGuardUtils/componentGuard.utils`.
|
|
14
14
|
*/
|
|
15
15
|
/** Checks if a given value is a function component. */
|
|
16
16
|
export declare const isFunctionComponent: (component: any) => component is React.FC<any>;
|
|
@@ -21,4 +21,4 @@ export declare const isForwardRefComponent: (component: any) => component is Rea
|
|
|
21
21
|
/** Checks if a given value is a valid React component (FC, class, or forwardRef). */
|
|
22
22
|
export declare const isReactComponent: (component: any) => component is ReactComponent;
|
|
23
23
|
export {};
|
|
24
|
-
//# sourceMappingURL=
|
|
24
|
+
//# sourceMappingURL=componentGuard.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentGuard.utils.d.ts","sourceRoot":"","sources":["../../../../src/utilities/__internal__/componentGuardUtils/componentGuard.utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,cAAc,GAAG,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC;AAE5G;;;;;;;;;;;GAWG;AAEH,uDAAuD;AAEvD,eAAO,MAAM,mBAAmB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,KAAK,CAAC,EAAE,CAAC,GAAG,CAE7E,CAAC;AAEF,oDAAoD;AAEpD,eAAO,MAAM,gBAAgB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAE3F,CAAC;AAEF,0DAA0D;AAE1D,eAAO,MAAM,qBAAqB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,KAAK,CAAC,yBAAyB,CAAC,GAAG,CAEtG,CAAC;AAEF,qFAAqF;AAErF,eAAO,MAAM,gBAAgB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,cAE9D,CAAC"}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* form; these guards select the "render it yourself" branch.
|
|
8
8
|
*
|
|
9
9
|
* Pure JS with no DOM dependency — works on web (PostCSS) and React Native
|
|
10
|
-
* (NativeWind).
|
|
11
|
-
*
|
|
10
|
+
* (NativeWind). INTERNAL: imported by components as
|
|
11
|
+
* `#internal/utilities/componentGuardUtils/componentGuard.utils`.
|
|
12
12
|
*/
|
|
13
13
|
/** Checks if a given value is a function component. */
|
|
14
14
|
// biome-ignore lint/suspicious/noExplicitAny: required for React component type guard
|
|
@@ -32,4 +32,4 @@ const isReactComponent = (component) => {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
export { isClassComponent, isForwardRefComponent, isFunctionComponent, isReactComponent };
|
|
35
|
-
//# sourceMappingURL=
|
|
35
|
+
//# sourceMappingURL=componentGuard.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentGuard.utils.js","sources":["../../../../src/utilities/__internal__/componentGuardUtils/componentGuard.utils.ts"],"sourcesContent":[null],"names":[],"mappings":"AAMA;;;;;;;;;;;AAWG;AAEH;AACA;AACO,MAAM,mBAAmB,GAAG,CAAC,SAAc,KAAgC;AAChF,IAAA,OAAO,OAAO,SAAS,KAAK,UAAU;AACxC;AAEA;AACA;AACO,MAAM,gBAAgB,GAAG,CAAC,SAAc,KAAiD;IAC9F,OAAO,OAAO,SAAS,KAAK,UAAU,IAAI,SAAS,CAAC,SAAS,KAAK,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,gBAAgB,IAAI,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC;AAC3I;AAEA;AACA;AACO,MAAM,qBAAqB,GAAG,CAAC,SAAc,KAAuD;AACzG,IAAA,OAAO,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,2BAA2B;AAC9H;AAEA;AACA;AACO,MAAM,gBAAgB,GAAG,CAAC,SAAc,KAAiC;AAC9E,IAAA,OAAO,mBAAmB,CAAC,SAAS,CAAC,IAAI,qBAAqB,CAAC,SAAS,CAAC,IAAI,gBAAgB,CAAC,SAAS,CAAC;AAC1G;;;;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* INTERNAL — not part of the public API.
|
|
5
|
+
*
|
|
6
|
+
* `__internal__` modules deliberately have no `index.ts`, so they never match
|
|
7
|
+
* `PUBLIC_ENTRY_GLOBS` (scripts/entry-manifest.mjs) and the `./utilities/*` exports
|
|
8
|
+
* map cannot resolve them — consumers physically cannot import this. Library code
|
|
9
|
+
* imports them via the package-private `#internal/utilities/*` subpath (area-namespaced — add `#internal/hooks/*` etc. as new areas grow internal modules) (package.json `imports`
|
|
10
|
+
* field, resolved by tsc/Vite/Vitest at source level and rewritten to relative paths
|
|
11
|
+
* in dist by the rollup `internal-subpath-imports` plugin). Never import via
|
|
12
|
+
* `@flipdish/ui-library/...` — it resolves in TypeScript but breaks at runtime;
|
|
13
|
+
* `check-deep-imports.mjs` enforces this.
|
|
14
|
+
*/
|
|
15
|
+
const seenWarnings = new Set();
|
|
16
|
+
/**
|
|
17
|
+
* Emits a `console.warn` prefixed with the library name, once per `key` for the
|
|
18
|
+
* lifetime of the module. Use for data-dependent runtime conditions (a blocked
|
|
19
|
+
* href scheme, a missing account id) that must stay visible in production —
|
|
20
|
+
* error-tracking tools pick console.warn up as breadcrumbs — without flooding
|
|
21
|
+
* the console on re-renders.
|
|
22
|
+
*/
|
|
23
|
+
const warnOnce = (key, message) => {
|
|
24
|
+
if (seenWarnings.has(key)) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
seenWarnings.add(key);
|
|
28
|
+
console.warn(`[@flipdish/ui-library] ${message}`);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.warnOnce = warnOnce;
|
|
32
|
+
//# sourceMappingURL=log.utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.utils.cjs","sources":["../../../../src/utilities/__internal__/logUtils/log.utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;;;;;AAWG;AAEH,MAAM,YAAY,GAAG,IAAI,GAAG,EAAU;AAEtC;;;;;;AAMG;MACU,QAAQ,GAAG,CAAC,GAAW,EAAE,OAAe,KAAU;AAC7D,IAAA,IAAI,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;QACzB;IACF;AACA,IAAA,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC;AACrB,IAAA,OAAO,CAAC,IAAI,CAAC,0BAA0B,OAAO,CAAA,CAAE,CAAC;AACnD;;;;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* INTERNAL — not part of the public API.
|
|
3
|
+
*
|
|
4
|
+
* `__internal__` modules deliberately have no `index.ts`, so they never match
|
|
5
|
+
* `PUBLIC_ENTRY_GLOBS` (scripts/entry-manifest.mjs) and the `./utilities/*` exports
|
|
6
|
+
* map cannot resolve them — consumers physically cannot import this. Library code
|
|
7
|
+
* imports them via the package-private `#internal/utilities/*` subpath (area-namespaced — add `#internal/hooks/*` etc. as new areas grow internal modules) (package.json `imports`
|
|
8
|
+
* field, resolved by tsc/Vite/Vitest at source level and rewritten to relative paths
|
|
9
|
+
* in dist by the rollup `internal-subpath-imports` plugin). Never import via
|
|
10
|
+
* `@flipdish/ui-library/...` — it resolves in TypeScript but breaks at runtime;
|
|
11
|
+
* `check-deep-imports.mjs` enforces this.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Emits a `console.warn` prefixed with the library name, once per `key` for the
|
|
15
|
+
* lifetime of the module. Use for data-dependent runtime conditions (a blocked
|
|
16
|
+
* href scheme, a missing account id) that must stay visible in production —
|
|
17
|
+
* error-tracking tools pick console.warn up as breadcrumbs — without flooding
|
|
18
|
+
* the console on re-renders.
|
|
19
|
+
*/
|
|
20
|
+
export declare const warnOnce: (key: string, message: string) => void;
|
|
21
|
+
/** Test-only: clears the once-per-key warning memory. */
|
|
22
|
+
export declare const resetWarnOnce: () => void;
|
|
23
|
+
//# sourceMappingURL=log.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.utils.d.ts","sourceRoot":"","sources":["../../../../src/utilities/__internal__/logUtils/log.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,EAAE,SAAS,MAAM,KAAG,IAMvD,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,aAAa,QAAO,IAEhC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* INTERNAL — not part of the public API.
|
|
3
|
+
*
|
|
4
|
+
* `__internal__` modules deliberately have no `index.ts`, so they never match
|
|
5
|
+
* `PUBLIC_ENTRY_GLOBS` (scripts/entry-manifest.mjs) and the `./utilities/*` exports
|
|
6
|
+
* map cannot resolve them — consumers physically cannot import this. Library code
|
|
7
|
+
* imports them via the package-private `#internal/utilities/*` subpath (area-namespaced — add `#internal/hooks/*` etc. as new areas grow internal modules) (package.json `imports`
|
|
8
|
+
* field, resolved by tsc/Vite/Vitest at source level and rewritten to relative paths
|
|
9
|
+
* in dist by the rollup `internal-subpath-imports` plugin). Never import via
|
|
10
|
+
* `@flipdish/ui-library/...` — it resolves in TypeScript but breaks at runtime;
|
|
11
|
+
* `check-deep-imports.mjs` enforces this.
|
|
12
|
+
*/
|
|
13
|
+
const seenWarnings = new Set();
|
|
14
|
+
/**
|
|
15
|
+
* Emits a `console.warn` prefixed with the library name, once per `key` for the
|
|
16
|
+
* lifetime of the module. Use for data-dependent runtime conditions (a blocked
|
|
17
|
+
* href scheme, a missing account id) that must stay visible in production —
|
|
18
|
+
* error-tracking tools pick console.warn up as breadcrumbs — without flooding
|
|
19
|
+
* the console on re-renders.
|
|
20
|
+
*/
|
|
21
|
+
const warnOnce = (key, message) => {
|
|
22
|
+
if (seenWarnings.has(key)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
seenWarnings.add(key);
|
|
26
|
+
console.warn(`[@flipdish/ui-library] ${message}`);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { warnOnce };
|
|
30
|
+
//# sourceMappingURL=log.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.utils.js","sources":["../../../../src/utilities/__internal__/logUtils/log.utils.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;;AAWG;AAEH,MAAM,YAAY,GAAG,IAAI,GAAG,EAAU;AAEtC;;;;;;AAMG;MACU,QAAQ,GAAG,CAAC,GAAW,EAAE,OAAe,KAAU;AAC7D,IAAA,IAAI,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;QACzB;IACF;AACA,IAAA,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC;AACrB,IAAA,OAAO,CAAC,IAAI,CAAC,0BAA0B,OAAO,CAAA,CAAE,CAAC;AACnD;;;;"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* INTERNAL — not part of the public API (see `logUtils` for the `__internal__`
|
|
5
|
+
* conventions). Shared implementation behind `localStorageUtils` and
|
|
6
|
+
* `sessionStorageUtils`, which were byte-identical twins before this factory —
|
|
7
|
+
* the public modules stay thin wrappers so their APIs are unchanged.
|
|
8
|
+
*
|
|
9
|
+
* Web-only, typed Web Storage persistence. DOM access lives here rather than in
|
|
10
|
+
* components, so component code stays free of `window.*` and keeps React Native
|
|
11
|
+
* parity. Every helper no-ops / returns `null` when the backing storage is
|
|
12
|
+
* unavailable (SSR, React Native, private mode, quota errors).
|
|
13
|
+
*/
|
|
14
|
+
const safeGet = (getStorage, key) => {
|
|
15
|
+
if (typeof window === 'undefined')
|
|
16
|
+
return null;
|
|
17
|
+
try {
|
|
18
|
+
return getStorage().getItem(key);
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const safeSet = (getStorage, key, value) => {
|
|
25
|
+
if (typeof window === 'undefined')
|
|
26
|
+
return false;
|
|
27
|
+
try {
|
|
28
|
+
getStorage().setItem(key, value);
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const safeRemove = (getStorage, key) => {
|
|
36
|
+
if (typeof window === 'undefined')
|
|
37
|
+
return false;
|
|
38
|
+
try {
|
|
39
|
+
getStorage().removeItem(key);
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
/** Reusable `validate` guard for a boolean item. */
|
|
47
|
+
const isBoolean = (value) => typeof value === 'boolean';
|
|
48
|
+
/**
|
|
49
|
+
* Parse a plain `'true'`/`'false'` string (not JSON) into a boolean; throws
|
|
50
|
+
* `errorMessage` for anything else so `WebStorageItem.get()` treats it as
|
|
51
|
+
* invalid data and returns `null`.
|
|
52
|
+
*/
|
|
53
|
+
const parseBooleanString = (raw, errorMessage) => {
|
|
54
|
+
if (raw === 'true')
|
|
55
|
+
return true;
|
|
56
|
+
if (raw === 'false')
|
|
57
|
+
return false;
|
|
58
|
+
throw new Error(errorMessage);
|
|
59
|
+
};
|
|
60
|
+
/** Build a typed, failure-safe accessor for a single key in the given storage. */
|
|
61
|
+
const createWebStorageItem = (getStorage, key, options = {}) => {
|
|
62
|
+
const { serialize = JSON.stringify, deserialize = JSON.parse, validate } = options;
|
|
63
|
+
return {
|
|
64
|
+
get() {
|
|
65
|
+
const raw = safeGet(getStorage, key);
|
|
66
|
+
if (raw == null)
|
|
67
|
+
return null;
|
|
68
|
+
try {
|
|
69
|
+
const value = deserialize(raw);
|
|
70
|
+
if (validate && !validate(value))
|
|
71
|
+
return null;
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
catch {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
set(value) {
|
|
79
|
+
try {
|
|
80
|
+
const serialized = serialize(value);
|
|
81
|
+
// JSON.stringify (and a custom serializer) can return `undefined` for a
|
|
82
|
+
// top-level `undefined`, function, or symbol — treat that as a failed
|
|
83
|
+
// serialization rather than writing the literal string "undefined".
|
|
84
|
+
if (typeof serialized !== 'string')
|
|
85
|
+
return;
|
|
86
|
+
safeSet(getStorage, key, serialized);
|
|
87
|
+
}
|
|
88
|
+
catch {
|
|
89
|
+
// serialize() can throw (e.g. circular refs); matches the documented
|
|
90
|
+
// failure-safe contract — silently ignore, same as a write failure.
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
clear() {
|
|
94
|
+
safeRemove(getStorage, key);
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
exports.createWebStorageItem = createWebStorageItem;
|
|
100
|
+
exports.isBoolean = isBoolean;
|
|
101
|
+
exports.parseBooleanString = parseBooleanString;
|
|
102
|
+
//# sourceMappingURL=webStorage.utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webStorage.utils.cjs","sources":["../../../../src/utilities/__internal__/webStorageUtils/webStorage.utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;;;;AAUG;AAKH,MAAM,OAAO,GAAG,CAAC,UAA2B,EAAE,GAAW,KAAmB;IAC1E,IAAI,OAAO,MAAM,KAAK,WAAW;AAAE,QAAA,OAAO,IAAI;AAC9C,IAAA,IAAI;AACF,QAAA,OAAO,UAAU,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC;IAClC;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,IAAI;IACb;AACF,CAAC;AAED,MAAM,OAAO,GAAG,CAAC,UAA2B,EAAE,GAAW,EAAE,KAAa,KAAa;IACnF,IAAI,OAAO,MAAM,KAAK,WAAW;AAAE,QAAA,OAAO,KAAK;AAC/C,IAAA,IAAI;QACF,UAAU,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC;AAChC,QAAA,OAAO,IAAI;IACb;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,KAAK;IACd;AACF,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,UAA2B,EAAE,GAAW,KAAa;IACvE,IAAI,OAAO,MAAM,KAAK,WAAW;AAAE,QAAA,OAAO,KAAK;AAC/C,IAAA,IAAI;AACF,QAAA,UAAU,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;AAC5B,QAAA,OAAO,IAAI;IACb;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,KAAK;IACd;AACF,CAAC;AAoBD;AACO,MAAM,SAAS,GAAG,CAAC,KAAc,KAAuB,OAAO,KAAK,KAAK;AAEhF;;;;AAIG;MACU,kBAAkB,GAAG,CAAC,GAAW,EAAE,YAAoB,KAAa;IAC/E,IAAI,GAAG,KAAK,MAAM;AAAE,QAAA,OAAO,IAAI;IAC/B,IAAI,GAAG,KAAK,OAAO;AAAE,QAAA,OAAO,KAAK;AACjC,IAAA,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC;AAC/B;AAEA;AACO,MAAM,oBAAoB,GAAG,CAAI,UAA2B,EAAE,GAAW,EAAE,OAAA,GAAoC,EAAE,KAAuB;AAC7I,IAAA,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI,CAAC,KAA2B,EAAE,QAAQ,EAAE,GAAG,OAAO;IAExG,OAAO;QACL,GAAG,GAAA;YACD,MAAM,GAAG,GAAG,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC;YACpC,IAAI,GAAG,IAAI,IAAI;AAAE,gBAAA,OAAO,IAAI;AAC5B,YAAA,IAAI;AACF,gBAAA,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC;AAC9B,gBAAA,IAAI,QAAQ,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;AAAE,oBAAA,OAAO,IAAI;AAC7C,gBAAA,OAAO,KAAK;YACd;AAAE,YAAA,MAAM;AACN,gBAAA,OAAO,IAAI;YACb;QACF,CAAC;AACD,QAAA,GAAG,CAAC,KAAK,EAAA;AACP,YAAA,IAAI;AACF,gBAAA,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC;;;;gBAInC,IAAI,OAAO,UAAU,KAAK,QAAQ;oBAAE;AACpC,gBAAA,OAAO,CAAC,UAAU,EAAE,GAAG,EAAE,UAAU,CAAC;YACtC;AAAE,YAAA,MAAM;;;YAGR;QACF,CAAC;QACD,KAAK,GAAA;AACH,YAAA,UAAU,CAAC,UAAU,EAAE,GAAG,CAAC;QAC7B,CAAC;KACF;AACH;;;;;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* INTERNAL — not part of the public API (see `logUtils` for the `__internal__`
|
|
3
|
+
* conventions). Shared implementation behind `localStorageUtils` and
|
|
4
|
+
* `sessionStorageUtils`, which were byte-identical twins before this factory —
|
|
5
|
+
* the public modules stay thin wrappers so their APIs are unchanged.
|
|
6
|
+
*
|
|
7
|
+
* Web-only, typed Web Storage persistence. DOM access lives here rather than in
|
|
8
|
+
* components, so component code stays free of `window.*` and keeps React Native
|
|
9
|
+
* parity. Every helper no-ops / returns `null` when the backing storage is
|
|
10
|
+
* unavailable (SSR, React Native, private mode, quota errors).
|
|
11
|
+
*/
|
|
12
|
+
/** Lazily reach the backing store — accessing `window.*Storage` itself can throw. */
|
|
13
|
+
type StorageAccessor = () => Storage;
|
|
14
|
+
export interface WebStorageItem<T> {
|
|
15
|
+
/** Read and deserialize the value, or `null` when unset/invalid/unavailable. */
|
|
16
|
+
get(): T | null;
|
|
17
|
+
/** Serialize and persist the value; silently ignores write failures. */
|
|
18
|
+
set(value: T): void;
|
|
19
|
+
/** Remove the value; silently ignores failures. */
|
|
20
|
+
clear(): void;
|
|
21
|
+
}
|
|
22
|
+
export interface WebStorageItemOptions<T> {
|
|
23
|
+
/** Serialize before writing. Defaults to `JSON.stringify`. */
|
|
24
|
+
serialize?: (value: T) => string;
|
|
25
|
+
/** Deserialize after reading. Defaults to `JSON.parse`. */
|
|
26
|
+
deserialize?: (raw: string) => T;
|
|
27
|
+
/** Optional runtime guard; `get()` returns `null` when it fails. */
|
|
28
|
+
validate?: (value: unknown) => value is T;
|
|
29
|
+
}
|
|
30
|
+
/** Reusable `validate` guard for a boolean item. */
|
|
31
|
+
export declare const isBoolean: (value: unknown) => value is boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Parse a plain `'true'`/`'false'` string (not JSON) into a boolean; throws
|
|
34
|
+
* `errorMessage` for anything else so `WebStorageItem.get()` treats it as
|
|
35
|
+
* invalid data and returns `null`.
|
|
36
|
+
*/
|
|
37
|
+
export declare const parseBooleanString: (raw: string, errorMessage: string) => boolean;
|
|
38
|
+
/** Build a typed, failure-safe accessor for a single key in the given storage. */
|
|
39
|
+
export declare const createWebStorageItem: <T>(getStorage: StorageAccessor, key: string, options?: WebStorageItemOptions<T>) => WebStorageItem<T>;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=webStorage.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webStorage.utils.d.ts","sourceRoot":"","sources":["../../../../src/utilities/__internal__/webStorageUtils/webStorage.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,qFAAqF;AACrF,KAAK,eAAe,GAAG,MAAM,OAAO,CAAC;AA+BrC,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,gFAAgF;IAChF,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAChB,wEAAwE;IACxE,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IACpB,mDAAmD;IACnD,KAAK,IAAI,IAAI,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC;IACtC,8DAA8D;IAC9D,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC;IACjC,2DAA2D;IAC3D,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,CAAC,CAAC;IACjC,oEAAoE;IACpE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC;CAC3C;AAED,oDAAoD;AACpD,eAAO,MAAM,SAAS,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,OAAqC,CAAC;AAE1F;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,EAAE,cAAc,MAAM,KAAG,OAItE,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,oBAAoB,GAAI,CAAC,EAAE,YAAY,eAAe,EAAE,KAAK,MAAM,EAAE,UAAS,qBAAqB,CAAC,CAAC,CAAM,KAAG,cAAc,CAAC,CAAC,CAgC1I,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* INTERNAL — not part of the public API (see `logUtils` for the `__internal__`
|
|
3
|
+
* conventions). Shared implementation behind `localStorageUtils` and
|
|
4
|
+
* `sessionStorageUtils`, which were byte-identical twins before this factory —
|
|
5
|
+
* the public modules stay thin wrappers so their APIs are unchanged.
|
|
6
|
+
*
|
|
7
|
+
* Web-only, typed Web Storage persistence. DOM access lives here rather than in
|
|
8
|
+
* components, so component code stays free of `window.*` and keeps React Native
|
|
9
|
+
* parity. Every helper no-ops / returns `null` when the backing storage is
|
|
10
|
+
* unavailable (SSR, React Native, private mode, quota errors).
|
|
11
|
+
*/
|
|
12
|
+
const safeGet = (getStorage, key) => {
|
|
13
|
+
if (typeof window === 'undefined')
|
|
14
|
+
return null;
|
|
15
|
+
try {
|
|
16
|
+
return getStorage().getItem(key);
|
|
17
|
+
}
|
|
18
|
+
catch {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const safeSet = (getStorage, key, value) => {
|
|
23
|
+
if (typeof window === 'undefined')
|
|
24
|
+
return false;
|
|
25
|
+
try {
|
|
26
|
+
getStorage().setItem(key, value);
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const safeRemove = (getStorage, key) => {
|
|
34
|
+
if (typeof window === 'undefined')
|
|
35
|
+
return false;
|
|
36
|
+
try {
|
|
37
|
+
getStorage().removeItem(key);
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
catch {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
/** Reusable `validate` guard for a boolean item. */
|
|
45
|
+
const isBoolean = (value) => typeof value === 'boolean';
|
|
46
|
+
/**
|
|
47
|
+
* Parse a plain `'true'`/`'false'` string (not JSON) into a boolean; throws
|
|
48
|
+
* `errorMessage` for anything else so `WebStorageItem.get()` treats it as
|
|
49
|
+
* invalid data and returns `null`.
|
|
50
|
+
*/
|
|
51
|
+
const parseBooleanString = (raw, errorMessage) => {
|
|
52
|
+
if (raw === 'true')
|
|
53
|
+
return true;
|
|
54
|
+
if (raw === 'false')
|
|
55
|
+
return false;
|
|
56
|
+
throw new Error(errorMessage);
|
|
57
|
+
};
|
|
58
|
+
/** Build a typed, failure-safe accessor for a single key in the given storage. */
|
|
59
|
+
const createWebStorageItem = (getStorage, key, options = {}) => {
|
|
60
|
+
const { serialize = JSON.stringify, deserialize = JSON.parse, validate } = options;
|
|
61
|
+
return {
|
|
62
|
+
get() {
|
|
63
|
+
const raw = safeGet(getStorage, key);
|
|
64
|
+
if (raw == null)
|
|
65
|
+
return null;
|
|
66
|
+
try {
|
|
67
|
+
const value = deserialize(raw);
|
|
68
|
+
if (validate && !validate(value))
|
|
69
|
+
return null;
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
catch {
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
set(value) {
|
|
77
|
+
try {
|
|
78
|
+
const serialized = serialize(value);
|
|
79
|
+
// JSON.stringify (and a custom serializer) can return `undefined` for a
|
|
80
|
+
// top-level `undefined`, function, or symbol — treat that as a failed
|
|
81
|
+
// serialization rather than writing the literal string "undefined".
|
|
82
|
+
if (typeof serialized !== 'string')
|
|
83
|
+
return;
|
|
84
|
+
safeSet(getStorage, key, serialized);
|
|
85
|
+
}
|
|
86
|
+
catch {
|
|
87
|
+
// serialize() can throw (e.g. circular refs); matches the documented
|
|
88
|
+
// failure-safe contract — silently ignore, same as a write failure.
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
clear() {
|
|
92
|
+
safeRemove(getStorage, key);
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export { createWebStorageItem, isBoolean, parseBooleanString };
|
|
98
|
+
//# sourceMappingURL=webStorage.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webStorage.utils.js","sources":["../../../../src/utilities/__internal__/webStorageUtils/webStorage.utils.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;AAUG;AAKH,MAAM,OAAO,GAAG,CAAC,UAA2B,EAAE,GAAW,KAAmB;IAC1E,IAAI,OAAO,MAAM,KAAK,WAAW;AAAE,QAAA,OAAO,IAAI;AAC9C,IAAA,IAAI;AACF,QAAA,OAAO,UAAU,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC;IAClC;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,IAAI;IACb;AACF,CAAC;AAED,MAAM,OAAO,GAAG,CAAC,UAA2B,EAAE,GAAW,EAAE,KAAa,KAAa;IACnF,IAAI,OAAO,MAAM,KAAK,WAAW;AAAE,QAAA,OAAO,KAAK;AAC/C,IAAA,IAAI;QACF,UAAU,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC;AAChC,QAAA,OAAO,IAAI;IACb;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,KAAK;IACd;AACF,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,UAA2B,EAAE,GAAW,KAAa;IACvE,IAAI,OAAO,MAAM,KAAK,WAAW;AAAE,QAAA,OAAO,KAAK;AAC/C,IAAA,IAAI;AACF,QAAA,UAAU,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;AAC5B,QAAA,OAAO,IAAI;IACb;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,KAAK;IACd;AACF,CAAC;AAoBD;AACO,MAAM,SAAS,GAAG,CAAC,KAAc,KAAuB,OAAO,KAAK,KAAK;AAEhF;;;;AAIG;MACU,kBAAkB,GAAG,CAAC,GAAW,EAAE,YAAoB,KAAa;IAC/E,IAAI,GAAG,KAAK,MAAM;AAAE,QAAA,OAAO,IAAI;IAC/B,IAAI,GAAG,KAAK,OAAO;AAAE,QAAA,OAAO,KAAK;AACjC,IAAA,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC;AAC/B;AAEA;AACO,MAAM,oBAAoB,GAAG,CAAI,UAA2B,EAAE,GAAW,EAAE,OAAA,GAAoC,EAAE,KAAuB;AAC7I,IAAA,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI,CAAC,KAA2B,EAAE,QAAQ,EAAE,GAAG,OAAO;IAExG,OAAO;QACL,GAAG,GAAA;YACD,MAAM,GAAG,GAAG,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC;YACpC,IAAI,GAAG,IAAI,IAAI;AAAE,gBAAA,OAAO,IAAI;AAC5B,YAAA,IAAI;AACF,gBAAA,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC;AAC9B,gBAAA,IAAI,QAAQ,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;AAAE,oBAAA,OAAO,IAAI;AAC7C,gBAAA,OAAO,KAAK;YACd;AAAE,YAAA,MAAM;AACN,gBAAA,OAAO,IAAI;YACb;QACF,CAAC;AACD,QAAA,GAAG,CAAC,KAAK,EAAA;AACP,YAAA,IAAI;AACF,gBAAA,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC;;;;gBAInC,IAAI,OAAO,UAAU,KAAK,QAAQ;oBAAE;AACpC,gBAAA,OAAO,CAAC,UAAU,EAAE,GAAG,EAAE,UAAU,CAAC;YACtC;AAAE,YAAA,MAAM;;;YAGR;QACF,CAAC;QACD,KAAK,GAAA;AACH,YAAA,UAAU,CAAC,UAAU,EAAE,GAAG,CAAC;QAC7B,CAAC;KACF;AACH;;;;"}
|
|
@@ -31,8 +31,8 @@ const twMerge = tailwindMerge.extendTailwindMerge({
|
|
|
31
31
|
const cx = twMerge;
|
|
32
32
|
/**
|
|
33
33
|
* Identity helper that exists only so Tailwind IntelliSense recognises and sorts
|
|
34
|
-
* the class strings held inside style-config objects (
|
|
35
|
-
*
|
|
34
|
+
* the class strings held inside style-config objects (the `*.styles.ts` sortCx
|
|
35
|
+
* maps components use). Returns its argument unchanged.
|
|
36
36
|
*/
|
|
37
37
|
const sortCx = (classes) => classes;
|
|
38
38
|
|
|
@@ -14,8 +14,8 @@ type ClassValue = string | number;
|
|
|
14
14
|
type ClassDefinition = Record<string, ClassValue | Record<string, ClassValue | Record<string, ClassValue>>>;
|
|
15
15
|
/**
|
|
16
16
|
* Identity helper that exists only so Tailwind IntelliSense recognises and sorts
|
|
17
|
-
* the class strings held inside style-config objects (
|
|
18
|
-
*
|
|
17
|
+
* the class strings held inside style-config objects (the `*.styles.ts` sortCx
|
|
18
|
+
* maps components use). Returns its argument unchanged.
|
|
19
19
|
*/
|
|
20
20
|
export declare const sortCx: <T extends ClassDefinition>(classes: T) => T;
|
|
21
21
|
export {};
|
|
@@ -29,8 +29,8 @@ const twMerge = extendTailwindMerge({
|
|
|
29
29
|
const cx = twMerge;
|
|
30
30
|
/**
|
|
31
31
|
* Identity helper that exists only so Tailwind IntelliSense recognises and sorts
|
|
32
|
-
* the class strings held inside style-config objects (
|
|
33
|
-
*
|
|
32
|
+
* the class strings held inside style-config objects (the `*.styles.ts` sortCx
|
|
33
|
+
* maps components use). Returns its argument unchanged.
|
|
34
34
|
*/
|
|
35
35
|
const sortCx = (classes) => classes;
|
|
36
36
|
|