@daldalso/tailwind-base
Advanced tools
Comparing version 0.9.2-2 to 0.9.2-3
@@ -108,2 +108,3 @@ import setupContextUtils from "tailwindcss/lib/lib/setupContextUtils.js"; | ||
'import { loadTailwindBase } from "@daldalso/tailwind-base";', | ||
'// See: https://github.com/JJoriping/tailwind-base/pull/4', | ||
'import React from "react";', | ||
@@ -110,0 +111,0 @@ 'import ClientTailwindBaseInitializer from "./client";', |
@@ -11,2 +11,3 @@ import test from "node:test"; | ||
assert.strictEqual(c("border-b-4 border-b"), 'border-b'); | ||
assert.strictEqual(c("m-1", ["p-1", ["p-2", ["p-3"], "m-2"]]), 'p-3 m-2'); | ||
}); |
@@ -1,2 +0,2 @@ | ||
const pattern = /(?<!\)\s*){(?=[^{]*?:[\S\s]+?["'][\S\s]+?})\s*([^}]+?)\s*}/g; | ||
const pattern = /(?<![)=]\s*){(?=[^{]*?:[\S\s]+?["'][\S\s]+?})\s*([^}]+?)\s*}/g; | ||
const g1Pattern = /(?:^|\s*,\s*)(?:(["'])(.+?)\1|(\w+))\s*:\s*((["'])[^}]+?\5)(?=\s*,|$)/g; | ||
@@ -3,0 +3,0 @@ const valuePattern = /(["'])(.+?)\1/g; |
{ | ||
"type": "module", | ||
"name": "@daldalso/tailwind-base", | ||
"version": "0.9.2-2", | ||
"version": "0.9.2-3", | ||
"description": "Let you exploit Tailwind in React more powerful", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -17,3 +17,3 @@ /* eslint-disable @typescript-eslint/no-empty-interface, @daldalso/variable-name, @daldalso/no-unsafe-unquoted-key */ | ||
type CValueBase = string|undefined|null|0|0n|false; | ||
export type CValue = ArrayOr<CValueBase|Readonly<Record<string, ArrayOr<CValueBase>>>>; | ||
export type CValue = ArrayOr<CValueBase|Readonly<Record<string, ArrayOr<CValueBase>>>>|CValue[]; | ||
@@ -20,0 +20,0 @@ type Augmented<T, O> = { |
23227
450