@infonomic/uikit 7.0.0 → 7.1.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/README.md +19 -1
- package/dist/components/accordion/accordion.contract.d.ts +2 -2
- package/dist/components/accordion/accordion.contract.d.ts.map +1 -1
- package/dist/components/accordion/accordion.contract.js +2 -2
- package/dist/components/accordion/accordion.module.css +16 -5
- package/dist/components/accordion/accordion_module.css +4 -6
- package/dist/components/button/button.astro +14 -8
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +2 -1
- package/dist/components/dropdown/dropdown.contract.d.ts +2 -2
- package/dist/components/dropdown/dropdown.contract.d.ts.map +1 -1
- package/dist/components/dropdown/dropdown.contract.js +3 -2
- package/dist/components/dropdown/dropdown.module.css +11 -0
- package/dist/components/dropdown/dropdown_module.css +5 -0
- package/dist/components/inputs/checkbox.contract.d.ts +4 -4
- package/dist/components/inputs/checkbox.contract.d.ts.map +1 -1
- package/dist/components/inputs/checkbox.contract.js +5 -3
- package/dist/components/inputs/checkbox.d.ts +6 -0
- package/dist/components/inputs/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox.module.css +29 -3
- package/dist/components/inputs/checkbox_module.css +25 -3
- package/dist/components/tabs/tabs.contract.d.ts +2 -2
- package/dist/components/tabs/tabs.contract.d.ts.map +1 -1
- package/dist/components/tabs/tabs.contract.js +3 -2
- package/dist/components/tabs/tabs.module.css +9 -0
- package/dist/components/tabs/tabs_module.css +1 -1
- package/dist/css/accordion.css +4 -6
- package/dist/css/checkbox.css +25 -3
- package/dist/css/dropdown.css +5 -0
- package/dist/css/tabs.css +1 -1
- package/dist/lib/ripple.d.ts +55 -6
- package/dist/lib/ripple.d.ts.map +1 -1
- package/dist/lib/ripple.js +61 -10
- package/dist/styles/components-vanilla.css +1 -1
- package/dist/styles/styles.css +1 -1
- package/dist/widgets/drawer/drawer.contract.d.ts +1 -1
- package/dist/widgets/drawer/drawer.contract.d.ts.map +1 -1
- package/dist/widgets/drawer/drawer.contract.js +1 -1
- package/package.json +6 -1
- package/src/components/accordion/accordion.contract.ts +2 -2
- package/src/components/accordion/accordion.module.css +16 -5
- package/src/components/button/button.astro +14 -8
- package/src/components/button/button.tsx +4 -0
- package/src/components/dropdown/dropdown.contract.ts +2 -2
- package/src/components/dropdown/dropdown.module.css +11 -0
- package/src/components/dropdown/dropdown.stories.tsx +6 -0
- package/src/components/inputs/checkbox.contract.ts +6 -4
- package/src/components/inputs/checkbox.module.css +29 -3
- package/src/components/inputs/checkbox.stories.tsx +43 -0
- package/src/components/inputs/checkbox.tsx +6 -0
- package/src/components/tabs/tabs.contract.ts +3 -2
- package/src/components/tabs/tabs.module.css +9 -0
- package/src/lib/ripple.ts +136 -13
- package/src/styles/theme/defaults.css +3 -2
- package/src/styles/utils/utility-classes.css +3 -2
- package/src/widgets/drawer/drawer.contract.ts +1 -1
package/README.md
CHANGED
|
@@ -377,6 +377,24 @@ loaderRingVariables({ size: 24, color: 'red' })
|
|
|
377
377
|
|
|
378
378
|
Where a part is another component, use both helpers, as the kit's own components do. A select's trigger and a copy button are Buttons, so they take `buttonClasses(...)`; an input's label is a Label, so it takes `labelClasses.root({ size })` and `inputClasses.label`. A text area is the exception: `textAreaClasses` already includes the Input classes it needs, and importing `classes/text-area` loads the Input stylesheet as well as its own.
|
|
379
379
|
|
|
380
|
+
### Button ripple
|
|
381
|
+
|
|
382
|
+
The React Button draws a Material-style ripple on press. The same effect is available to any framework from `@infonomic/uikit/ripple`, which uses the DOM only:
|
|
383
|
+
|
|
384
|
+
```ts
|
|
385
|
+
import { attachRipple } from '@infonomic/uikit/ripple'
|
|
386
|
+
|
|
387
|
+
const detach = attachRipple(document)
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
One call in your entry module covers every element with the `infonomic-button` class on the page, including buttons drawn later, so an adapter needs no wiring per button. The ripple is light on filled and gradient buttons and dark on the others. The Astro Button makes this call itself.
|
|
391
|
+
|
|
392
|
+
No ripple is drawn for a disabled button, for a press with any mouse button but the main one, or for a user who has asked for reduced motion. To turn it off, put `data-ripple="false"` on a button or on an element around it. A React Button carries `data-ripple="self"` and draws its own ripple, so a page that mixes React buttons with others still gets one ripple per press. The same rules apply to it: they live in one function, `canRipple`, which the entry also exports.
|
|
393
|
+
|
|
394
|
+
A press draws one ripple however many roots it passes through, so attaching to a container inside an attached document is harmless, and each attachment is removed on its own. The root may be another window's document, such as an iframe's.
|
|
395
|
+
|
|
396
|
+
A button that ripples gets `overflow: hidden` inline, and `position: relative` if it was not already positioned, so the circle is clipped to it. For a ripple on something that is not a kit button, the entry also exports the `Ripple` class: `new Ripple().create(event, 'dark', element)`.
|
|
397
|
+
|
|
380
398
|
### Covered components
|
|
381
399
|
|
|
382
400
|
These are the names to use in `@infonomic/uikit/classes/<name>` and `@infonomic/uikit/css/<name>.css`. A name is a stylesheet module, so one can hold several React components: `control-buttons` is `PlayButton`, `StopButton` and `DirectionalButton`, and `ellipses`, `ring` and `spinner` are the three loaders.
|
|
@@ -391,7 +409,7 @@ Importing an entry loads that component's stylesheet through your bundler. The s
|
|
|
391
409
|
|
|
392
410
|
**What is stable.** The plain class names, the keys of each class map, each component's parts, and the state attributes and adapter-supplied variables its styles read are covered by semver. Generated class names are not: they can change in any release, and each map ships with the stylesheet it matches, so never hard-code them.
|
|
393
411
|
|
|
394
|
-
**What gets installed and what gets bundled.** `@infonomic/uikit` is one package, so installing it also installs its React-side dependencies: React, Base UI, `react-day-picker`, `motion` and others. That affects install size only. A bundler includes a module only when something in your app imports it, and the `classes/*` and `css/*` entries import nothing but their own class map and stylesheet. An app that imports only those entries (and `css-layers`, which runs at build time) ships no React or Base UI code. Importing anything from `@infonomic/uikit/react` brings the React components and their dependencies into the bundle. The entries import CSS, so on the server they need a bundler such as Vite's SSR; plain Node cannot load them.
|
|
412
|
+
**What gets installed and what gets bundled.** `@infonomic/uikit` is one package, so installing it also installs its React-side dependencies: React, Base UI, `react-day-picker`, `motion` and others. That affects install size only. A bundler includes a module only when something in your app imports it, and the `classes/*` and `css/*` entries import nothing but their own class map and stylesheet. An app that imports only those entries (and `css-layers`, which runs at build time) ships no React or Base UI code. Importing anything from `@infonomic/uikit/react` brings the React components and their dependencies into the bundle. The entries import CSS, so on the server they need a bundler such as Vite's SSR; plain Node cannot load them. A test runner needs the same: Vitest fails with `Unknown file extension ".css"` until the package is inlined, with `test.server.deps.inline: ['@infonomic/uikit']`.
|
|
395
413
|
|
|
396
414
|
The first adapter is an experiment with [Effect UI](https://github.com/Effect-TS/ui), in [`fixtures/effect-ui`](https://github.com/infonomic/uikit/tree/main/fixtures/effect-ui): `@effect/ui-kit`'s Button and Dialog styled by the entries above, installed from a packed tarball, with no React in its production bundle. Effect UI is pre-release, so that fixture sits outside the workspace and is not part of any release.
|
|
397
415
|
|
|
@@ -22,10 +22,10 @@ export declare const accordionContract: {
|
|
|
22
22
|
readonly moduleClass: 'trigger';
|
|
23
23
|
};
|
|
24
24
|
readonly content: {
|
|
25
|
-
readonly description: 'The collapsible panel. Base UI `Accordion.Panel`.
|
|
25
|
+
readonly description: 'The collapsible panel. Base UI `Accordion.Panel`. Its height moves between the published panel height and zero with a transition, so the behaviour layer must publish the height, set `data-starting-style` for the first frame of an open and `data-ending-style` while it closes.';
|
|
26
26
|
readonly plainClass: 'infonomic-accordion-content';
|
|
27
27
|
readonly moduleClass: 'content';
|
|
28
|
-
readonly states: readonly ["data-
|
|
28
|
+
readonly states: readonly ["data-starting-style", "data-ending-style"];
|
|
29
29
|
readonly suppliedVariables: readonly ["--accordion-panel-height"];
|
|
30
30
|
};
|
|
31
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.contract.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion.contract.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;mBACtB,WAAW;qBACT,2CAA2C;;iBAEjD,IAAI;qBACF,WAAW,EAAE,gFAAgF;qBAC7F,UAAU,EAAE,0BAA0B;;iBAExC,IAAI;qBACF,WAAW,EAAE,oDAAoD;qBACjE,UAAU,EAAE,0BAA0B;qBACtC,WAAW,EAAE,MAAM;;iBAErB,MAAM;qBACJ,WAAW,EAAE,iEAAiE;qBAC9E,UAAU,EAAE,4BAA4B;qBACxC,WAAW,EAAE,QAAQ;;iBAEvB,OAAO;qBACL,WAAW,EAAE,yEAAyE;qBACtF,UAAU,EAAE,6BAA6B;qBACzC,WAAW,EAAE,SAAS;;iBAExB,OAAO;qBACL,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"accordion.contract.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion.contract.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;mBACtB,WAAW;qBACT,2CAA2C;;iBAEjD,IAAI;qBACF,WAAW,EAAE,gFAAgF;qBAC7F,UAAU,EAAE,0BAA0B;;iBAExC,IAAI;qBACF,WAAW,EAAE,oDAAoD;qBACjE,UAAU,EAAE,0BAA0B;qBACtC,WAAW,EAAE,MAAM;;iBAErB,MAAM;qBACJ,WAAW,EAAE,iEAAiE;qBAC9E,UAAU,EAAE,4BAA4B;qBACxC,WAAW,EAAE,QAAQ;;iBAEvB,OAAO;qBACL,WAAW,EAAE,yEAAyE;qBACtF,UAAU,EAAE,6BAA6B;qBACzC,WAAW,EAAE,SAAS;;iBAExB,OAAO;qBACL,WAAW,EACT,qRAAqR;qBACvR,UAAU,EAAE,6BAA6B;qBACzC,WAAW,EAAE,SAAS;qBACtB,MAAM;qBACN,iBAAiB;;;CAGe,CAAA"}
|
|
@@ -22,11 +22,11 @@ const accordionContract = {
|
|
|
22
22
|
moduleClass: 'trigger'
|
|
23
23
|
},
|
|
24
24
|
content: {
|
|
25
|
-
description: 'The collapsible panel. Base UI `Accordion.Panel`.
|
|
25
|
+
description: 'The collapsible panel. Base UI `Accordion.Panel`. Its height moves between the published panel height and zero with a transition, so the behaviour layer must publish the height, set `data-starting-style` for the first frame of an open and `data-ending-style` while it closes.',
|
|
26
26
|
plainClass: 'infonomic-accordion-content',
|
|
27
27
|
moduleClass: 'content',
|
|
28
28
|
states: [
|
|
29
|
-
'data-
|
|
29
|
+
'data-starting-style',
|
|
30
30
|
'data-ending-style'
|
|
31
31
|
],
|
|
32
32
|
suppliedVariables: [
|
|
@@ -31,19 +31,30 @@
|
|
|
31
31
|
width: 100%;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/*
|
|
35
|
+
* The panel animates between its measured height and zero with a transition.
|
|
36
|
+
* A transition holds its end value, so the closed height stays at zero for as
|
|
37
|
+
* long as the behaviour layer keeps the panel mounted, and an open or close
|
|
38
|
+
* that is interrupted reverses from where it is.
|
|
39
|
+
*/
|
|
34
40
|
.content,
|
|
35
41
|
:global(.infonomic-accordion-content) {
|
|
36
42
|
overflow: hidden;
|
|
43
|
+
height: var(--accordion-panel-height);
|
|
44
|
+
transition: height 300ms cubic-bezier(0.87, 0, 0.13, 1);
|
|
37
45
|
|
|
38
|
-
&[data-
|
|
39
|
-
animation: accordionSlideDown 300ms cubic-bezier(0.87, 0, 0.13, 1);
|
|
40
|
-
}
|
|
41
|
-
|
|
46
|
+
&[data-starting-style],
|
|
42
47
|
&[data-ending-style] {
|
|
43
|
-
|
|
48
|
+
height: 0;
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
51
|
|
|
52
|
+
/*
|
|
53
|
+
* No rule here uses these keyframes: the panel has animated with the
|
|
54
|
+
* transition above since the release after 7.0.0. They stay because 7.0.0 published their
|
|
55
|
+
* names as keys of the class map (accordionSlideDown, accordionSlideUp), and
|
|
56
|
+
* the keys of a class map are covered by semver.
|
|
57
|
+
*/
|
|
47
58
|
@keyframes accordionSlideDown {
|
|
48
59
|
from {
|
|
49
60
|
height: 0;
|
|
@@ -19,15 +19,13 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
:is(.content-KoW8ID, .infonomic-accordion-content) {
|
|
22
|
+
height: var(--accordion-panel-height);
|
|
23
|
+
transition: height .3s cubic-bezier(.87, 0, .13, 1);
|
|
22
24
|
overflow: hidden;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
:is(.content-KoW8ID, .infonomic-accordion-content)[data-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
:is(.content-KoW8ID, .infonomic-accordion-content)[data-ending-style] {
|
|
30
|
-
animation: .3s cubic-bezier(.87, 0, .13, 1) accordionSlideUp-mpDLB0;
|
|
27
|
+
:is(.content-KoW8ID, .infonomic-accordion-content)[data-starting-style], :is(.content-KoW8ID, .infonomic-accordion-content)[data-ending-style] {
|
|
28
|
+
height: 0;
|
|
31
29
|
}
|
|
32
30
|
|
|
33
31
|
@keyframes accordionSlideDown-gllXUs {
|
|
@@ -14,7 +14,6 @@ interface Props extends HTMLAttributes<'button'>, Omit<HTMLAttributes<'a'>, 'typ
|
|
|
14
14
|
href?: string
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
// import Ripple from 'material-ripple-effects' // Commented out as this is React specific
|
|
18
17
|
import { buttonClasses } from './button.classes.js'
|
|
19
18
|
|
|
20
19
|
const {
|
|
@@ -33,13 +32,9 @@ const {
|
|
|
33
32
|
|
|
34
33
|
const componentType = href ? 'a' : as
|
|
35
34
|
|
|
36
|
-
//
|
|
37
|
-
//
|
|
38
|
-
|
|
39
|
-
// onMouseDown = (e: MouseEvent) => {
|
|
40
|
-
// rippleEffect.create(e, variant === 'filled' || variant === 'gradient' ? 'light' : 'dark')
|
|
41
|
-
// }
|
|
42
|
-
// }
|
|
35
|
+
// The script at the foot of this file gives every kit button on the page a
|
|
36
|
+
// ripple. This attribute turns it off for one button.
|
|
37
|
+
const rippleOff = ripple === false ? 'false' : undefined
|
|
43
38
|
---
|
|
44
39
|
|
|
45
40
|
{
|
|
@@ -54,6 +49,7 @@ const componentType = href ? 'a' : as
|
|
|
54
49
|
buttonClasses({ variant, size, intent, fullWidth }),
|
|
55
50
|
className
|
|
56
51
|
]}
|
|
52
|
+
data-ripple={rippleOff}
|
|
57
53
|
{...rest}
|
|
58
54
|
>
|
|
59
55
|
<slot />
|
|
@@ -70,9 +66,19 @@ const componentType = href ? 'a' : as
|
|
|
70
66
|
buttonClasses({ variant, size, intent, fullWidth }),
|
|
71
67
|
className
|
|
72
68
|
]}
|
|
69
|
+
data-ripple={rippleOff}
|
|
73
70
|
{...rest}
|
|
74
71
|
>
|
|
75
72
|
<slot />
|
|
76
73
|
</a>
|
|
77
74
|
)
|
|
78
75
|
}
|
|
76
|
+
|
|
77
|
+
<script>
|
|
78
|
+
import { attachRipple } from '../../lib/ripple.js'
|
|
79
|
+
|
|
80
|
+
// One listener on the document covers every kit button on the page,
|
|
81
|
+
// including buttons added after load. Astro runs this script once per page
|
|
82
|
+
// however many buttons there are.
|
|
83
|
+
attachRipple(document)
|
|
84
|
+
</script>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAKrD,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAE/D,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;CACnC,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;AAErC,eAAO,MAAM,MAAM,kGAYhB,WAAW,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAKrD,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAE/D,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;CACnC,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;AAErC,eAAO,MAAM,MAAM,kGAYhB,WAAW,2EA0Bb,CAAA"}
|
|
@@ -13,7 +13,8 @@ const Button = ({ variant = 'filled', size = 'md', type = 'button', intent = 'pr
|
|
|
13
13
|
intent,
|
|
14
14
|
fullWidth
|
|
15
15
|
}), className),
|
|
16
|
-
children
|
|
16
|
+
children,
|
|
17
|
+
'data-ripple': true === ripple ? 'self' : 'false'
|
|
17
18
|
};
|
|
18
19
|
if (true === ripple) {
|
|
19
20
|
const rippleEffect = new Ripple();
|
|
@@ -19,10 +19,10 @@ export declare const dropdownContract: {
|
|
|
19
19
|
readonly states: readonly ["data-side"];
|
|
20
20
|
};
|
|
21
21
|
readonly item: {
|
|
22
|
-
readonly description: 'One choice in the menu. Base UI `Menu.Item`. Highlighted while it has `data-highlighted`.';
|
|
22
|
+
readonly description: 'One choice in the menu. Base UI `Menu.Item`. Highlighted while it has `data-highlighted`, and dimmed while it has `data-disabled`.';
|
|
23
23
|
readonly plainClass: 'infonomic-dropdown-item';
|
|
24
24
|
readonly moduleClass: 'dropdown-item';
|
|
25
|
-
readonly states: readonly ["data-highlighted"];
|
|
25
|
+
readonly states: readonly ["data-highlighted", "data-disabled"];
|
|
26
26
|
};
|
|
27
27
|
readonly separator: {
|
|
28
28
|
readonly description: 'A line between groups of items. Base UI `Menu.Separator`.';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.contract.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown.contract.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;mBACrB,UAAU;qBACR,yCAAyC;;iBAE/C,OAAO;qBACL,WAAW,EAAE,4EAA4E;qBACzF,UAAU,EAAE,4BAA4B;;iBAE1C,OAAO;qBACL,WAAW,EACT,4FAA4F;qBAC9F,UAAU,EAAE,4BAA4B;qBACxC,WAAW,EAAE,kBAAkB;qBAC/B,MAAM;;iBAER,UAAU;qBACR,WAAW,EAAE,kEAAkE;qBAC/E,UAAU,EAAE,+BAA+B;qBAC3C,WAAW,EAAE,qBAAqB;qBAClC,MAAM;;iBAER,IAAI;qBACF,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"dropdown.contract.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown.contract.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;mBACrB,UAAU;qBACR,yCAAyC;;iBAE/C,OAAO;qBACL,WAAW,EAAE,4EAA4E;qBACzF,UAAU,EAAE,4BAA4B;;iBAE1C,OAAO;qBACL,WAAW,EACT,4FAA4F;qBAC9F,UAAU,EAAE,4BAA4B;qBACxC,WAAW,EAAE,kBAAkB;qBAC/B,MAAM;;iBAER,UAAU;qBACR,WAAW,EAAE,kEAAkE;qBAC/E,UAAU,EAAE,+BAA+B;qBAC3C,WAAW,EAAE,qBAAqB;qBAClC,MAAM;;iBAER,IAAI;qBACF,WAAW,EACT,oIAAoI;qBACtI,UAAU,EAAE,yBAAyB;qBACrC,WAAW,EAAE,eAAe;qBAC5B,MAAM;;iBAER,SAAS;qBACP,WAAW,EAAE,2DAA2D;qBACxE,UAAU,EAAE,8BAA8B;qBAC1C,WAAW,EAAE,oBAAoB;;iBAEnC,KAAK;qBACH,WAAW,EAAE,0DAA0D;qBACvE,UAAU,EAAE,0BAA0B;;iBAExC,KAAK;qBACH,WAAW,EAAE,+DAA+D;qBAC5E,UAAU,EAAE,0BAA0B;;iBAExC,UAAU;qBACR,WAAW,EAAE,4EAA4E;qBACzF,UAAU,EAAE,+BAA+B;;;CAGX,CAAA"}
|
|
@@ -23,11 +23,12 @@ const dropdownContract = {
|
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
25
|
item: {
|
|
26
|
-
description: 'One choice in the menu. Base UI `Menu.Item`. Highlighted while it has `data-highlighted`.',
|
|
26
|
+
description: 'One choice in the menu. Base UI `Menu.Item`. Highlighted while it has `data-highlighted`, and dimmed while it has `data-disabled`.',
|
|
27
27
|
plainClass: 'infonomic-dropdown-item',
|
|
28
28
|
moduleClass: 'dropdown-item',
|
|
29
29
|
states: [
|
|
30
|
-
'data-highlighted'
|
|
30
|
+
'data-highlighted',
|
|
31
|
+
'data-disabled'
|
|
31
32
|
]
|
|
32
33
|
},
|
|
33
34
|
separator: {
|
|
@@ -71,6 +71,17 @@
|
|
|
71
71
|
color: var(--surface-item-text-hover);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
/*
|
|
75
|
+
* A disabled item is dimmed and takes no pointer. A keyboard highlight still
|
|
76
|
+
* shows on it, dimmed, so focus is never invisible where the behaviour layer
|
|
77
|
+
* lets focus reach a disabled item.
|
|
78
|
+
*/
|
|
79
|
+
.dropdown-item[data-disabled],
|
|
80
|
+
:global(.infonomic-dropdown-item)[data-disabled] {
|
|
81
|
+
opacity: 0.5;
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
74
85
|
.dropdown-separator,
|
|
75
86
|
:global(.infonomic-dropdown-separator) {
|
|
76
87
|
width: 90%;
|
|
@@ -51,6 +51,11 @@
|
|
|
51
51
|
color: var(--surface-item-text-hover);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
:is(.dropdown-item-FFroRa[data-disabled], .infonomic-dropdown-item[data-disabled]) {
|
|
55
|
+
opacity: .5;
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
54
59
|
:is(.dropdown-separator-scM_7b, .infonomic-dropdown-separator) {
|
|
55
60
|
background-color: var(--surface-panel-border);
|
|
56
61
|
width: 90%;
|
|
@@ -41,13 +41,13 @@ export declare const checkboxContract: {
|
|
|
41
41
|
readonly danger: 'infonomic-checkbox-danger';
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
-
readonly states: readonly ["data-checked", "data-disabled"];
|
|
44
|
+
readonly states: readonly ["data-checked", "data-indeterminate", "data-disabled"];
|
|
45
45
|
};
|
|
46
46
|
readonly indicator: {
|
|
47
|
-
readonly description: 'Holds the check mark and shows it while checked. Base UI `Checkbox.Indicator`.';
|
|
47
|
+
readonly description: 'Holds the check mark and shows it while checked. Base UI `Checkbox.Indicator`. While it has `data-indeterminate` it shows a dash instead, drawn by the stylesheet, so it must stay mounted in that state.';
|
|
48
48
|
readonly plainClass: 'infonomic-checkbox-indicator';
|
|
49
49
|
readonly moduleClass: 'indicator';
|
|
50
|
-
readonly states: readonly ["data-checked", "data-unchecked"];
|
|
50
|
+
readonly states: readonly ["data-checked", "data-unchecked", "data-indeterminate"];
|
|
51
51
|
};
|
|
52
52
|
readonly icon: {
|
|
53
53
|
readonly description: 'The check mark.';
|
|
@@ -55,7 +55,7 @@ export declare const checkboxContract: {
|
|
|
55
55
|
readonly moduleClass: 'icon';
|
|
56
56
|
};
|
|
57
57
|
readonly label: {
|
|
58
|
-
readonly description: 'The text label beside the box. Its size follows the size class on the box.';
|
|
58
|
+
readonly description: 'The text label beside the box. Its size follows the size class on the box, so it must be a later sibling of the box, not a `<label>` wrapped around it.';
|
|
59
59
|
readonly plainClass: 'infonomic-checkbox-label';
|
|
60
60
|
readonly themingVariables: readonly ["--label-color"];
|
|
61
61
|
readonly moduleClass: 'label';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.contract.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/checkbox.contract.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;mBACrB,UAAU;qBACR,uCAAuC;;;qBAG3C,WAAW,EAAE,6DAA6D;qBAC1E,UAAU,EAAE,8BAA8B;qBAC1C,WAAW,EAAE,WAAW;;;qBAGxB,WAAW,EAAE,iEAAiE;qBAC9E,UAAU,EAAE,8BAA8B;qBAC1C,WAAW,EAAE,WAAW;qBACxB,SAAS;yBACP,MAAM;6BACJ,OAAO,EAAE,4BAA4B;;;;;qBAKzC,WAAW,EACT,6KAA6K;qBAC/K,UAAU,EAAE,oBAAoB;qBAChC,WAAW,EAAE,UAAU;qBACvB,SAAS;yBACP,IAAI;6BACF,EAAE,EAAE,uBAAuB;6BAC3B,EAAE,EAAE,uBAAuB;6BAC3B,EAAE,EAAE,uBAAuB;;yBAE7B,OAAO;6BACL,QAAQ,EAAE,6BAA6B;6BACvC,MAAM,EAAE,2BAA2B;;yBAErC,MAAM;6BACJ,OAAO,EAAE,4BAA4B;6BACrC,SAAS,EAAE,8BAA8B;6BACzC,QAAQ,EAAE,6BAA6B;6BACvC,OAAO,EAAE,4BAA4B;6BACrC,IAAI,EAAE,yBAAyB;6BAC/B,OAAO,EAAE,4BAA4B;6BACrC,MAAM,EAAE,2BAA2B;;;qBAGvC,MAAM;;;qBAGN,WAAW,
|
|
1
|
+
{"version":3,"file":"checkbox.contract.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/checkbox.contract.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;mBACrB,UAAU;qBACR,uCAAuC;;;qBAG3C,WAAW,EAAE,6DAA6D;qBAC1E,UAAU,EAAE,8BAA8B;qBAC1C,WAAW,EAAE,WAAW;;;qBAGxB,WAAW,EAAE,iEAAiE;qBAC9E,UAAU,EAAE,8BAA8B;qBAC1C,WAAW,EAAE,WAAW;qBACxB,SAAS;yBACP,MAAM;6BACJ,OAAO,EAAE,4BAA4B;;;;;qBAKzC,WAAW,EACT,6KAA6K;qBAC/K,UAAU,EAAE,oBAAoB;qBAChC,WAAW,EAAE,UAAU;qBACvB,SAAS;yBACP,IAAI;6BACF,EAAE,EAAE,uBAAuB;6BAC3B,EAAE,EAAE,uBAAuB;6BAC3B,EAAE,EAAE,uBAAuB;;yBAE7B,OAAO;6BACL,QAAQ,EAAE,6BAA6B;6BACvC,MAAM,EAAE,2BAA2B;;yBAErC,MAAM;6BACJ,OAAO,EAAE,4BAA4B;6BACrC,SAAS,EAAE,8BAA8B;6BACzC,QAAQ,EAAE,6BAA6B;6BACvC,OAAO,EAAE,4BAA4B;6BACrC,IAAI,EAAE,yBAAyB;6BAC/B,OAAO,EAAE,4BAA4B;6BACrC,MAAM,EAAE,2BAA2B;;;qBAGvC,MAAM;;;qBAGN,WAAW,EACT,2MAA2M;qBAC7M,UAAU,EAAE,8BAA8B;qBAC1C,WAAW,EAAE,WAAW;qBACxB,MAAM;;;qBAGN,WAAW,EAAE,iBAAiB;qBAC9B,UAAU,EAAE,yBAAyB;qBACrC,WAAW,EAAE,MAAM;;;qBAGnB,WAAW,EACT,yJAAyJ;qBAC3J,UAAU,EAAE,0BAA0B;qBACtC,gBAAgB;qBAChB,WAAW,EAAE,OAAO;;;kCAIlB,+NAA+N;;oCACzM,WAAW;+BAAQ,MAAM;;iCACrC,+BAA+B;;;CAGX,CAAA"}
|
|
@@ -43,16 +43,18 @@ const checkboxContract = {
|
|
|
43
43
|
},
|
|
44
44
|
states: [
|
|
45
45
|
'data-checked',
|
|
46
|
+
'data-indeterminate',
|
|
46
47
|
'data-disabled'
|
|
47
48
|
]
|
|
48
49
|
},
|
|
49
50
|
indicator: {
|
|
50
|
-
description: 'Holds the check mark and shows it while checked. Base UI `Checkbox.Indicator`.',
|
|
51
|
+
description: 'Holds the check mark and shows it while checked. Base UI `Checkbox.Indicator`. While it has `data-indeterminate` it shows a dash instead, drawn by the stylesheet, so it must stay mounted in that state.',
|
|
51
52
|
plainClass: 'infonomic-checkbox-indicator',
|
|
52
53
|
moduleClass: 'indicator',
|
|
53
54
|
states: [
|
|
54
55
|
'data-checked',
|
|
55
|
-
'data-unchecked'
|
|
56
|
+
'data-unchecked',
|
|
57
|
+
'data-indeterminate'
|
|
56
58
|
]
|
|
57
59
|
},
|
|
58
60
|
icon: {
|
|
@@ -61,7 +63,7 @@ const checkboxContract = {
|
|
|
61
63
|
moduleClass: 'icon'
|
|
62
64
|
},
|
|
63
65
|
label: {
|
|
64
|
-
description: 'The text label beside the box. Its size follows the size class on the box.',
|
|
66
|
+
description: 'The text label beside the box. Its size follows the size class on the box, so it must be a later sibling of the box, not a `<label>` wrapped around it.',
|
|
65
67
|
plainClass: 'infonomic-checkbox-label',
|
|
66
68
|
themingVariables: [
|
|
67
69
|
'--label-color'
|
|
@@ -10,6 +10,12 @@ export interface CheckboxProps {
|
|
|
10
10
|
intent?: Intent;
|
|
11
11
|
reverse?: boolean;
|
|
12
12
|
checked?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Shows the mixed state: a dash in a filled box, and `aria-checked="mixed"`.
|
|
15
|
+
* For a parent checkbox when some, not all, of the boxes it stands for are
|
|
16
|
+
* ticked.
|
|
17
|
+
*/
|
|
18
|
+
indeterminate?: boolean;
|
|
13
19
|
disabled?: boolean;
|
|
14
20
|
className?: string;
|
|
15
21
|
checkBoxClasses?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAEnC,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAOvE,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAEjE,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC,iBAAiB,CAAC,CAAA;IACxF,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAA;IACjC,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,QAAQ,gLAkBlB,aAAa,GAAG;IACjB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;CACzC,KAAG,KAAK,CAAC,GAAG,CAAC,OAwCb,CAAA"}
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAEnC,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAOvE,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAEjE,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC,iBAAiB,CAAC,CAAA;IACxF,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAA;IACjC,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,QAAQ,gLAkBlB,aAAa,GAAG;IACjB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;CACzC,KAAG,KAAK,CAAC,GAAG,CAAC,OAwCb,CAAA"}
|
|
@@ -43,7 +43,9 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.checkbox[data-checked],
|
|
46
|
-
|
|
46
|
+
.checkbox[data-indeterminate],
|
|
47
|
+
:global(.infonomic-checkbox)[data-checked],
|
|
48
|
+
:global(.infonomic-checkbox)[data-indeterminate] {
|
|
47
49
|
outline-color: var(--ring-color);
|
|
48
50
|
}
|
|
49
51
|
|
|
@@ -97,6 +99,26 @@
|
|
|
97
99
|
transform: scale(0.8);
|
|
98
100
|
}
|
|
99
101
|
|
|
102
|
+
/*
|
|
103
|
+
* Indeterminate: some, not all, of the boxes a parent stands for are ticked.
|
|
104
|
+
* The box is filled as when checked and shows a dash, drawn here so that no
|
|
105
|
+
* second icon is needed in the markup. The check mark stays hidden.
|
|
106
|
+
*/
|
|
107
|
+
.indicator[data-indeterminate],
|
|
108
|
+
:global(.infonomic-checkbox-indicator)[data-indeterminate] {
|
|
109
|
+
position: relative;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.indicator[data-indeterminate]::before,
|
|
113
|
+
:global(.infonomic-checkbox-indicator)[data-indeterminate]::before {
|
|
114
|
+
content: "";
|
|
115
|
+
position: absolute;
|
|
116
|
+
width: 55%;
|
|
117
|
+
height: 2px;
|
|
118
|
+
border-radius: 1px;
|
|
119
|
+
background-color: var(--checkbox-icon-color);
|
|
120
|
+
}
|
|
121
|
+
|
|
100
122
|
.label,
|
|
101
123
|
:global(.infonomic-checkbox-label) {
|
|
102
124
|
margin-left: 0.25rem;
|
|
@@ -170,7 +192,9 @@
|
|
|
170
192
|
}
|
|
171
193
|
|
|
172
194
|
.outlined[data-checked],
|
|
173
|
-
|
|
195
|
+
.outlined[data-indeterminate],
|
|
196
|
+
:global(.infonomic-checkbox-outlined)[data-checked],
|
|
197
|
+
:global(.infonomic-checkbox-outlined)[data-indeterminate] {
|
|
174
198
|
--ring-color: var(--checkbox-variant-outline-ring-color);
|
|
175
199
|
background-color: var(--checkbox-variant-outlined);
|
|
176
200
|
}
|
|
@@ -182,7 +206,9 @@
|
|
|
182
206
|
}
|
|
183
207
|
|
|
184
208
|
.filled[data-checked],
|
|
185
|
-
|
|
209
|
+
.filled[data-indeterminate],
|
|
210
|
+
:global(.infonomic-checkbox-filled)[data-checked],
|
|
211
|
+
:global(.infonomic-checkbox-filled)[data-indeterminate] {
|
|
186
212
|
--ring-color: var(--checkbox-variant-outline-ring-color);
|
|
187
213
|
}
|
|
188
214
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
display: inline-flex;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
:is(.checkbox-p0iZ1T[data-checked], .infonomic-checkbox[data-checked]) {
|
|
31
|
+
:is(.checkbox-p0iZ1T[data-checked], .checkbox-p0iZ1T[data-indeterminate], .infonomic-checkbox[data-checked], .infonomic-checkbox[data-indeterminate]) {
|
|
32
32
|
outline-color: var(--ring-color);
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -66,6 +66,28 @@
|
|
|
66
66
|
transform: scale(.8);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
:is(.indicator-VoSV4Y[data-indeterminate], .infonomic-checkbox-indicator[data-indeterminate]) {
|
|
70
|
+
position: relative;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.indicator-VoSV4Y[data-indeterminate]:before {
|
|
74
|
+
content: "";
|
|
75
|
+
background-color: var(--checkbox-icon-color);
|
|
76
|
+
border-radius: 1px;
|
|
77
|
+
width: 55%;
|
|
78
|
+
height: 2px;
|
|
79
|
+
position: absolute;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.infonomic-checkbox-indicator[data-indeterminate]:before {
|
|
83
|
+
content: "";
|
|
84
|
+
background-color: var(--checkbox-icon-color);
|
|
85
|
+
border-radius: 1px;
|
|
86
|
+
width: 55%;
|
|
87
|
+
height: 2px;
|
|
88
|
+
position: absolute;
|
|
89
|
+
}
|
|
90
|
+
|
|
69
91
|
:is(.label-XrpVKR, .infonomic-checkbox-label) {
|
|
70
92
|
cursor: pointer;
|
|
71
93
|
color: var(--label-color, var(--text));
|
|
@@ -114,7 +136,7 @@
|
|
|
114
136
|
--checkbox-icon-color: white;
|
|
115
137
|
}
|
|
116
138
|
|
|
117
|
-
:is(.outlined-JZPcbA[data-checked], .infonomic-checkbox-outlined[data-checked]) {
|
|
139
|
+
:is(.outlined-JZPcbA[data-checked], .outlined-JZPcbA[data-indeterminate], .infonomic-checkbox-outlined[data-checked], .infonomic-checkbox-outlined[data-indeterminate]) {
|
|
118
140
|
--ring-color: var(--checkbox-variant-outline-ring-color);
|
|
119
141
|
background-color: var(--checkbox-variant-outlined);
|
|
120
142
|
}
|
|
@@ -124,7 +146,7 @@
|
|
|
124
146
|
--checkbox-icon-color: white;
|
|
125
147
|
}
|
|
126
148
|
|
|
127
|
-
:is(.filled-kMP3C2[data-checked], .infonomic-checkbox-filled[data-checked]) {
|
|
149
|
+
:is(.filled-kMP3C2[data-checked], .filled-kMP3C2[data-indeterminate], .infonomic-checkbox-filled[data-checked], .infonomic-checkbox-filled[data-indeterminate]) {
|
|
128
150
|
--ring-color: var(--checkbox-variant-outline-ring-color);
|
|
129
151
|
}
|
|
130
152
|
|
|
@@ -18,10 +18,10 @@ export declare const tabsContract: {
|
|
|
18
18
|
readonly moduleClass: 'tabs-trigger';
|
|
19
19
|
};
|
|
20
20
|
readonly content: {
|
|
21
|
-
readonly description: 'One panel. Base UI `Tabs.Panel`. Hidden while it has `data-hidden
|
|
21
|
+
readonly description: 'One panel. Base UI `Tabs.Panel`. Hidden while it has `data-hidden`, and while it has `data-ending-style`: there is no exit animation, so an outgoing panel that is still mounted does not show beside the incoming one.';
|
|
22
22
|
readonly plainClass: 'infonomic-tabs-content';
|
|
23
23
|
readonly moduleClass: 'tabs-content';
|
|
24
|
-
readonly states: readonly ["data-hidden"];
|
|
24
|
+
readonly states: readonly ["data-hidden", "data-ending-style"];
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.contract.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs.contract.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;mBACjB,MAAM;qBACJ,iCAAiC;;iBAEvC,IAAI;qBACF,WAAW,EAAE,iDAAiD;qBAC9D,UAAU,EAAE,qBAAqB;qBACjC,WAAW,EAAE,WAAW;;iBAE1B,IAAI;qBACF,WAAW,EAAE,uCAAuC;qBACpD,UAAU,EAAE,qBAAqB;qBACjC,WAAW,EAAE,WAAW;;iBAE1B,OAAO;qBACL,WAAW,EAAE,8BAA8B;qBAC3C,UAAU,EAAE,wBAAwB;qBACpC,WAAW,EAAE,cAAc;;iBAE7B,OAAO;qBACL,WAAW,
|
|
1
|
+
{"version":3,"file":"tabs.contract.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs.contract.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;mBACjB,MAAM;qBACJ,iCAAiC;;iBAEvC,IAAI;qBACF,WAAW,EAAE,iDAAiD;qBAC9D,UAAU,EAAE,qBAAqB;qBACjC,WAAW,EAAE,WAAW;;iBAE1B,IAAI;qBACF,WAAW,EAAE,uCAAuC;qBACpD,UAAU,EAAE,qBAAqB;qBACjC,WAAW,EAAE,WAAW;;iBAE1B,OAAO;qBACL,WAAW,EAAE,8BAA8B;qBAC3C,UAAU,EAAE,wBAAwB;qBACpC,WAAW,EAAE,cAAc;;iBAE7B,OAAO;qBACL,WAAW,EACT,yNAAyN;qBAC3N,UAAU,EAAE,wBAAwB;qBACpC,WAAW,EAAE,cAAc;qBAC3B,MAAM;;;CAG0B,CAAA"}
|
|
@@ -18,11 +18,12 @@ const tabsContract = {
|
|
|
18
18
|
moduleClass: 'tabs-trigger'
|
|
19
19
|
},
|
|
20
20
|
content: {
|
|
21
|
-
description: 'One panel. Base UI `Tabs.Panel`. Hidden while it has `data-hidden
|
|
21
|
+
description: 'One panel. Base UI `Tabs.Panel`. Hidden while it has `data-hidden`, and while it has `data-ending-style`: there is no exit animation, so an outgoing panel that is still mounted does not show beside the incoming one.',
|
|
22
22
|
plainClass: 'infonomic-tabs-content',
|
|
23
23
|
moduleClass: 'tabs-content',
|
|
24
24
|
states: [
|
|
25
|
-
'data-hidden'
|
|
25
|
+
'data-hidden',
|
|
26
|
+
'data-ending-style'
|
|
26
27
|
]
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -58,6 +58,15 @@
|
|
|
58
58
|
display: none;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
/*
|
|
62
|
+
* A behaviour layer may keep the outgoing panel mounted, with this
|
|
63
|
+
* attribute, until its exit finishes. The kit has no tab exit, so the panel
|
|
64
|
+
* is hidden at once and never shows beside the incoming one.
|
|
65
|
+
*/
|
|
66
|
+
&[data-ending-style] {
|
|
67
|
+
display: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
61
70
|
&:focus {
|
|
62
71
|
outline: none;
|
|
63
72
|
}
|
package/dist/css/accordion.css
CHANGED
|
@@ -19,15 +19,13 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
:is(.content-KoW8ID, .infonomic-accordion-content) {
|
|
22
|
+
height: var(--accordion-panel-height);
|
|
23
|
+
transition: height .3s cubic-bezier(.87, 0, .13, 1);
|
|
22
24
|
overflow: hidden;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
:is(.content-KoW8ID, .infonomic-accordion-content)[data-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
:is(.content-KoW8ID, .infonomic-accordion-content)[data-ending-style] {
|
|
30
|
-
animation: .3s cubic-bezier(.87, 0, .13, 1) accordionSlideUp-mpDLB0;
|
|
27
|
+
:is(.content-KoW8ID, .infonomic-accordion-content)[data-starting-style], :is(.content-KoW8ID, .infonomic-accordion-content)[data-ending-style] {
|
|
28
|
+
height: 0;
|
|
31
29
|
}
|
|
32
30
|
|
|
33
31
|
@keyframes accordionSlideDown-gllXUs {
|
package/dist/css/checkbox.css
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
display: inline-flex;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
:is(.checkbox-p0iZ1T[data-checked], .infonomic-checkbox[data-checked]) {
|
|
31
|
+
:is(.checkbox-p0iZ1T[data-checked], .checkbox-p0iZ1T[data-indeterminate], .infonomic-checkbox[data-checked], .infonomic-checkbox[data-indeterminate]) {
|
|
32
32
|
outline-color: var(--ring-color);
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -66,6 +66,28 @@
|
|
|
66
66
|
transform: scale(.8);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
:is(.indicator-VoSV4Y[data-indeterminate], .infonomic-checkbox-indicator[data-indeterminate]) {
|
|
70
|
+
position: relative;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.indicator-VoSV4Y[data-indeterminate]:before {
|
|
74
|
+
content: "";
|
|
75
|
+
background-color: var(--checkbox-icon-color);
|
|
76
|
+
border-radius: 1px;
|
|
77
|
+
width: 55%;
|
|
78
|
+
height: 2px;
|
|
79
|
+
position: absolute;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.infonomic-checkbox-indicator[data-indeterminate]:before {
|
|
83
|
+
content: "";
|
|
84
|
+
background-color: var(--checkbox-icon-color);
|
|
85
|
+
border-radius: 1px;
|
|
86
|
+
width: 55%;
|
|
87
|
+
height: 2px;
|
|
88
|
+
position: absolute;
|
|
89
|
+
}
|
|
90
|
+
|
|
69
91
|
:is(.label-XrpVKR, .infonomic-checkbox-label) {
|
|
70
92
|
cursor: pointer;
|
|
71
93
|
color: var(--label-color, var(--text));
|
|
@@ -114,7 +136,7 @@
|
|
|
114
136
|
--checkbox-icon-color: white;
|
|
115
137
|
}
|
|
116
138
|
|
|
117
|
-
:is(.outlined-JZPcbA[data-checked], .infonomic-checkbox-outlined[data-checked]) {
|
|
139
|
+
:is(.outlined-JZPcbA[data-checked], .outlined-JZPcbA[data-indeterminate], .infonomic-checkbox-outlined[data-checked], .infonomic-checkbox-outlined[data-indeterminate]) {
|
|
118
140
|
--ring-color: var(--checkbox-variant-outline-ring-color);
|
|
119
141
|
background-color: var(--checkbox-variant-outlined);
|
|
120
142
|
}
|
|
@@ -124,7 +146,7 @@
|
|
|
124
146
|
--checkbox-icon-color: white;
|
|
125
147
|
}
|
|
126
148
|
|
|
127
|
-
:is(.filled-kMP3C2[data-checked], .infonomic-checkbox-filled[data-checked]) {
|
|
149
|
+
:is(.filled-kMP3C2[data-checked], .filled-kMP3C2[data-indeterminate], .infonomic-checkbox-filled[data-checked], .infonomic-checkbox-filled[data-indeterminate]) {
|
|
128
150
|
--ring-color: var(--checkbox-variant-outline-ring-color);
|
|
129
151
|
}
|
|
130
152
|
|
package/dist/css/dropdown.css
CHANGED
|
@@ -51,6 +51,11 @@
|
|
|
51
51
|
color: var(--surface-item-text-hover);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
:is(.dropdown-item-FFroRa[data-disabled], .infonomic-dropdown-item[data-disabled]) {
|
|
55
|
+
opacity: .5;
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
54
59
|
:is(.dropdown-separator-scM_7b, .infonomic-dropdown-separator) {
|
|
55
60
|
background-color: var(--surface-panel-border);
|
|
56
61
|
width: 90%;
|
package/dist/css/tabs.css
CHANGED