@jiwambe/components 0.2.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/LICENSE +21 -0
- package/README.md +367 -0
- package/dist/client.d.ts +40 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +46 -0
- package/dist/client.js.map +1 -0
- package/dist/components/Accordion/Accordion.d.ts +74 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.js +297 -0
- package/dist/components/Accordion/Accordion.js.map +1 -0
- package/dist/components/Box/Box.d.ts +56 -0
- package/dist/components/Box/Box.d.ts.map +1 -0
- package/dist/components/Box/Box.js +51 -0
- package/dist/components/Box/Box.js.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +66 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +54 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.js +92 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Card/Card.d.ts +54 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/Card.js +98 -0
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +61 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts.map +1 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.js +205 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/components/Container/Container.d.ts +72 -0
- package/dist/components/Container/Container.d.ts.map +1 -0
- package/dist/components/Container/Container.js +69 -0
- package/dist/components/Container/Container.js.map +1 -0
- package/dist/components/DateInput/DateInput.d.ts +61 -0
- package/dist/components/DateInput/DateInput.d.ts.map +1 -0
- package/dist/components/DateInput/DateInput.js +234 -0
- package/dist/components/DateInput/DateInput.js.map +1 -0
- package/dist/components/Divider/Divider.d.ts +44 -0
- package/dist/components/Divider/Divider.d.ts.map +1 -0
- package/dist/components/Divider/Divider.js +35 -0
- package/dist/components/Divider/Divider.js.map +1 -0
- package/dist/components/Drawer/Drawer.d.ts +35 -0
- package/dist/components/Drawer/Drawer.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.js +37 -0
- package/dist/components/Drawer/Drawer.js.map +1 -0
- package/dist/components/FAQ/FAQ.d.ts +40 -0
- package/dist/components/FAQ/FAQ.d.ts.map +1 -0
- package/dist/components/FAQ/FAQ.js +161 -0
- package/dist/components/FAQ/FAQ.js.map +1 -0
- package/dist/components/Grid/Grid.d.ts +61 -0
- package/dist/components/Grid/Grid.d.ts.map +1 -0
- package/dist/components/Grid/Grid.js +95 -0
- package/dist/components/Grid/Grid.js.map +1 -0
- package/dist/components/Icon/Icon.d.ts +21 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/Icon.js +167 -0
- package/dist/components/Icon/Icon.js.map +1 -0
- package/dist/components/Link/Link.d.ts +49 -0
- package/dist/components/Link/Link.d.ts.map +1 -0
- package/dist/components/Link/Link.js +70 -0
- package/dist/components/Link/Link.js.map +1 -0
- package/dist/components/List/List.d.ts +36 -0
- package/dist/components/List/List.d.ts.map +1 -0
- package/dist/components/List/List.js +42 -0
- package/dist/components/List/List.js.map +1 -0
- package/dist/components/List/index.d.ts +3 -0
- package/dist/components/List/index.d.ts.map +1 -0
- package/dist/components/Overlay/Overlay.d.ts +35 -0
- package/dist/components/Overlay/Overlay.d.ts.map +1 -0
- package/dist/components/Overlay/Overlay.js +51 -0
- package/dist/components/Overlay/Overlay.js.map +1 -0
- package/dist/components/PhoneInput/PhoneInput.d.ts +55 -0
- package/dist/components/PhoneInput/PhoneInput.d.ts.map +1 -0
- package/dist/components/PhoneInput/PhoneInput.js +255 -0
- package/dist/components/PhoneInput/PhoneInput.js.map +1 -0
- package/dist/components/Popover/Popover.d.ts +46 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -0
- package/dist/components/Popover/Popover.js +57 -0
- package/dist/components/Popover/Popover.js.map +1 -0
- package/dist/components/ProductImage/ProductImage.d.ts +78 -0
- package/dist/components/ProductImage/ProductImage.d.ts.map +1 -0
- package/dist/components/ProductImage/ProductImage.js +220 -0
- package/dist/components/ProductImage/ProductImage.js.map +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +63 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/dist/components/RadioGroup/RadioGroup.js +233 -0
- package/dist/components/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/components/Section/Section.d.ts +44 -0
- package/dist/components/Section/Section.d.ts.map +1 -0
- package/dist/components/Section/Section.js +48 -0
- package/dist/components/Section/Section.js.map +1 -0
- package/dist/components/Select/Select.d.ts +47 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/Select.js +153 -0
- package/dist/components/Select/Select.js.map +1 -0
- package/dist/components/SelectTab/SelectTab.d.ts +62 -0
- package/dist/components/SelectTab/SelectTab.d.ts.map +1 -0
- package/dist/components/SelectTab/SelectTab.js +192 -0
- package/dist/components/SelectTab/SelectTab.js.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +87 -0
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.js +97 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/Skeleton/index.d.ts +3 -0
- package/dist/components/Skeleton/index.d.ts.map +1 -0
- package/dist/components/Slider/Slider.d.ts +47 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -0
- package/dist/components/Slider/Slider.js +147 -0
- package/dist/components/Slider/Slider.js.map +1 -0
- package/dist/components/Stack/Stack.d.ts +145 -0
- package/dist/components/Stack/Stack.d.ts.map +1 -0
- package/dist/components/Stack/Stack.js +80 -0
- package/dist/components/Stack/Stack.js.map +1 -0
- package/dist/components/Tab/Tab.d.ts +38 -0
- package/dist/components/Tab/Tab.d.ts.map +1 -0
- package/dist/components/Tab/Tab.js +146 -0
- package/dist/components/Tab/Tab.js.map +1 -0
- package/dist/components/TextArea/TextArea.d.ts +32 -0
- package/dist/components/TextArea/TextArea.d.ts.map +1 -0
- package/dist/components/TextArea/TextArea.js +118 -0
- package/dist/components/TextArea/TextArea.js.map +1 -0
- package/dist/components/TextInput/TextInput.d.ts +35 -0
- package/dist/components/TextInput/TextInput.d.ts.map +1 -0
- package/dist/components/TextInput/TextInput.js +128 -0
- package/dist/components/TextInput/TextInput.js.map +1 -0
- package/dist/components/Toggle/Toggle.d.ts +83 -0
- package/dist/components/Toggle/Toggle.d.ts.map +1 -0
- package/dist/components/Toggle/Toggle.js +121 -0
- package/dist/components/Toggle/Toggle.js.map +1 -0
- package/dist/components/Typography/Typography.d.ts +321 -0
- package/dist/components/Typography/Typography.d.ts.map +1 -0
- package/dist/components/Typography/Typography.js +21 -0
- package/dist/components/Typography/Typography.js.map +1 -0
- package/dist/components/UploadInput/UploadInput.d.ts +39 -0
- package/dist/components/UploadInput/UploadInput.d.ts.map +1 -0
- package/dist/components/UploadInput/UploadInput.js +297 -0
- package/dist/components/UploadInput/UploadInput.js.map +1 -0
- package/dist/components/index.d.ts +65 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +69 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin/jiwambe-plugin.d.ts +37 -0
- package/dist/plugin/jiwambe-plugin.d.ts.map +1 -0
- package/dist/plugin/jiwambe-plugin.js +640 -0
- package/dist/plugin/jiwambe-plugin.js.map +1 -0
- package/dist/server.d.ts +22 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +23 -0
- package/dist/server.js.map +1 -0
- package/dist/types/index.d.ts +103 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/layout.d.ts +138 -0
- package/dist/types/layout.d.ts.map +1 -0
- package/dist/types/list.d.ts +69 -0
- package/dist/types/list.d.ts.map +1 -0
- package/dist/types/list.js +9 -0
- package/dist/types/list.js.map +1 -0
- package/dist/types/skeleton.d.ts +38 -0
- package/dist/types/skeleton.d.ts.map +1 -0
- package/dist/types/skeleton.js +13 -0
- package/dist/types/skeleton.js.map +1 -0
- package/dist/types/spacing.d.ts +105 -0
- package/dist/types/spacing.d.ts.map +1 -0
- package/dist/utils/layoutClasses.d.ts +44 -0
- package/dist/utils/layoutClasses.d.ts.map +1 -0
- package/dist/utils/layoutClasses.js +88 -0
- package/dist/utils/layoutClasses.js.map +1 -0
- package/dist/utils/responsive-props.d.ts +60 -0
- package/dist/utils/responsive-props.d.ts.map +1 -0
- package/dist/utils/responsive-props.js +184 -0
- package/dist/utils/responsive-props.js.map +1 -0
- package/dist/utils/spacing.d.ts +52 -0
- package/dist/utils/spacing.d.ts.map +1 -0
- package/dist/utils/spacing.js +625 -0
- package/dist/utils/spacing.js.map +1 -0
- package/package.json +96 -0
- package/tailwind.preset.d.ts +3 -0
- package/tailwind.preset.ts +21 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spacing.js","sources":["../../src/utils/spacing.ts"],"sourcesContent":["/**\n * Static Tailwind class maps for token-string spacing props.\n * No string interpolation — every class is present so Tailwind's JIT can detect them.\n */\nimport type { SpacingToken, MarginToken, SpacingProps, GapProps } from '../types/spacing';\n\n// ---------------------------------------------------------------------------\n// Padding maps (token keys → p-space-*, p-fluid-* etc.)\n// ---------------------------------------------------------------------------\n\nexport const pMap: Record<SpacingToken, string> = {\n 'space-0': 'p-space-0',\n 'space-0-25': 'p-space-0-25',\n 'space-1': 'p-space-1',\n 'space-2': 'p-space-2',\n 'space-3': 'p-space-3',\n 'space-4': 'p-space-4',\n 'space-5': 'p-space-5',\n 'space-6': 'p-space-6',\n 'space-8': 'p-space-8',\n 'space-9': 'p-space-9',\n 'space-12': 'p-space-12',\n 'space-16': 'p-space-16',\n 'space-18': 'p-space-18',\n 'space-24': 'p-space-24',\n 'space-30': 'p-space-30',\n 'space-36': 'p-space-36',\n 'space-48': 'p-space-48',\n 'space-72': 'p-space-72',\n 'fluid-1-2': 'p-fluid-1-2',\n 'fluid-2-4': 'p-fluid-2-4',\n 'fluid-4-5': 'p-fluid-4-5',\n 'fluid-4-6': 'p-fluid-4-6',\n 'fluid-4-8': 'p-fluid-4-8',\n 'fluid-4-9': 'p-fluid-4-9',\n 'fluid-5-6': 'p-fluid-5-6',\n 'fluid-6-9': 'p-fluid-6-9',\n 'fluid-8-16': 'p-fluid-8-16',\n 'fluid-16-18': 'p-fluid-16-18',\n 'fluid-30-36': 'p-fluid-30-36',\n 'fluid-48-72': 'p-fluid-48-72',\n};\n\nexport const pxMap: Record<SpacingToken, string> = {\n 'space-0': 'px-space-0',\n 'space-0-25': 'px-space-0-25',\n 'space-1': 'px-space-1',\n 'space-2': 'px-space-2',\n 'space-3': 'px-space-3',\n 'space-4': 'px-space-4',\n 'space-5': 'px-space-5',\n 'space-6': 'px-space-6',\n 'space-8': 'px-space-8',\n 'space-9': 'px-space-9',\n 'space-12': 'px-space-12',\n 'space-16': 'px-space-16',\n 'space-18': 'px-space-18',\n 'space-24': 'px-space-24',\n 'space-30': 'px-space-30',\n 'space-36': 'px-space-36',\n 'space-48': 'px-space-48',\n 'space-72': 'px-space-72',\n 'fluid-1-2': 'px-fluid-1-2',\n 'fluid-2-4': 'px-fluid-2-4',\n 'fluid-4-5': 'px-fluid-4-5',\n 'fluid-4-6': 'px-fluid-4-6',\n 'fluid-4-8': 'px-fluid-4-8',\n 'fluid-4-9': 'px-fluid-4-9',\n 'fluid-5-6': 'px-fluid-5-6',\n 'fluid-6-9': 'px-fluid-6-9',\n 'fluid-8-16': 'px-fluid-8-16',\n 'fluid-16-18': 'px-fluid-16-18',\n 'fluid-30-36': 'px-fluid-30-36',\n 'fluid-48-72': 'px-fluid-48-72',\n};\n\nexport const pyMap: Record<SpacingToken, string> = {\n 'space-0': 'py-space-0',\n 'space-0-25': 'py-space-0-25',\n 'space-1': 'py-space-1',\n 'space-2': 'py-space-2',\n 'space-3': 'py-space-3',\n 'space-4': 'py-space-4',\n 'space-5': 'py-space-5',\n 'space-6': 'py-space-6',\n 'space-8': 'py-space-8',\n 'space-9': 'py-space-9',\n 'space-12': 'py-space-12',\n 'space-16': 'py-space-16',\n 'space-18': 'py-space-18',\n 'space-24': 'py-space-24',\n 'space-30': 'py-space-30',\n 'space-36': 'py-space-36',\n 'space-48': 'py-space-48',\n 'space-72': 'py-space-72',\n 'fluid-1-2': 'py-fluid-1-2',\n 'fluid-2-4': 'py-fluid-2-4',\n 'fluid-4-5': 'py-fluid-4-5',\n 'fluid-4-6': 'py-fluid-4-6',\n 'fluid-4-8': 'py-fluid-4-8',\n 'fluid-4-9': 'py-fluid-4-9',\n 'fluid-5-6': 'py-fluid-5-6',\n 'fluid-6-9': 'py-fluid-6-9',\n 'fluid-8-16': 'py-fluid-8-16',\n 'fluid-16-18': 'py-fluid-16-18',\n 'fluid-30-36': 'py-fluid-30-36',\n 'fluid-48-72': 'py-fluid-48-72',\n};\n\nexport const ptMap: Record<SpacingToken, string> = {\n 'space-0': 'pt-space-0',\n 'space-0-25': 'pt-space-0-25',\n 'space-1': 'pt-space-1',\n 'space-2': 'pt-space-2',\n 'space-3': 'pt-space-3',\n 'space-4': 'pt-space-4',\n 'space-5': 'pt-space-5',\n 'space-6': 'pt-space-6',\n 'space-8': 'pt-space-8',\n 'space-9': 'pt-space-9',\n 'space-12': 'pt-space-12',\n 'space-16': 'pt-space-16',\n 'space-18': 'pt-space-18',\n 'space-24': 'pt-space-24',\n 'space-30': 'pt-space-30',\n 'space-36': 'pt-space-36',\n 'space-48': 'pt-space-48',\n 'space-72': 'pt-space-72',\n 'fluid-1-2': 'pt-fluid-1-2',\n 'fluid-2-4': 'pt-fluid-2-4',\n 'fluid-4-5': 'pt-fluid-4-5',\n 'fluid-4-6': 'pt-fluid-4-6',\n 'fluid-4-8': 'pt-fluid-4-8',\n 'fluid-4-9': 'pt-fluid-4-9',\n 'fluid-5-6': 'pt-fluid-5-6',\n 'fluid-6-9': 'pt-fluid-6-9',\n 'fluid-8-16': 'pt-fluid-8-16',\n 'fluid-16-18': 'pt-fluid-16-18',\n 'fluid-30-36': 'pt-fluid-30-36',\n 'fluid-48-72': 'pt-fluid-48-72',\n};\n\nexport const pbMap: Record<SpacingToken, string> = {\n 'space-0': 'pb-space-0',\n 'space-0-25': 'pb-space-0-25',\n 'space-1': 'pb-space-1',\n 'space-2': 'pb-space-2',\n 'space-3': 'pb-space-3',\n 'space-4': 'pb-space-4',\n 'space-5': 'pb-space-5',\n 'space-6': 'pb-space-6',\n 'space-8': 'pb-space-8',\n 'space-9': 'pb-space-9',\n 'space-12': 'pb-space-12',\n 'space-16': 'pb-space-16',\n 'space-18': 'pb-space-18',\n 'space-24': 'pb-space-24',\n 'space-30': 'pb-space-30',\n 'space-36': 'pb-space-36',\n 'space-48': 'pb-space-48',\n 'space-72': 'pb-space-72',\n 'fluid-1-2': 'pb-fluid-1-2',\n 'fluid-2-4': 'pb-fluid-2-4',\n 'fluid-4-5': 'pb-fluid-4-5',\n 'fluid-4-6': 'pb-fluid-4-6',\n 'fluid-4-8': 'pb-fluid-4-8',\n 'fluid-4-9': 'pb-fluid-4-9',\n 'fluid-5-6': 'pb-fluid-5-6',\n 'fluid-6-9': 'pb-fluid-6-9',\n 'fluid-8-16': 'pb-fluid-8-16',\n 'fluid-16-18': 'pb-fluid-16-18',\n 'fluid-30-36': 'pb-fluid-30-36',\n 'fluid-48-72': 'pb-fluid-48-72',\n};\n\nexport const plMap: Record<SpacingToken, string> = {\n 'space-0': 'pl-space-0',\n 'space-0-25': 'pl-space-0-25',\n 'space-1': 'pl-space-1',\n 'space-2': 'pl-space-2',\n 'space-3': 'pl-space-3',\n 'space-4': 'pl-space-4',\n 'space-5': 'pl-space-5',\n 'space-6': 'pl-space-6',\n 'space-8': 'pl-space-8',\n 'space-9': 'pl-space-9',\n 'space-12': 'pl-space-12',\n 'space-16': 'pl-space-16',\n 'space-18': 'pl-space-18',\n 'space-24': 'pl-space-24',\n 'space-30': 'pl-space-30',\n 'space-36': 'pl-space-36',\n 'space-48': 'pl-space-48',\n 'space-72': 'pl-space-72',\n 'fluid-1-2': 'pl-fluid-1-2',\n 'fluid-2-4': 'pl-fluid-2-4',\n 'fluid-4-5': 'pl-fluid-4-5',\n 'fluid-4-6': 'pl-fluid-4-6',\n 'fluid-4-8': 'pl-fluid-4-8',\n 'fluid-4-9': 'pl-fluid-4-9',\n 'fluid-5-6': 'pl-fluid-5-6',\n 'fluid-6-9': 'pl-fluid-6-9',\n 'fluid-8-16': 'pl-fluid-8-16',\n 'fluid-16-18': 'pl-fluid-16-18',\n 'fluid-30-36': 'pl-fluid-30-36',\n 'fluid-48-72': 'pl-fluid-48-72',\n};\n\nexport const prMap: Record<SpacingToken, string> = {\n 'space-0': 'pr-space-0',\n 'space-0-25': 'pr-space-0-25',\n 'space-1': 'pr-space-1',\n 'space-2': 'pr-space-2',\n 'space-3': 'pr-space-3',\n 'space-4': 'pr-space-4',\n 'space-5': 'pr-space-5',\n 'space-6': 'pr-space-6',\n 'space-8': 'pr-space-8',\n 'space-9': 'pr-space-9',\n 'space-12': 'pr-space-12',\n 'space-16': 'pr-space-16',\n 'space-18': 'pr-space-18',\n 'space-24': 'pr-space-24',\n 'space-30': 'pr-space-30',\n 'space-36': 'pr-space-36',\n 'space-48': 'pr-space-48',\n 'space-72': 'pr-space-72',\n 'fluid-1-2': 'pr-fluid-1-2',\n 'fluid-2-4': 'pr-fluid-2-4',\n 'fluid-4-5': 'pr-fluid-4-5',\n 'fluid-4-6': 'pr-fluid-4-6',\n 'fluid-4-8': 'pr-fluid-4-8',\n 'fluid-4-9': 'pr-fluid-4-9',\n 'fluid-5-6': 'pr-fluid-5-6',\n 'fluid-6-9': 'pr-fluid-6-9',\n 'fluid-8-16': 'pr-fluid-8-16',\n 'fluid-16-18': 'pr-fluid-16-18',\n 'fluid-30-36': 'pr-fluid-30-36',\n 'fluid-48-72': 'pr-fluid-48-72',\n};\n\n// ---------------------------------------------------------------------------\n// Margin maps (all SpacingToken keys plus 'auto')\n// ---------------------------------------------------------------------------\n\nexport const mMap: Record<MarginToken, string> = {\n 'space-0': 'm-space-0',\n 'space-0-25': 'm-space-0-25',\n 'space-1': 'm-space-1',\n 'space-2': 'm-space-2',\n 'space-3': 'm-space-3',\n 'space-4': 'm-space-4',\n 'space-5': 'm-space-5',\n 'space-6': 'm-space-6',\n 'space-8': 'm-space-8',\n 'space-9': 'm-space-9',\n 'space-12': 'm-space-12',\n 'space-16': 'm-space-16',\n 'space-18': 'm-space-18',\n 'space-24': 'm-space-24',\n 'space-30': 'm-space-30',\n 'space-36': 'm-space-36',\n 'space-48': 'm-space-48',\n 'space-72': 'm-space-72',\n 'fluid-1-2': 'm-fluid-1-2',\n 'fluid-2-4': 'm-fluid-2-4',\n 'fluid-4-5': 'm-fluid-4-5',\n 'fluid-4-6': 'm-fluid-4-6',\n 'fluid-4-8': 'm-fluid-4-8',\n 'fluid-4-9': 'm-fluid-4-9',\n 'fluid-5-6': 'm-fluid-5-6',\n 'fluid-6-9': 'm-fluid-6-9',\n 'fluid-8-16': 'm-fluid-8-16',\n 'fluid-16-18': 'm-fluid-16-18',\n 'fluid-30-36': 'm-fluid-30-36',\n 'fluid-48-72': 'm-fluid-48-72',\n auto: 'm-auto',\n};\n\nexport const mxMap: Record<MarginToken, string> = {\n 'space-0': 'mx-space-0',\n 'space-0-25': 'mx-space-0-25',\n 'space-1': 'mx-space-1',\n 'space-2': 'mx-space-2',\n 'space-3': 'mx-space-3',\n 'space-4': 'mx-space-4',\n 'space-5': 'mx-space-5',\n 'space-6': 'mx-space-6',\n 'space-8': 'mx-space-8',\n 'space-9': 'mx-space-9',\n 'space-12': 'mx-space-12',\n 'space-16': 'mx-space-16',\n 'space-18': 'mx-space-18',\n 'space-24': 'mx-space-24',\n 'space-30': 'mx-space-30',\n 'space-36': 'mx-space-36',\n 'space-48': 'mx-space-48',\n 'space-72': 'mx-space-72',\n 'fluid-1-2': 'mx-fluid-1-2',\n 'fluid-2-4': 'mx-fluid-2-4',\n 'fluid-4-5': 'mx-fluid-4-5',\n 'fluid-4-6': 'mx-fluid-4-6',\n 'fluid-4-8': 'mx-fluid-4-8',\n 'fluid-4-9': 'mx-fluid-4-9',\n 'fluid-5-6': 'mx-fluid-5-6',\n 'fluid-6-9': 'mx-fluid-6-9',\n 'fluid-8-16': 'mx-fluid-8-16',\n 'fluid-16-18': 'mx-fluid-16-18',\n 'fluid-30-36': 'mx-fluid-30-36',\n 'fluid-48-72': 'mx-fluid-48-72',\n auto: 'mx-auto',\n};\n\nexport const myMap: Record<MarginToken, string> = {\n 'space-0': 'my-space-0',\n 'space-0-25': 'my-space-0-25',\n 'space-1': 'my-space-1',\n 'space-2': 'my-space-2',\n 'space-3': 'my-space-3',\n 'space-4': 'my-space-4',\n 'space-5': 'my-space-5',\n 'space-6': 'my-space-6',\n 'space-8': 'my-space-8',\n 'space-9': 'my-space-9',\n 'space-12': 'my-space-12',\n 'space-16': 'my-space-16',\n 'space-18': 'my-space-18',\n 'space-24': 'my-space-24',\n 'space-30': 'my-space-30',\n 'space-36': 'my-space-36',\n 'space-48': 'my-space-48',\n 'space-72': 'my-space-72',\n 'fluid-1-2': 'my-fluid-1-2',\n 'fluid-2-4': 'my-fluid-2-4',\n 'fluid-4-5': 'my-fluid-4-5',\n 'fluid-4-6': 'my-fluid-4-6',\n 'fluid-4-8': 'my-fluid-4-8',\n 'fluid-4-9': 'my-fluid-4-9',\n 'fluid-5-6': 'my-fluid-5-6',\n 'fluid-6-9': 'my-fluid-6-9',\n 'fluid-8-16': 'my-fluid-8-16',\n 'fluid-16-18': 'my-fluid-16-18',\n 'fluid-30-36': 'my-fluid-30-36',\n 'fluid-48-72': 'my-fluid-48-72',\n auto: 'my-auto',\n};\n\nexport const mtMap: Record<MarginToken, string> = {\n 'space-0': 'mt-space-0',\n 'space-0-25': 'mt-space-0-25',\n 'space-1': 'mt-space-1',\n 'space-2': 'mt-space-2',\n 'space-3': 'mt-space-3',\n 'space-4': 'mt-space-4',\n 'space-5': 'mt-space-5',\n 'space-6': 'mt-space-6',\n 'space-8': 'mt-space-8',\n 'space-9': 'mt-space-9',\n 'space-12': 'mt-space-12',\n 'space-16': 'mt-space-16',\n 'space-18': 'mt-space-18',\n 'space-24': 'mt-space-24',\n 'space-30': 'mt-space-30',\n 'space-36': 'mt-space-36',\n 'space-48': 'mt-space-48',\n 'space-72': 'mt-space-72',\n 'fluid-1-2': 'mt-fluid-1-2',\n 'fluid-2-4': 'mt-fluid-2-4',\n 'fluid-4-5': 'mt-fluid-4-5',\n 'fluid-4-6': 'mt-fluid-4-6',\n 'fluid-4-8': 'mt-fluid-4-8',\n 'fluid-4-9': 'mt-fluid-4-9',\n 'fluid-5-6': 'mt-fluid-5-6',\n 'fluid-6-9': 'mt-fluid-6-9',\n 'fluid-8-16': 'mt-fluid-8-16',\n 'fluid-16-18': 'mt-fluid-16-18',\n 'fluid-30-36': 'mt-fluid-30-36',\n 'fluid-48-72': 'mt-fluid-48-72',\n auto: 'mt-auto',\n};\n\nexport const mbMap: Record<MarginToken, string> = {\n 'space-0': 'mb-space-0',\n 'space-0-25': 'mb-space-0-25',\n 'space-1': 'mb-space-1',\n 'space-2': 'mb-space-2',\n 'space-3': 'mb-space-3',\n 'space-4': 'mb-space-4',\n 'space-5': 'mb-space-5',\n 'space-6': 'mb-space-6',\n 'space-8': 'mb-space-8',\n 'space-9': 'mb-space-9',\n 'space-12': 'mb-space-12',\n 'space-16': 'mb-space-16',\n 'space-18': 'mb-space-18',\n 'space-24': 'mb-space-24',\n 'space-30': 'mb-space-30',\n 'space-36': 'mb-space-36',\n 'space-48': 'mb-space-48',\n 'space-72': 'mb-space-72',\n 'fluid-1-2': 'mb-fluid-1-2',\n 'fluid-2-4': 'mb-fluid-2-4',\n 'fluid-4-5': 'mb-fluid-4-5',\n 'fluid-4-6': 'mb-fluid-4-6',\n 'fluid-4-8': 'mb-fluid-4-8',\n 'fluid-4-9': 'mb-fluid-4-9',\n 'fluid-5-6': 'mb-fluid-5-6',\n 'fluid-6-9': 'mb-fluid-6-9',\n 'fluid-8-16': 'mb-fluid-8-16',\n 'fluid-16-18': 'mb-fluid-16-18',\n 'fluid-30-36': 'mb-fluid-30-36',\n 'fluid-48-72': 'mb-fluid-48-72',\n auto: 'mb-auto',\n};\n\nexport const mlMap: Record<MarginToken, string> = {\n 'space-0': 'ml-space-0',\n 'space-0-25': 'ml-space-0-25',\n 'space-1': 'ml-space-1',\n 'space-2': 'ml-space-2',\n 'space-3': 'ml-space-3',\n 'space-4': 'ml-space-4',\n 'space-5': 'ml-space-5',\n 'space-6': 'ml-space-6',\n 'space-8': 'ml-space-8',\n 'space-9': 'ml-space-9',\n 'space-12': 'ml-space-12',\n 'space-16': 'ml-space-16',\n 'space-18': 'ml-space-18',\n 'space-24': 'ml-space-24',\n 'space-30': 'ml-space-30',\n 'space-36': 'ml-space-36',\n 'space-48': 'ml-space-48',\n 'space-72': 'ml-space-72',\n 'fluid-1-2': 'ml-fluid-1-2',\n 'fluid-2-4': 'ml-fluid-2-4',\n 'fluid-4-5': 'ml-fluid-4-5',\n 'fluid-4-6': 'ml-fluid-4-6',\n 'fluid-4-8': 'ml-fluid-4-8',\n 'fluid-4-9': 'ml-fluid-4-9',\n 'fluid-5-6': 'ml-fluid-5-6',\n 'fluid-6-9': 'ml-fluid-6-9',\n 'fluid-8-16': 'ml-fluid-8-16',\n 'fluid-16-18': 'ml-fluid-16-18',\n 'fluid-30-36': 'ml-fluid-30-36',\n 'fluid-48-72': 'ml-fluid-48-72',\n auto: 'ml-auto',\n};\n\nexport const mrMap: Record<MarginToken, string> = {\n 'space-0': 'mr-space-0',\n 'space-0-25': 'mr-space-0-25',\n 'space-1': 'mr-space-1',\n 'space-2': 'mr-space-2',\n 'space-3': 'mr-space-3',\n 'space-4': 'mr-space-4',\n 'space-5': 'mr-space-5',\n 'space-6': 'mr-space-6',\n 'space-8': 'mr-space-8',\n 'space-9': 'mr-space-9',\n 'space-12': 'mr-space-12',\n 'space-16': 'mr-space-16',\n 'space-18': 'mr-space-18',\n 'space-24': 'mr-space-24',\n 'space-30': 'mr-space-30',\n 'space-36': 'mr-space-36',\n 'space-48': 'mr-space-48',\n 'space-72': 'mr-space-72',\n 'fluid-1-2': 'mr-fluid-1-2',\n 'fluid-2-4': 'mr-fluid-2-4',\n 'fluid-4-5': 'mr-fluid-4-5',\n 'fluid-4-6': 'mr-fluid-4-6',\n 'fluid-4-8': 'mr-fluid-4-8',\n 'fluid-4-9': 'mr-fluid-4-9',\n 'fluid-5-6': 'mr-fluid-5-6',\n 'fluid-6-9': 'mr-fluid-6-9',\n 'fluid-8-16': 'mr-fluid-8-16',\n 'fluid-16-18': 'mr-fluid-16-18',\n 'fluid-30-36': 'mr-fluid-30-36',\n 'fluid-48-72': 'mr-fluid-48-72',\n auto: 'mr-auto',\n};\n\n// ---------------------------------------------------------------------------\n// Gap maps (for Stack / Grid)\n// ---------------------------------------------------------------------------\n\nexport const gapMap: Record<SpacingToken, string> = {\n 'space-0': 'gap-space-0',\n 'space-0-25': 'gap-space-0-25',\n 'space-1': 'gap-space-1',\n 'space-2': 'gap-space-2',\n 'space-3': 'gap-space-3',\n 'space-4': 'gap-space-4',\n 'space-5': 'gap-space-5',\n 'space-6': 'gap-space-6',\n 'space-8': 'gap-space-8',\n 'space-9': 'gap-space-9',\n 'space-12': 'gap-space-12',\n 'space-16': 'gap-space-16',\n 'space-18': 'gap-space-18',\n 'space-24': 'gap-space-24',\n 'space-30': 'gap-space-30',\n 'space-36': 'gap-space-36',\n 'space-48': 'gap-space-48',\n 'space-72': 'gap-space-72',\n 'fluid-1-2': 'gap-fluid-1-2',\n 'fluid-2-4': 'gap-fluid-2-4',\n 'fluid-4-5': 'gap-fluid-4-5',\n 'fluid-4-6': 'gap-fluid-4-6',\n 'fluid-4-8': 'gap-fluid-4-8',\n 'fluid-4-9': 'gap-fluid-4-9',\n 'fluid-5-6': 'gap-fluid-5-6',\n 'fluid-6-9': 'gap-fluid-6-9',\n 'fluid-8-16': 'gap-fluid-8-16',\n 'fluid-16-18': 'gap-fluid-16-18',\n 'fluid-30-36': 'gap-fluid-30-36',\n 'fluid-48-72': 'gap-fluid-48-72',\n};\n\nexport const rowGapMap: Record<SpacingToken, string> = {\n 'space-0': 'gap-y-space-0',\n 'space-0-25': 'gap-y-space-0-25',\n 'space-1': 'gap-y-space-1',\n 'space-2': 'gap-y-space-2',\n 'space-3': 'gap-y-space-3',\n 'space-4': 'gap-y-space-4',\n 'space-5': 'gap-y-space-5',\n 'space-6': 'gap-y-space-6',\n 'space-8': 'gap-y-space-8',\n 'space-9': 'gap-y-space-9',\n 'space-12': 'gap-y-space-12',\n 'space-16': 'gap-y-space-16',\n 'space-18': 'gap-y-space-18',\n 'space-24': 'gap-y-space-24',\n 'space-30': 'gap-y-space-30',\n 'space-36': 'gap-y-space-36',\n 'space-48': 'gap-y-space-48',\n 'space-72': 'gap-y-space-72',\n 'fluid-1-2': 'gap-y-fluid-1-2',\n 'fluid-2-4': 'gap-y-fluid-2-4',\n 'fluid-4-5': 'gap-y-fluid-4-5',\n 'fluid-4-6': 'gap-y-fluid-4-6',\n 'fluid-4-8': 'gap-y-fluid-4-8',\n 'fluid-4-9': 'gap-y-fluid-4-9',\n 'fluid-5-6': 'gap-y-fluid-5-6',\n 'fluid-6-9': 'gap-y-fluid-6-9',\n 'fluid-8-16': 'gap-y-fluid-8-16',\n 'fluid-16-18': 'gap-y-fluid-16-18',\n 'fluid-30-36': 'gap-y-fluid-30-36',\n 'fluid-48-72': 'gap-y-fluid-48-72',\n};\n\nexport const colGapMap: Record<SpacingToken, string> = {\n 'space-0': 'gap-x-space-0',\n 'space-0-25': 'gap-x-space-0-25',\n 'space-1': 'gap-x-space-1',\n 'space-2': 'gap-x-space-2',\n 'space-3': 'gap-x-space-3',\n 'space-4': 'gap-x-space-4',\n 'space-5': 'gap-x-space-5',\n 'space-6': 'gap-x-space-6',\n 'space-8': 'gap-x-space-8',\n 'space-9': 'gap-x-space-9',\n 'space-12': 'gap-x-space-12',\n 'space-16': 'gap-x-space-16',\n 'space-18': 'gap-x-space-18',\n 'space-24': 'gap-x-space-24',\n 'space-30': 'gap-x-space-30',\n 'space-36': 'gap-x-space-36',\n 'space-48': 'gap-x-space-48',\n 'space-72': 'gap-x-space-72',\n 'fluid-1-2': 'gap-x-fluid-1-2',\n 'fluid-2-4': 'gap-x-fluid-2-4',\n 'fluid-4-5': 'gap-x-fluid-4-5',\n 'fluid-4-6': 'gap-x-fluid-4-6',\n 'fluid-4-8': 'gap-x-fluid-4-8',\n 'fluid-4-9': 'gap-x-fluid-4-9',\n 'fluid-5-6': 'gap-x-fluid-5-6',\n 'fluid-6-9': 'gap-x-fluid-6-9',\n 'fluid-8-16': 'gap-x-fluid-8-16',\n 'fluid-16-18': 'gap-x-fluid-16-18',\n 'fluid-30-36': 'gap-x-fluid-30-36',\n 'fluid-48-72': 'gap-x-fluid-48-72',\n};\n\n// ---------------------------------------------------------------------------\n// Flex align-items / justify-content (for Stack)\n// ---------------------------------------------------------------------------\n\n/** Shorthand values for Stack's align prop (cross-axis alignment). */\nexport type StackAlign = 'start' | 'center' | 'end' | 'stretch';\n\n/** Shorthand values for Stack's justify prop (main-axis distribution). */\nexport type StackJustify = 'start' | 'center' | 'end' | 'between' | 'around';\n\nexport const alignMap: Record<StackAlign, string> = {\n start: 'items-start',\n center: 'items-center',\n end: 'items-end',\n stretch: 'items-stretch',\n} as const;\n\nexport const justifyMap: Record<StackJustify, string> = {\n start: 'justify-start',\n center: 'justify-center',\n end: 'justify-end',\n between: 'justify-between',\n around: 'justify-around',\n} as const;\n\n// ---------------------------------------------------------------------------\n// resolveSpacing — convert SpacingProps + GapProps to Tailwind class string\n// ---------------------------------------------------------------------------\n\nexport const SPACING_PROP_KEYS: (keyof SpacingProps)[] = [\n 'p', 'px', 'py', 'pt', 'pb', 'pl', 'pr',\n 'm', 'mx', 'my', 'mt', 'mb', 'ml', 'mr',\n];\n\n/**\n * Converts a SpacingProps (and optional GapProps) object into a space-separated\n * string of Tailwind utility classes. Each prop value (a SpacingToken string)\n * is looked up in a static class map and resolved to the corresponding Tailwind\n * utility class generated by jiwambe-plugin's spacing theme extension.\n *\n * Returns an empty string if no spacing props are provided. Safe to pass\n * directly to a className prop.\n *\n * @param props - An object containing any SpacingProps or GapProps keys.\n * Non-spacing keys are ignored.\n * @returns A space-separated Tailwind class string or empty string.\n *\n * @example\n * resolveSpacing({ p: 'space-4', mt: 'space-8' })\n * // → 'p-space-4 mt-space-8'\n *\n * @example\n * resolveSpacing({ px: 'fluid-4-9', mx: 'auto' })\n * // → 'px-fluid-4-9 mx-auto'\n *\n * @example\n * resolveSpacing({})\n * // → ''\n */\nexport function resolveSpacing(props: SpacingProps & Partial<GapProps>): string {\n const classes: string[] = [];\n\n if (props.p !== undefined) classes.push(pMap[props.p]);\n if (props.px !== undefined) classes.push(pxMap[props.px]);\n if (props.py !== undefined) classes.push(pyMap[props.py]);\n if (props.pt !== undefined) classes.push(ptMap[props.pt]);\n if (props.pb !== undefined) classes.push(pbMap[props.pb]);\n if (props.pl !== undefined) classes.push(plMap[props.pl]);\n if (props.pr !== undefined) classes.push(prMap[props.pr]);\n\n if (props.m !== undefined) classes.push(mMap[props.m]);\n if (props.mx !== undefined) classes.push(mxMap[props.mx]);\n if (props.my !== undefined) classes.push(myMap[props.my]);\n if (props.mt !== undefined) classes.push(mtMap[props.mt]);\n if (props.mb !== undefined) classes.push(mbMap[props.mb]);\n if (props.ml !== undefined) classes.push(mlMap[props.ml]);\n if (props.mr !== undefined) classes.push(mrMap[props.mr]);\n\n if (props.gap !== undefined) classes.push(gapMap[props.gap]);\n if (props.rowGap !== undefined) classes.push(rowGapMap[props.rowGap]);\n if (props.columnGap !== undefined) classes.push(colGapMap[props.columnGap]);\n\n return classes.filter(Boolean).join(' ');\n}\n"],"names":[],"mappings":"AAUO,MAAM,OAAqC;AAAA,EAChD,WAAW;AAAA,EACX,cAAc;AAAA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
7
|
+
"type": "module",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./server": {
|
|
18
|
+
"types": "./dist/server.d.ts",
|
|
19
|
+
"import": "./dist/server.js",
|
|
20
|
+
"default": "./dist/server.js"
|
|
21
|
+
},
|
|
22
|
+
"./client": {
|
|
23
|
+
"types": "./dist/client.d.ts",
|
|
24
|
+
"import": "./dist/client.js",
|
|
25
|
+
"default": "./dist/client.js"
|
|
26
|
+
},
|
|
27
|
+
"./plugin": {
|
|
28
|
+
"types": "./dist/plugin/jiwambe-plugin.d.ts",
|
|
29
|
+
"import": "./dist/plugin/jiwambe-plugin.js",
|
|
30
|
+
"default": "./dist/plugin/jiwambe-plugin.js"
|
|
31
|
+
},
|
|
32
|
+
"./tailwind.preset": {
|
|
33
|
+
"types": "./tailwind.preset.d.ts",
|
|
34
|
+
"import": "./tailwind.preset.ts",
|
|
35
|
+
"default": "./tailwind.preset.ts"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"dist",
|
|
40
|
+
"tailwind.preset.ts",
|
|
41
|
+
"tailwind.preset.d.ts",
|
|
42
|
+
"README.md",
|
|
43
|
+
"LICENSE",
|
|
44
|
+
"package.json"
|
|
45
|
+
],
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=18.0.0"
|
|
48
|
+
},
|
|
49
|
+
"author": "Jiwambe",
|
|
50
|
+
"license": "MIT",
|
|
51
|
+
"repository": {
|
|
52
|
+
"type": "git",
|
|
53
|
+
"url": "git+https://github.com/jiwambe/jiwambe-components.git"
|
|
54
|
+
},
|
|
55
|
+
"keywords": [
|
|
56
|
+
"react",
|
|
57
|
+
"components",
|
|
58
|
+
"tailwind",
|
|
59
|
+
"jiwambe"
|
|
60
|
+
],
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"react": "^19.0.0",
|
|
63
|
+
"react-dom": "^19.0.0"
|
|
64
|
+
},
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"next": "^15.0.0 || ^16.0.0",
|
|
67
|
+
"tailwindcss": "^3.4.0"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@changesets/cli": "^2.30.0",
|
|
71
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
72
|
+
"@testing-library/react": "^16.0.0",
|
|
73
|
+
"@types/react": "^19.0.0",
|
|
74
|
+
"@types/react-dom": "^19.0.0",
|
|
75
|
+
"@vitejs/plugin-react": "^4.0.0",
|
|
76
|
+
"autoprefixer": "^10.4.0",
|
|
77
|
+
"happy-dom": "^15.0.0",
|
|
78
|
+
"jest-axe": "^9.0.0",
|
|
79
|
+
"postcss": "^8.4.0",
|
|
80
|
+
"react": "^19.0.0",
|
|
81
|
+
"react-dom": "^19.0.0",
|
|
82
|
+
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
83
|
+
"typescript": "^5.0.0",
|
|
84
|
+
"vite": "^5.0.0",
|
|
85
|
+
"vite-plugin-dts": "^4.0.0",
|
|
86
|
+
"vitest": "^2.0.0"
|
|
87
|
+
},
|
|
88
|
+
"scripts": {
|
|
89
|
+
"build": "tsc --noEmit && vite build",
|
|
90
|
+
"typecheck": "tsc --noEmit",
|
|
91
|
+
"test": "vitest run",
|
|
92
|
+
"test:watch": "vitest",
|
|
93
|
+
"version-packages": "changeset version",
|
|
94
|
+
"release": "pnpm run build && changeset publish"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Config } from 'tailwindcss';
|
|
2
|
+
import jiwambePlugin from '@jiwambe/components/plugin';
|
|
3
|
+
|
|
4
|
+
const preset: Config = {
|
|
5
|
+
content: [],
|
|
6
|
+
plugins: [jiwambePlugin],
|
|
7
|
+
safelist: [
|
|
8
|
+
{
|
|
9
|
+
pattern: /^(p|px|py|pt|pb|pl|pr|m|mx|my|mt|mb|ml|mr|gap|gap-x|gap-y)-(space|fluid)-/,
|
|
10
|
+
},
|
|
11
|
+
'm-auto',
|
|
12
|
+
'mx-auto',
|
|
13
|
+
'my-auto',
|
|
14
|
+
'mt-auto',
|
|
15
|
+
'mb-auto',
|
|
16
|
+
'ml-auto',
|
|
17
|
+
'mr-auto',
|
|
18
|
+
],
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default preset;
|