@anker-in/headless-ui 0.0.28-alpha.1 → 0.0.28

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.
Files changed (77) hide show
  1. package/dist/cjs/biz-components/AccordionCards/index.js +1 -1
  2. package/dist/cjs/biz-components/AccordionCards/index.js.map +2 -2
  3. package/dist/cjs/biz-components/HeroBanner/HeroBanner.js +1 -1
  4. package/dist/cjs/biz-components/HeroBanner/HeroBanner.js.map +2 -2
  5. package/dist/cjs/components/picture.js +1 -1
  6. package/dist/cjs/components/picture.js.map +3 -3
  7. package/dist/esm/biz-components/AccordionCards/index.js +1 -1
  8. package/dist/esm/biz-components/AccordionCards/index.js.map +2 -2
  9. package/dist/esm/biz-components/HeroBanner/HeroBanner.js +1 -1
  10. package/dist/esm/biz-components/HeroBanner/HeroBanner.js.map +2 -2
  11. package/dist/esm/components/picture.js +1 -1
  12. package/dist/esm/components/picture.js.map +3 -3
  13. package/package.json +1 -1
  14. package/dist/cjs/biz-components/SectionHeading/SectionHeading.d.ts +0 -4
  15. package/dist/cjs/biz-components/SectionHeading/SectionHeading.js +0 -2
  16. package/dist/cjs/biz-components/SectionHeading/SectionHeading.js.map +0 -7
  17. package/dist/cjs/biz-components/SectionHeading/index.d.ts +0 -0
  18. package/dist/cjs/biz-components/SectionHeading/index.js +0 -2
  19. package/dist/cjs/biz-components/SectionHeading/index.js.map +0 -7
  20. package/dist/cjs/biz-components/SectionHeading/types.d.ts +0 -6
  21. package/dist/cjs/biz-components/SectionHeading/types.js +0 -2
  22. package/dist/cjs/biz-components/SectionHeading/types.js.map +0 -7
  23. package/dist/cjs/biz-components/Shelf/Shelf.d.ts +0 -6
  24. package/dist/cjs/biz-components/Shelf/Shelf.js +0 -2
  25. package/dist/cjs/biz-components/Shelf/Shelf.js.map +0 -7
  26. package/dist/cjs/biz-components/Shelf/index.d.ts +0 -1
  27. package/dist/cjs/biz-components/Shelf/index.js +0 -2
  28. package/dist/cjs/biz-components/Shelf/index.js.map +0 -7
  29. package/dist/cjs/biz-components/Shelf/types.d.ts +0 -6
  30. package/dist/cjs/biz-components/Shelf/types.js +0 -2
  31. package/dist/cjs/biz-components/Shelf/types.js.map +0 -7
  32. package/dist/cjs/helpers/GloablContext.d.ts +0 -10
  33. package/dist/cjs/helpers/GloablContext.js +0 -2
  34. package/dist/cjs/helpers/GloablContext.js.map +0 -7
  35. package/dist/cjs/hooks/useMergeRefs.d.ts +0 -4
  36. package/dist/cjs/shared/trackRef.d.ts +0 -0
  37. package/dist/cjs/stories/shelf.stories.d.ts +0 -16
  38. package/dist/cjs/stories/shelf.stories.js +0 -2
  39. package/dist/cjs/stories/shelf.stories.js.map +0 -7
  40. package/dist/cjs/tsconfig.tsbuildinfo +0 -1
  41. package/dist/cjs/types/libs.d.js +0 -2
  42. package/dist/cjs/types/libs.d.js.map +0 -7
  43. package/dist/esm/biz-components/SectionHeading/SectionHeading.d.ts +0 -4
  44. package/dist/esm/biz-components/SectionHeading/SectionHeading.js +0 -2
  45. package/dist/esm/biz-components/SectionHeading/SectionHeading.js.map +0 -7
  46. package/dist/esm/biz-components/SectionHeading/index.d.ts +0 -0
  47. package/dist/esm/biz-components/SectionHeading/index.js +0 -2
  48. package/dist/esm/biz-components/SectionHeading/index.js.map +0 -7
  49. package/dist/esm/biz-components/SectionHeading/types.d.ts +0 -6
  50. package/dist/esm/biz-components/SectionHeading/types.js +0 -2
  51. package/dist/esm/biz-components/SectionHeading/types.js.map +0 -7
  52. package/dist/esm/biz-components/Shelf/Shelf.d.ts +0 -6
  53. package/dist/esm/biz-components/Shelf/Shelf.js +0 -2
  54. package/dist/esm/biz-components/Shelf/Shelf.js.map +0 -7
  55. package/dist/esm/biz-components/Shelf/index.d.ts +0 -1
  56. package/dist/esm/biz-components/Shelf/index.js +0 -2
  57. package/dist/esm/biz-components/Shelf/index.js.map +0 -7
  58. package/dist/esm/biz-components/Shelf/types.d.ts +0 -6
  59. package/dist/esm/biz-components/Shelf/types.js +0 -1
  60. package/dist/esm/biz-components/Shelf/types.js.map +0 -7
  61. package/dist/esm/helpers/GloablContext.d.ts +0 -10
  62. package/dist/esm/helpers/GloablContext.js +0 -2
  63. package/dist/esm/helpers/GloablContext.js.map +0 -7
  64. package/dist/esm/hooks/useMergeRefs.d.ts +0 -4
  65. package/dist/esm/shared/trackRef.d.ts +0 -0
  66. package/dist/esm/stories/shelf.stories.d.ts +0 -16
  67. package/dist/esm/stories/shelf.stories.js +0 -2
  68. package/dist/esm/stories/shelf.stories.js.map +0 -7
  69. package/dist/esm/tsconfig.tsbuildinfo +0 -1
  70. package/dist/esm/types/libs.d.js +0 -2
  71. package/dist/esm/types/libs.d.js.map +0 -7
  72. /package/dist/cjs/hooks/{useEXposure.d.ts → useExposure.d.ts} +0 -0
  73. /package/dist/cjs/hooks/{useEXposure.js → useExposure.js} +0 -0
  74. /package/dist/cjs/hooks/{useEXposure.js.map → useExposure.js.map} +0 -0
  75. /package/dist/esm/hooks/{useEXposure.d.ts → useExposure.d.ts} +0 -0
  76. /package/dist/esm/hooks/{useEXposure.js → useExposure.js} +0 -0
  77. /package/dist/esm/hooks/{useEXposure.js.map → useExposure.js.map} +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/biz-components/Shelf/Shelf.tsx"],
