@khipu/design-system 0.3.5-alpha.33 → 0.3.5-alpha.34
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/dist/beercss/khipu-beercss.css +55 -9
- package/dist/beercss/khipu-beercss.min.css +1 -1
- package/dist/beercss/khipu-beercss.scoped.css +55 -9
- package/dist/beercss/khipu-beercss.scoped.min.css +1 -1
- package/dist/beercss/metadata.json +5 -5
- package/dist/index.d.mts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khipu/design-system/beercss",
|
|
3
|
-
"version": "0.3.5-alpha.
|
|
3
|
+
"version": "0.3.5-alpha.34",
|
|
4
4
|
"description": "Khipu BeerCSS bundle with Material Design 3 and Khipu customizations",
|
|
5
|
-
"buildDate": "2026-10-
|
|
5
|
+
"buildDate": "2026-10-09T13:21:43.907Z",
|
|
6
6
|
"includes": {
|
|
7
7
|
"beercss": "4.0.1",
|
|
8
8
|
"khipu-tokens": "latest",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
},
|
|
20
20
|
"scopeClass": ".kds-theme-root",
|
|
21
21
|
"cdn": {
|
|
22
|
-
"css": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.
|
|
23
|
-
"cssScoped": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.
|
|
24
|
-
"js": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.
|
|
22
|
+
"css": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.34/dist/beercss/khipu-beercss.min.css",
|
|
23
|
+
"cssScoped": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.34/dist/beercss/khipu-beercss.scoped.min.css",
|
|
24
|
+
"js": "https://cdn.jsdelivr.net/npm/@khipu/design-system@0.3.5-alpha.34/dist/beercss/khipu-beercss.min.js"
|
|
25
25
|
}
|
|
26
26
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -29,7 +29,7 @@ interface KdsThemeProviderProps {
|
|
|
29
29
|
*/
|
|
30
30
|
declare function KdsThemeProvider({ primaryColor, mode, children }: KdsThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
31
31
|
|
|
32
|
-
declare const KDS_VERSION = "0.3.5-alpha.
|
|
32
|
+
declare const KDS_VERSION = "0.3.5-alpha.34";
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* Color tokens organized by theme mode
|
|
@@ -3982,7 +3982,6 @@ interface ExpandToggleProps {
|
|
|
3982
3982
|
interface ExpandPanelProps {
|
|
3983
3983
|
id: string;
|
|
3984
3984
|
className: string;
|
|
3985
|
-
hidden: boolean;
|
|
3986
3985
|
/**
|
|
3987
3986
|
* Ref the hook uses to drive the panel's `max-height` off its own `scrollHeight`, so the
|
|
3988
3987
|
* expand animation fits any content length instead of clipping against a fixed CSS cap.
|
|
@@ -4003,7 +4002,7 @@ interface UseExpandToggleResult {
|
|
|
4003
4002
|
getToggleProps: () => ExpandToggleProps;
|
|
4004
4003
|
/**
|
|
4005
4004
|
* Prop-getter for the `.kds-expand-panel` div — wires `id`, the `open` class and the
|
|
4006
|
-
*
|
|
4005
|
+
* content-sizing ref. Pass the base class (defaults to `kds-expand-panel`).
|
|
4007
4006
|
*/
|
|
4008
4007
|
getPanelProps: (baseClassName?: string) => ExpandPanelProps;
|
|
4009
4008
|
}
|
|
@@ -4015,8 +4014,10 @@ interface UseExpandToggleResult {
|
|
|
4015
4014
|
* It links button and panel via a stable `aria-controls`/`id` pair (`useId`), reflects the
|
|
4016
4015
|
* open state through `aria-expanded` (which drives the caret rotation in CSS) and toggles the
|
|
4017
4016
|
* `open` class on the panel, sizing its `max-height` to the content's `scrollHeight` so the
|
|
4018
|
-
* animation never clips. The
|
|
4019
|
-
*
|
|
4017
|
+
* animation never clips. The closed panel is NOT marked `hidden`: the global
|
|
4018
|
+
* `[hidden] { display: none !important }` would kill the transition. Instead the DS CSS hides
|
|
4019
|
+
* the collapsed panel with a delayed `visibility: hidden`, which also keeps its content out of
|
|
4020
|
+
* the accessibility tree and the tab order.
|
|
4020
4021
|
*
|
|
4021
4022
|
* Supports controlled (`open` + `onOpenChange`) and uncontrolled (`defaultOpen`) usage. Combine
|
|
4022
4023
|
* with `useStickyInvoiceCollapse({ onCollapseStart: () => setOpen(false) })` to close on scroll.
|
package/dist/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ interface KdsThemeProviderProps {
|
|
|
29
29
|
*/
|
|
30
30
|
declare function KdsThemeProvider({ primaryColor, mode, children }: KdsThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
31
31
|
|
|
32
|
-
declare const KDS_VERSION = "0.3.5-alpha.
|
|
32
|
+
declare const KDS_VERSION = "0.3.5-alpha.34";
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* Color tokens organized by theme mode
|
|
@@ -3982,7 +3982,6 @@ interface ExpandToggleProps {
|
|
|
3982
3982
|
interface ExpandPanelProps {
|
|
3983
3983
|
id: string;
|
|
3984
3984
|
className: string;
|
|
3985
|
-
hidden: boolean;
|
|
3986
3985
|
/**
|
|
3987
3986
|
* Ref the hook uses to drive the panel's `max-height` off its own `scrollHeight`, so the
|
|
3988
3987
|
* expand animation fits any content length instead of clipping against a fixed CSS cap.
|
|
@@ -4003,7 +4002,7 @@ interface UseExpandToggleResult {
|
|
|
4003
4002
|
getToggleProps: () => ExpandToggleProps;
|
|
4004
4003
|
/**
|
|
4005
4004
|
* Prop-getter for the `.kds-expand-panel` div — wires `id`, the `open` class and the
|
|
4006
|
-
*
|
|
4005
|
+
* content-sizing ref. Pass the base class (defaults to `kds-expand-panel`).
|
|
4007
4006
|
*/
|
|
4008
4007
|
getPanelProps: (baseClassName?: string) => ExpandPanelProps;
|
|
4009
4008
|
}
|
|
@@ -4015,8 +4014,10 @@ interface UseExpandToggleResult {
|
|
|
4015
4014
|
* It links button and panel via a stable `aria-controls`/`id` pair (`useId`), reflects the
|
|
4016
4015
|
* open state through `aria-expanded` (which drives the caret rotation in CSS) and toggles the
|
|
4017
4016
|
* `open` class on the panel, sizing its `max-height` to the content's `scrollHeight` so the
|
|
4018
|
-
* animation never clips. The
|
|
4019
|
-
*
|
|
4017
|
+
* animation never clips. The closed panel is NOT marked `hidden`: the global
|
|
4018
|
+
* `[hidden] { display: none !important }` would kill the transition. Instead the DS CSS hides
|
|
4019
|
+
* the collapsed panel with a delayed `visibility: hidden`, which also keeps its content out of
|
|
4020
|
+
* the accessibility tree and the tab order.
|
|
4020
4021
|
*
|
|
4021
4022
|
* Supports controlled (`open` + `onOpenChange`) and uncontrolled (`defaultOpen`) usage. Combine
|
|
4022
4023
|
* with `useStickyInvoiceCollapse({ onCollapseStart: () => setOpen(false) })` to close on scroll.
|
package/dist/index.js
CHANGED
|
@@ -201,7 +201,7 @@ function formatTime(iso) {
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
// src/version.ts
|
|
204
|
-
var KDS_VERSION = "0.3.5-alpha.
|
|
204
|
+
var KDS_VERSION = "0.3.5-alpha.34";
|
|
205
205
|
|
|
206
206
|
// src/theme/KdsThemeProvider.tsx
|
|
207
207
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -2285,7 +2285,7 @@ var KdsExpandPanel = (0, import_react28.forwardRef)(
|
|
|
2285
2285
|
]
|
|
2286
2286
|
}
|
|
2287
2287
|
),
|
|
2288
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: (0, import_clsx.clsx)("kds-expand-panel", expanded && "open"),
|
|
2288
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: (0, import_clsx.clsx)("kds-expand-panel", expanded && "open"), children })
|
|
2289
2289
|
] });
|
|
2290
2290
|
}
|
|
2291
2291
|
);
|
|
@@ -3143,7 +3143,6 @@ function useExpandToggle(options = {}) {
|
|
|
3143
3143
|
(baseClassName = "kds-expand-panel") => ({
|
|
3144
3144
|
id: panelId,
|
|
3145
3145
|
className: open ? `${baseClassName} open` : baseClassName,
|
|
3146
|
-
hidden: !open,
|
|
3147
3146
|
ref: setPanelRef
|
|
3148
3147
|
}),
|
|
3149
3148
|
[open, panelId, setPanelRef]
|
package/dist/index.mjs
CHANGED
|
@@ -70,7 +70,7 @@ function formatTime(iso) {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
// src/version.ts
|
|
73
|
-
var KDS_VERSION = "0.3.5-alpha.
|
|
73
|
+
var KDS_VERSION = "0.3.5-alpha.34";
|
|
74
74
|
|
|
75
75
|
// src/theme/KdsThemeProvider.tsx
|
|
76
76
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -2154,7 +2154,7 @@ var KdsExpandPanel = forwardRef25(
|
|
|
2154
2154
|
]
|
|
2155
2155
|
}
|
|
2156
2156
|
),
|
|
2157
|
-
/* @__PURE__ */ jsx27("div", { className: clsx("kds-expand-panel", expanded && "open"),
|
|
2157
|
+
/* @__PURE__ */ jsx27("div", { className: clsx("kds-expand-panel", expanded && "open"), children })
|
|
2158
2158
|
] });
|
|
2159
2159
|
}
|
|
2160
2160
|
);
|
|
@@ -3012,7 +3012,6 @@ function useExpandToggle(options = {}) {
|
|
|
3012
3012
|
(baseClassName = "kds-expand-panel") => ({
|
|
3013
3013
|
id: panelId,
|
|
3014
3014
|
className: open ? `${baseClassName} open` : baseClassName,
|
|
3015
|
-
hidden: !open,
|
|
3016
3015
|
ref: setPanelRef
|
|
3017
3016
|
}),
|
|
3018
3017
|
[open, panelId, setPanelRef]
|
package/package.json
CHANGED