diff --git a/.changeset/eleven-walls-enjoy.md b/.changeset/eleven-walls-enjoy.md new file mode 100644 index 00000000..fb4e3a16 --- /dev/null +++ b/.changeset/eleven-walls-enjoy.md @@ -0,0 +1,6 @@ +--- +"@greenlabs/formula-components": patch +"@greenlabs/rescript-formula-components": patch +--- + +fix: fix TextTab binding to emit correct export diff --git a/packages/components-rescript/src/Formula__TextTab.res b/packages/components-rescript/src/Formula__TextTab.res index fcdfff9a..bde6fe3c 100644 --- a/packages/components-rescript/src/Formula__TextTab.res +++ b/packages/components-rescript/src/Formula__TextTab.res @@ -1,5 +1,5 @@ module List = { - @module("@greenlabs/formula-components") @react.component + @module("@greenlabs/formula-components") @scope("TextTab") @react.component external make: ( ~props: {..}=?, ~rootProps: {..}=?, // TODO: RadixUI props @@ -8,7 +8,7 @@ module List = { ~onValueChange: string => unit=?, ~children: React.element, ~ref: ReactDOM.Ref.t=?, - ) => React.element = "TextTab" + ) => React.element = "List" } module Trigger = { @@ -17,21 +17,21 @@ module Trigger = { value?: int, } - @module("@greenlabs/formula-components") @react.component + @module("@greenlabs/formula-components") @scope("TextTab") @react.component external make: ( ~icon: React.componentLike<{..}, React.element>=?, // FIXME: Icon component type ~title: string=?, ~badge: badgeType=?, ~value: string, ~children: React.element=?, - ) => React.element = "TextTab" + ) => React.element = "Trigger" } module Content = { - @module("@greenlabs/formula-components") @react.component + @module("@greenlabs/formula-components") @scope("TextTab") @react.component external make: ( ~value: string, ~children: React.element=?, ~props: ReactDOM.domProps=?, - ) => React.element = "TextTab" + ) => React.element = "Content" } diff --git a/packages/components/package.json b/packages/components/package.json index 2a4a7db0..f440ca86 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -74,8 +74,8 @@ "storybook": "start-storybook -p 6006", "build:js": "rollup -c", "build:types": "tsc -b", - "build:css": "cat ./dist/cjs/assets/**/*.css > ./dist/cjs/formula.css && cat ./dist/esm/assets/**/*.css > ./dist/esm/formula.css", - "build": "yarn clean && yarn build:js && yarn build:types && yarn build:css", + "build:css": "concurrently \"cat ./dist/cjs/assets/**/*.css > ./dist/cjs/formula.css\" \"cat ./dist/esm/assets/**/*.css > ./dist/esm/formula.css\"", + "build": "yarn clean && concurrently \"yarn build:js && yarn build:css\" \"yarn build:types\"", "clean": "rm -rf ./dist", "start": "concurrently -g -n re,storybook \"yarn re:watch\" \"yarn storybook\"", "build:ts-icons": "cd src/Icon && yarn dlx @svgr/cli svgs --no-index && node ./templates/export-generator.js",