4
- "sourcesContent": ["/**\n * \u8FD9\u662F\u4E00\u4E2Ademo \u6A21\u7248\n */\nimport { withStyles } from '../../shared/Styles.js'\nimport type { ShelfProps } from './types.js'\n\nconst Shelf = (props: ShelfProps) => {\n console.log('~ Shelf props', props)\n return (\n <div>\n <h1 className=\"text-2xl font-bold\">{props.title}</h1>\n <h2>{props.subtitle}</h2>\n <div>\n {props.products.map(product => (\n <div key={product.sku}>{product.name}</div>\n ))}\n </div>\n </div>\n )\n}\n\nexport default withStyles(Shelf)\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GASI,IAAAI,EAAA,6BANJC,EAA2B,kCAG3B,MAAMC,EAASC,IACb,QAAQ,IAAI,gBAAiBA,CAAK,KAEhC,QAAC,OACC,oBAAC,MAAG,UAAU,qBAAsB,SAAAA,EAAM,MAAM,KAChD,OAAC,MAAI,SAAAA,EAAM,SAAS,KACpB,OAAC,OACE,SAAAA,EAAM,SAAS,IAAIC,MAClB,OAAC,OAAuB,SAAAA,EAAQ,MAAtBA,EAAQ,GAAmB,CACtC,EACH,GACF,GAIJ,IAAON,KAAQ,cAAWI,CAAK",
6
- "names": ["Shelf_exports", "__export", "Shelf_default", "__toCommonJS", "import_jsx_runtime", "import_Styles", "Shelf", "props", "product"]
7
- }
@@ -1 +0,0 @@
1
- export { default } from './Shelf.js';
@@ -1,2 +0,0 @@
1
- "use strict";var m=Object.create;var t=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var c=(e,f)=>{for(var o in f)t(e,o,{get:f[o],enumerable:!0})},d=(e,f,o,a)=>{if(f&&typeof f=="object"||typeof f=="function")for(let r of u(f))!b.call(e,r)&&r!==o&&t(e,r,{get:()=>f[r],enumerable:!(a=p(f,r))||a.enumerable});return e};var g=(e,f,o)=>(o=e!=null?m(x(e)):{},d(f||!e||!e.__esModule?t(o,"default",{value:e,enumerable:!0}):o,e)),h=e=>d(t({},"__esModule",{value:!0}),e);var i={};c(i,{default:()=>l.default});module.exports=h(i);var l=g(require("./Shelf.js"));
2
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/biz-components/Shelf/index.ts"],
4
- "sourcesContent": ["export { default } from './Shelf.js'\n"],
5
- "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wCAAAE,EAAAF,GAAA,IAAAG,EAAwB",
6
- "names": ["Shelf_exports", "__export", "__toCommonJS", "import_Shelf"]
7
- }
@@ -1,6 +0,0 @@
1
- export type ShelfProps = {
2
- id: string;
3
- title: string;
4
- subtitle: string;
5
- products: any[];
6
- };
@@ -1,2 +0,0 @@
1
- "use strict";var e=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var o=(i,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of g(t))!l.call(i,r)&&r!==n&&e(i,r,{get:()=>t[r],enumerable:!(s=p(t,r))||s.enumerable});return i};var d=i=>o(e({},"__esModule",{value:!0}),i);var u={};module.exports=d(u);
2
- //# sourceMappingURL=types.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../src/biz-components/Shelf/types.ts"],
4
- "sourcesContent": ["export type ShelfProps = {\n id: string\n title: string\n subtitle: string\n products: any[]\n}\n"],
5
- "mappings": "+WAAA,IAAAA,EAAA,kBAAAC,EAAAD",
6
- "names": ["types_exports", "__toCommonJS"]
7
- }
@@ -1,10 +0,0 @@
1
- export declare const GlobalContext: import("react").Context<{
2
- gsap: null;
3
- ScrollTrigger: null;
4
- SplitText: null;
5
- }>;
6
- export declare const useGlobalContext: () => {
7
- gsap: null;
8
- ScrollTrigger: null;
9
- SplitText: null;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";var r=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var c=(e,t)=>{for(var o in t)r(e,o,{get:t[o],enumerable:!0})},C=(e,t,o,x)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of s(t))!a.call(e,l)&&l!==o&&r(e,l,{get:()=>t[l],enumerable:!(x=p(t,l))||x.enumerable});return e};var g=e=>C(r({},"__esModule",{value:!0}),e);var b={};c(b,{GlobalContext:()=>u,useGlobalContext:()=>i});module.exports=g(b);var n=require("react");const u=(0,n.createContext)({gsap:null,ScrollTrigger:null,SplitText:null}),i=()=>(0,n.useContext)(u);
2
- //# sourceMappingURL=GloablContext.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/helpers/GloablContext.ts"],
4
- "sourcesContent": ["import { createContext, useContext } from 'react'\n\nexport const GlobalContext = createContext({\n gsap: null,\n ScrollTrigger: null,\n SplitText: null,\n})\n\nexport const useGlobalContext = () => {\n return useContext(GlobalContext)\n}\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,EAAA,qBAAAC,IAAA,eAAAC,EAAAJ,GAAA,IAAAK,EAA0C,iBAEnC,MAAMH,KAAgB,iBAAc,CACzC,KAAM,KACN,cAAe,KACf,UAAW,IACb,CAAC,EAEYC,EAAmB,OACvB,cAAWD,CAAa",
6
- "names": ["GloablContext_exports", "__export", "GlobalContext", "useGlobalContext", "__toCommonJS", "import_react"]
7
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export type ReactRef<T> = React.RefCallback<T> | React.MutableRefObject<T>;
3
- export declare function assignRef<T = any>(ref: ReactRef<T> | null | undefined, value: T): void;
4
- export declare function useMergeRefs<T>(...refs: (ReactRef<T> | null | undefined)[]): (node: T | null) => void;
File without changes
@@ -1,16 +0,0 @@
1
- import type { StoryObj } from '@storybook/react';
2
- import React from 'react';
3
- declare const meta: {
4
- title: string;
5
- component: React.ForwardRefExoticComponent<Omit<import("../biz-components/Shelf/types.js").ShelfProps, keyof import("../shared/Styles.js").StylesProps> & Partial<import("../shared/Styles.js").StylesProps> & {
6
- className?: string;
7
- data?: Record<string, any>;
8
- } & React.RefAttributes<any>>;
9
- parameters: {
10
- layout: string;
11
- };
12
- tags: string[];
13
- };
14
- export default meta;
15
- type Story = StoryObj<typeof meta>;
16
- export declare const Default: Story;
@@ -1,2 +0,0 @@
1
- "use strict";var r=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var f=(e,t)=>{for(var s in t)r(e,s,{get:t[s],enumerable:!0})},l=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of m(t))!u.call(e,o)&&o!==s&&r(e,o,{get:()=>t[o],enumerable:!(a=p(t,o))||a.enumerable});return e};var c=e=>l(r({},"__esModule",{value:!0}),e);var S={};f(S,{Default:()=>d,default:()=>n});module.exports=c(S);var i=require("../biz-components/index.js"),b=require("react");const y={title:"Biz-Components/Shelf",component:i.Shelf,parameters:{layout:"centered"},tags:["autodocs"]};var n=y;const d={args:{id:"shelf",title:"this is title",subtitle:"this is subtitle",products:[{sku:"sku1",name:"product 1"},{sku:"sku2",name:"product 2"}]}};
2
- //# sourceMappingURL=shelf.stories.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/stories/shelf.stories.tsx"],
4
- "sourcesContent": ["import type { Meta, StoryObj } from '@storybook/react'\n\nimport { Shelf } from '../biz-components/index.js'\nimport React from 'react'\n\nconst meta = {\n title: 'Biz-Components/Shelf',\n component: Shelf,\n parameters: {\n layout: 'centered',\n },\n tags: ['autodocs'],\n} satisfies Meta<typeof Shelf>\n\nexport default meta\n\ntype Story = StoryObj<typeof meta>\n\nexport const Default: Story = {\n args: {\n id: 'shelf',\n title: 'this is title',\n subtitle: 'this is subtitle',\n products: [\n {\n sku: 'sku1',\n name: 'product 1',\n },\n {\n sku: 'sku2',\n name: 'product 2',\n },\n ],\n },\n}\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,EAAA,YAAAC,IAAA,eAAAC,EAAAJ,GAEA,IAAAK,EAAsB,sCACtBC,EAAkB,iBAElB,MAAMC,EAAO,CACX,MAAO,uBACP,UAAW,QACX,WAAY,CACV,OAAQ,UACV,EACA,KAAM,CAAC,UAAU,CACnB,EAEA,IAAOJ,EAAQI,EAIR,MAAML,EAAiB,CAC5B,KAAM,CACJ,GAAI,QACJ,MAAO,gBACP,SAAU,mBACV,SAAU,CACR,CACE,IAAK,OACL,KAAM,WACR,EACA,CACE,IAAK,OACL,KAAM,WACR,CACF,CACF,CACF",
6
- "names": ["shelf_stories_exports", "__export", "Default", "shelf_stories_default", "__toCommonJS", "import_biz_components", "import_react", "meta"]
7
- }