@anker-in/headless-ui 0.0.28-alpha.1 → 0.0.29
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/cjs/biz-components/AccordionCards/index.js +1 -1
- package/dist/cjs/biz-components/AccordionCards/index.js.map +2 -2
- package/dist/esm/biz-components/AccordionCards/index.js +1 -1
- package/dist/esm/biz-components/AccordionCards/index.js.map +2 -2
- package/package.json +1 -1
- package/dist/cjs/biz-components/SectionHeading/SectionHeading.d.ts +0 -4
- package/dist/cjs/biz-components/SectionHeading/SectionHeading.js +0 -2
- package/dist/cjs/biz-components/SectionHeading/SectionHeading.js.map +0 -7
- package/dist/cjs/biz-components/SectionHeading/index.d.ts +0 -0
- package/dist/cjs/biz-components/SectionHeading/index.js +0 -2
- package/dist/cjs/biz-components/SectionHeading/index.js.map +0 -7
- package/dist/cjs/biz-components/SectionHeading/types.d.ts +0 -6
- package/dist/cjs/biz-components/SectionHeading/types.js +0 -2
- package/dist/cjs/biz-components/SectionHeading/types.js.map +0 -7
- package/dist/cjs/biz-components/Shelf/Shelf.d.ts +0 -6
- package/dist/cjs/biz-components/Shelf/Shelf.js +0 -2
- package/dist/cjs/biz-components/Shelf/Shelf.js.map +0 -7
- package/dist/cjs/biz-components/Shelf/index.d.ts +0 -1
- package/dist/cjs/biz-components/Shelf/index.js +0 -2
- package/dist/cjs/biz-components/Shelf/index.js.map +0 -7
- package/dist/cjs/biz-components/Shelf/types.d.ts +0 -6
- package/dist/cjs/biz-components/Shelf/types.js +0 -2
- package/dist/cjs/biz-components/Shelf/types.js.map +0 -7
- package/dist/cjs/helpers/GloablContext.d.ts +0 -10
- package/dist/cjs/helpers/GloablContext.js +0 -2
- package/dist/cjs/helpers/GloablContext.js.map +0 -7
- package/dist/cjs/hooks/useMergeRefs.d.ts +0 -4
- package/dist/cjs/shared/trackRef.d.ts +0 -0
- package/dist/cjs/stories/shelf.stories.d.ts +0 -16
- package/dist/cjs/stories/shelf.stories.js +0 -2
- package/dist/cjs/stories/shelf.stories.js.map +0 -7
- package/dist/cjs/tsconfig.tsbuildinfo +0 -1
- package/dist/cjs/types/libs.d.js +0 -2
- package/dist/cjs/types/libs.d.js.map +0 -7
- package/dist/esm/biz-components/SectionHeading/SectionHeading.d.ts +0 -4
- package/dist/esm/biz-components/SectionHeading/SectionHeading.js +0 -2
- package/dist/esm/biz-components/SectionHeading/SectionHeading.js.map +0 -7
- package/dist/esm/biz-components/SectionHeading/index.d.ts +0 -0
- package/dist/esm/biz-components/SectionHeading/index.js +0 -2
- package/dist/esm/biz-components/SectionHeading/index.js.map +0 -7
- package/dist/esm/biz-components/SectionHeading/types.d.ts +0 -6
- package/dist/esm/biz-components/SectionHeading/types.js +0 -2
- package/dist/esm/biz-components/SectionHeading/types.js.map +0 -7
- package/dist/esm/biz-components/Shelf/Shelf.d.ts +0 -6
- package/dist/esm/biz-components/Shelf/Shelf.js +0 -2
- package/dist/esm/biz-components/Shelf/Shelf.js.map +0 -7
- package/dist/esm/biz-components/Shelf/index.d.ts +0 -1
- package/dist/esm/biz-components/Shelf/index.js +0 -2
- package/dist/esm/biz-components/Shelf/index.js.map +0 -7
- package/dist/esm/biz-components/Shelf/types.d.ts +0 -6
- package/dist/esm/biz-components/Shelf/types.js +0 -1
- package/dist/esm/biz-components/Shelf/types.js.map +0 -7
- package/dist/esm/helpers/GloablContext.d.ts +0 -10
- package/dist/esm/helpers/GloablContext.js +0 -2
- package/dist/esm/helpers/GloablContext.js.map +0 -7
- package/dist/esm/hooks/useMergeRefs.d.ts +0 -4
- package/dist/esm/shared/trackRef.d.ts +0 -0
- package/dist/esm/stories/shelf.stories.d.ts +0 -16
- package/dist/esm/stories/shelf.stories.js +0 -2
- package/dist/esm/stories/shelf.stories.js.map +0 -7
- package/dist/esm/tsconfig.tsbuildinfo +0 -1
- package/dist/esm/types/libs.d.js +0 -2
- package/dist/esm/types/libs.d.js.map +0 -7
- /package/dist/cjs/hooks/{useEXposure.d.ts → useExposure.d.ts} +0 -0
- /package/dist/cjs/hooks/{useEXposure.js → useExposure.js} +0 -0
- /package/dist/cjs/hooks/{useEXposure.js.map → useExposure.js.map} +0 -0
- /package/dist/esm/hooks/{useEXposure.d.ts → useExposure.d.ts} +0 -0
- /package/dist/esm/hooks/{useEXposure.js → useExposure.js} +0 -0
- /package/dist/esm/hooks/{useEXposure.js.map → useExposure.js.map} +0 -0
package/dist/cjs/types/libs.d.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{jsx as c}from"react/jsx-runtime";import n from"react";import{cn as a}from"../../helpers/utils.js";import{Heading as m}from"../../components/index.js";const s=n.forwardRef((e,t)=>{const{title:o,className:r,...i}=e;return c(m,{ref:t,className:a("section-heading",r),html:o,...i})});var l=s;export{l as default};
|
|
2
|
-
//# sourceMappingURL=SectionHeading.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/biz-components/SectionHeading/SectionHeading.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react'\nimport type { SectionHeadingProps } from './types.js'\nimport { cn } from '../../helpers/utils.js'\nimport { Heading } from '../../components/index.js'\n\nconst SectionHeading = React.forwardRef<HTMLDivElement, SectionHeadingProps>((props, ref) => {\n const { title, className, ...rest } = props\n\n return <Heading ref={ref} className={cn('section-heading', className)} html={title} {...rest} />\n})\n\nexport default SectionHeading\n"],
|
|
5
|
-
"mappings": "AAQS,cAAAA,MAAA,oBART,OAAOC,MAAW,QAElB,OAAS,MAAAC,MAAU,yBACnB,OAAS,WAAAC,MAAe,4BAExB,MAAMC,EAAiBH,EAAM,WAAgD,CAACI,EAAOC,IAAQ,CAC3F,KAAM,CAAE,MAAAC,EAAO,UAAAC,EAAW,GAAGC,CAAK,EAAIJ,EAEtC,OAAOL,EAACG,EAAA,CAAQ,IAAKG,EAAK,UAAWJ,EAAG,kBAAmBM,CAAS,EAAG,KAAMD,EAAQ,GAAGE,EAAM,CAChG,CAAC,EAED,IAAOC,EAAQN",
|
|
6
|
-
"names": ["jsx", "React", "cn", "Heading", "SectionHeading", "props", "ref", "title", "className", "rest", "SectionHeading_default"]
|
|
7
|
-
}
|
|
File without changes
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/biz-components/SectionHeading/types.ts"],
|
|
4
|
-
"sourcesContent": ["import React from 'react'\nexport interface SectionHeadingProps {\n title: string\n className?: string\n children: React.ReactNode\n}\n"],
|
|
5
|
-
"mappings": "AAAA,MAAkB",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ShelfProps } from './types.js';
|
|
2
|
-
declare const _default: import("react").ForwardRefExoticComponent<Omit<ShelfProps, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps> & {
|
|
3
|
-
className?: string;
|
|
4
|
-
data?: Record<string, any>;
|
|
5
|
-
} & import("react").RefAttributes<any>>;
|
|
6
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{jsx as t,jsxs as h}from"react/jsx-runtime";import{withStyles as o}from"../../shared/Styles.js";const i=e=>(console.log("~ Shelf props",e),h("div",{children:[t("h1",{className:"text-2xl font-bold",children:e.title}),t("h2",{children:e.subtitle}),t("div",{children:e.products.map(l=>t("div",{children:l.name},l.sku))})]}));var d=o(i);export{d as default};
|
|
2
|
-
//# sourceMappingURL=Shelf.js.map
|
|
@@ -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": "AASI,OACE,OAAAA,EADF,QAAAC,MAAA,oBANJ,OAAS,cAAAC,MAAkB,yBAG3B,MAAMC,EAASC,IACb,QAAQ,IAAI,gBAAiBA,CAAK,EAEhCH,EAAC,OACC,UAAAD,EAAC,MAAG,UAAU,qBAAsB,SAAAI,EAAM,MAAM,EAChDJ,EAAC,MAAI,SAAAI,EAAM,SAAS,EACpBJ,EAAC,OACE,SAAAI,EAAM,SAAS,IAAIC,GAClBL,EAAC,OAAuB,SAAAK,EAAQ,MAAtBA,EAAQ,GAAmB,CACtC,EACH,GACF,GAIJ,IAAOC,EAAQJ,EAAWC,CAAK",
|
|
6
|
-
"names": ["jsx", "jsxs", "withStyles", "Shelf", "props", "product", "Shelf_default"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Shelf.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=types.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": "AAAA,OAAS,iBAAAA,EAAe,cAAAC,MAAkB,QAEnC,MAAMC,EAAgBF,EAAc,CACzC,KAAM,KACN,cAAe,KACf,UAAW,IACb,CAAC,EAEYG,EAAmB,IACvBF,EAAWC,CAAa",
|
|
6
|
-
"names": ["createContext", "useContext", "GlobalContext", "useGlobalContext"]
|
|
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
|
-
import{Shelf as t}from"../biz-components/index.js";import"react";const e={title:"Biz-Components/Shelf",component:t,parameters:{layout:"centered"},tags:["autodocs"]};var a=e;const i={args:{id:"shelf",title:"this is title",subtitle:"this is subtitle",products:[{sku:"sku1",name:"product 1"},{sku:"sku2",name:"product 2"}]}};export{i as Default,a as default};
|
|
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": "AAEA,OAAS,SAAAA,MAAa,6BACtB,MAAkB,QAElB,MAAMC,EAAO,CACX,MAAO,uBACP,UAAWD,EACX,WAAY,CACV,OAAQ,UACV,EACA,KAAM,CAAC,UAAU,CACnB,EAEA,IAAOE,EAAQD,EAIR,MAAME,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", "meta", "shelf_stories_default", "Default"]
|
|
7
|
-
}
|