@snap-rail/ui 0.2.0 → 0.4.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/lib/charts.js +7 -1
- package/lib/components/index.js +2182 -0
- package/lib/contract.js +20 -12
- package/lib/fallback.js +47 -8
- package/lib/index.js +766 -558
- package/lib/runtime.js +113 -138
- package/lib/settings-pages/index.js +1359 -0
- package/lib/settings.js +97 -58
- package/lib/types/components/alert.js +7 -7
- package/lib/types/components/button.js +2 -2
- package/lib/types/components/combobox.d.ts +45 -0
- package/lib/types/components/combobox.js +108 -0
- package/lib/types/components/controls.js +16 -16
- package/lib/types/components/dialog.js +1 -1
- package/lib/types/components/index.d.ts +1 -0
- package/lib/types/components/index.js +1 -0
- package/lib/types/components/input.js +3 -3
- package/lib/types/components/overlay.d.ts +26 -20
- package/lib/types/components/overlay.js +99 -67
- package/lib/types/components/slider.js +1 -1
- package/lib/types/components/surface.js +12 -12
- package/lib/types/contract.d.ts +6 -5
- package/lib/types/contract.js +6 -5
- package/lib/types/utils.d.ts +7 -1
- package/lib/types/utils.js +7 -1
- package/package.json +9 -9
- package/src/styles/base.css +107 -17
- package/src/styles/default.css +59 -19
package/lib/charts.js
CHANGED
|
@@ -11,7 +11,13 @@ import { createContext, useContext, useSyncExternalStore } from "react";
|
|
|
11
11
|
function cn(...values) {
|
|
12
12
|
return values.filter((value) => typeof value === "string" && value.length > 0).join(" ");
|
|
13
13
|
}
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* The anatomy attributes every semantic component renders. The identity is
|
|
16
|
+
* component-owned: components spread these AFTER caller props so a composite
|
|
17
|
+
* can never mask a host part (a masked `button.root` loses every skin rule
|
|
18
|
+
* and falls back to the UA default look). Composites tag their own wrappers
|
|
19
|
+
* instead of pushing `part()` into a child component's props.
|
|
20
|
+
*/
|
|
15
21
|
function part(component, name) {
|
|
16
22
|
return {
|
|
17
23
|
"data-snap-component": component,
|