diff --git a/src/_internal/utils/dock.ts b/src/_internal/utils/dock.ts index fac0c94..cc2399d 100644 --- a/src/_internal/utils/dock.ts +++ b/src/_internal/utils/dock.ts @@ -1,8 +1,8 @@ -import pushpop from '@spudly/pushpop'; +import * as pushpop from '@spudly/pushpop'; import _clsx from 'clsx'; import {defaultImport} from 'default-import'; -const {isNotNil, unique} = pushpop; +const {isNotNil, unique} = defaultImport(pushpop); const clsx = defaultImport(_clsx); diff --git a/src/components/buttons/DropdownButton.stories.tsx b/src/components/buttons/DropdownButton.stories.tsx index d60b84f..ecbeffb 100644 --- a/src/components/buttons/DropdownButton.stories.tsx +++ b/src/components/buttons/DropdownButton.stories.tsx @@ -16,12 +16,12 @@ export const DropdownButton: FC = () => (
{menu} {menu} diff --git a/src/components/buttons/DropdownButton.tsx b/src/components/buttons/DropdownButton.tsx index 3a4d131..c00ed5b 100644 --- a/src/components/buttons/DropdownButton.tsx +++ b/src/components/buttons/DropdownButton.tsx @@ -24,7 +24,7 @@ const DropdownButton: FC = ({ ( + renderTrigger={({ref}) => ( diff --git a/tailwind-preset.cjs b/tailwind-preset.cjs index 1df0875..8b4548b 100644 --- a/tailwind-preset.cjs +++ b/tailwind-preset.cjs @@ -7,7 +7,11 @@ const colors = require('tailwindcss/colors.js'); */ module.exports = ({content = []} = {}) => ({ mode: 'jit', - content: ['./src/**/*.{js,cjs,mjs,jsx,ts,tsx,mts,cts}', ...content], + content: [ + // eslint-disable-next-line node/no-path-concat -- glob + `${__dirname}/dist/**/*.{js,cjs,mjs,jsx,ts,tsx,mts,cts}`, + ...content, + ], darkMode: 'class', theme: { extend: { diff --git a/tailwind.config.cjs b/tailwind.config.cjs index eb40b4a..f76b5a4 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -3,7 +3,10 @@ const uiPreset = require('./tailwind-preset.cjs'); module.exports = { presets: [ uiPreset({ - content: ['./.ladle/**/*.{js,cjs,mjs,jsx,ts,tsx,mts,cts}'], + content: [ + './src/**/*.{js,cjs,mjs,jsx,ts,tsx,mts,cts}', + './.ladle/**/*.{js,cjs,mjs,jsx,ts,tsx,mts,cts}', + ], }), ], };