@umriss-ui/core 0.1.0 → 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/CHANGELOG.md +38 -0
- package/README.md +49 -18
- package/dist/core.css +1 -1
- package/dist/core.js +1737 -1768
- package/dist/index.d.ts +5 -17
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1551,8 +1551,6 @@ declare type TextTracking = "normal" | "tight" | "display" | "caps";
|
|
|
1551
1551
|
|
|
1552
1552
|
export declare type TextWeight = "regular" | "medium" | "semibold";
|
|
1553
1553
|
|
|
1554
|
-
export declare type Theme = "light" | "dark" | "system";
|
|
1555
|
-
|
|
1556
1554
|
export declare interface ToastConfig {
|
|
1557
1555
|
/** Display duration in ms, where the individual toast names none. */
|
|
1558
1556
|
duration?: number;
|
|
@@ -1753,7 +1751,6 @@ export declare interface TreeViewProps<K, S extends Key = string> extends Omit<H
|
|
|
1753
1751
|
export declare function typeaheadTarget<K, S extends Key = string>(flattening: readonly FlatteningEntry<K, S>[], prefix: string, active: S | null): S | null;
|
|
1754
1752
|
|
|
1755
1753
|
export declare interface UmrissConfig {
|
|
1756
|
-
theme?: Theme;
|
|
1757
1754
|
density: Density;
|
|
1758
1755
|
portalTarget: PortalTarget;
|
|
1759
1756
|
toast: ToastConfig;
|
|
@@ -1766,23 +1763,14 @@ export declare interface UmrissConfig {
|
|
|
1766
1763
|
* component; whoever needs only wording can still use `LanguageProvider` on its
|
|
1767
1764
|
* own.
|
|
1768
1765
|
*/
|
|
1769
|
-
export declare function UmrissProvider({
|
|
1766
|
+
export declare function UmrissProvider({ density, portalTarget, toast, language, children, }: UmrissProviderProps): JSX.Element;
|
|
1770
1767
|
|
|
1771
1768
|
export declare interface UmrissProviderProps {
|
|
1772
1769
|
/**
|
|
1773
|
-
*
|
|
1774
|
-
*
|
|
1775
|
-
*
|
|
1776
|
-
*
|
|
1777
|
-
* is left undisturbed.
|
|
1778
|
-
*/
|
|
1779
|
-
theme?: Theme;
|
|
1780
|
-
/**
|
|
1781
|
-
* Sets `data-density` at the root and is the default for the `density` of
|
|
1782
|
-
* every component that reads it with `useDensityFor` - in @umriss-ui/table
|
|
1783
|
-
* `Table` and `AlarmList` ("comfortable" means "regular"). Without a value
|
|
1784
|
-
* the provider touches neither the attribute nor a component: one that is
|
|
1785
|
-
* compact of its own accord stays compact.
|
|
1770
|
+
* The default for the `density` of every component that reads it with
|
|
1771
|
+
* `useDensityFor` - in @umriss-ui/table `Table` and `AlarmList`
|
|
1772
|
+
* ("comfortable" means "regular"). Without a value the provider touches no
|
|
1773
|
+
* component: one that is compact of its own accord stays compact.
|
|
1786
1774
|
*/
|
|
1787
1775
|
density?: Density;
|
|
1788
1776
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umriss-ui/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "A React component library for data-dense applications - precise, quiet, professional.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Roman Händler",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"pretypecheck": "pnpm run props && pnpm run readme",
|
|
74
74
|
"typecheck": "tsc --noEmit",
|
|
75
75
|
"preview:demo": "vite preview --config vite.demo.config.ts --port 4173 --strictPort",
|
|
76
|
-
"test:unit": "vitest run"
|
|
76
|
+
"test:unit": "vitest run",
|
|
77
|
+
"check:dist": "node --disable-warning=ExperimentalWarning --experimental-strip-types ../../scripts/check-dist.ts core.js core.css"
|
|
77
78
|
}
|
|
78
79
|
}
|