fluid-primitives 0.17.1 → 0.17.2
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 +45 -3
- package/dist/accordion.d.ts +2 -2
- package/dist/clipboard.d.ts +2 -2
- package/dist/collapsible.d.ts +2 -2
- package/dist/dialog.d.ts +2 -2
- package/dist/number-input.d.ts +2 -2
- package/dist/popover.d.ts +2 -2
- package/dist/radio-group.d.ts +2 -2
- package/dist/select.d.ts +3 -2
- package/dist/tabs.d.ts +2 -2
- package/dist/tooltip.d.ts +2 -2
- package/package.json +21 -21
package/README.md
CHANGED
|
@@ -2,12 +2,54 @@
|
|
|
2
2
|
|
|
3
3
|
# Fluid Primitives
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Unstyled, flexible and accessible UI Primitives that provide a foundation for building your own component library in Fluid.
|
|
6
|
+
|
|
7
|
+
Fluid Primitives brings modern component patterns to TYPO3. Build accessible, composable UI components with the same developer experience you'd expect from React libraries like Radix or Base UI - but for Fluid templates.
|
|
8
|
+
|
|
9
|
+
Full documentation can be found at [fluid-primitives.com](https://fluid-primitives.com).
|
|
10
|
+
|
|
11
|
+
## What You Get
|
|
12
|
+
|
|
13
|
+
**Accessible by default.** Every interactive component handles keyboard navigation, focus management, and ARIA attributes automatically via [Zag.js](https://zagjs.com/) state machines.
|
|
14
|
+
|
|
15
|
+
**Composable API.** No more prop drilling. Build complex UIs by composing small, focused parts that work together.
|
|
16
|
+
|
|
17
|
+
**Unstyled.** Zero design opinions. Use Tailwind, vanilla CSS, or any styling approach. You control every pixel.
|
|
18
|
+
|
|
19
|
+
**Server-rendered.** Components render on the server with PHP/Fluid, then hydrate on the client. No layout shift, great for SEO.
|
|
20
|
+
|
|
21
|
+
## Quick Example
|
|
22
|
+
|
|
23
|
+
A tooltip with full accessibility support in just a few lines:
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<ui:tooltip.root>
|
|
27
|
+
<ui:tooltip.trigger>Hover me</ui:tooltip.trigger>
|
|
28
|
+
<ui:tooltip.content>Tooltip content here</ui:tooltip.content>
|
|
29
|
+
</ui:tooltip.root>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
That's it. Keyboard support, focus handling, proper ARIA attributes - all handled.
|
|
33
|
+
|
|
34
|
+
## Why This Exists
|
|
35
|
+
|
|
36
|
+
TYPO3 Fluid lacked an elegant solution for building robust, interactive components. The typical approach leads to bloated templates with complex conditional logic, poor accessibility, and custom JavaScript that's hard to maintain.
|
|
37
|
+
|
|
38
|
+
Fluid Primitives solves this by bringing proven patterns from the modern frontend ecosystem to TYPO3, while respecting its server-first architecture.
|
|
39
|
+
|
|
40
|
+
## Acknowledgments
|
|
41
|
+
|
|
42
|
+
Built on the shoulders of giants:
|
|
43
|
+
|
|
44
|
+
- [Zag.js](https://zagjs.com/) - The state machine foundation
|
|
45
|
+
- [Radix UI](https://www.radix-ui.com/primitives) - API design inspiration
|
|
46
|
+
- [Base UI](https://base-ui.com/) - Component behavior patterns
|
|
47
|
+
- [Ark UI](https://ark-ui.com/) - Zag.js integration patterns
|
|
6
48
|
|
|
7
49
|
## Documentation
|
|
8
50
|
|
|
9
|
-
The documentation can be found at [fluid-primitives.com](https://fluid-primitives.com).
|
|
51
|
+
The full documentation can be found at [fluid-primitives.com](https://fluid-primitives.com).
|
|
10
52
|
|
|
11
53
|
## Development
|
|
12
54
|
|
|
13
|
-
See [github.com/jramke/fluid-primitives.com](https://github.com/jramke/fluid-primitives.com) for the development setup.
|
|
55
|
+
See [github.com/jramke/fluid-primitives.com](https://github.com/jramke/fluid-primitives.com) monorepo for the development setup.
|
package/dist/accordion.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component$1 as Component, Machine$1 as Machine } from "./index-BpcuNDMI.js";
|
|
2
2
|
import * as accordion from "@zag-js/accordion";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _zag_js_types2 from "@zag-js/types";
|
|
4
4
|
|
|
5
5
|
//#region Resources/Private/Primitives/Accordion/Accordion.d.ts
|
|
6
6
|
declare class Accordion extends Component<accordion.Props, accordion.Api> {
|
|
7
7
|
static name: string;
|
|
8
8
|
initMachine(props: accordion.Props): Machine<any>;
|
|
9
|
-
initApi(): accordion.Api<
|
|
9
|
+
initApi(): accordion.Api<_zag_js_types2.PropTypes<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}>>;
|
|
12
12
|
render(): void;
|
package/dist/clipboard.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component$1 as Component, Machine$1 as Machine } from "./index-BpcuNDMI.js";
|
|
2
2
|
import * as clipboard from "@zag-js/clipboard";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _zag_js_types7 from "@zag-js/types";
|
|
4
4
|
|
|
5
5
|
//#region Resources/Private/Primitives/Clipboard/Clipboard.d.ts
|
|
6
6
|
declare class Clipboard extends Component<clipboard.Props, clipboard.Api> {
|
|
7
7
|
static name: string;
|
|
8
8
|
initMachine(props: clipboard.Props): Machine<any>;
|
|
9
|
-
initApi(): clipboard.Api<
|
|
9
|
+
initApi(): clipboard.Api<_zag_js_types7.PropTypes<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}>>;
|
|
12
12
|
render(): void;
|
package/dist/collapsible.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component$1 as Component, Machine$1 as Machine } from "./index-BpcuNDMI.js";
|
|
2
2
|
import * as collapsible from "@zag-js/collapsible";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _zag_js_types5 from "@zag-js/types";
|
|
4
4
|
|
|
5
5
|
//#region Resources/Private/Primitives/Collapsible/Collapsible.d.ts
|
|
6
6
|
declare class Collapsible extends Component<collapsible.Props, collapsible.Api> {
|
|
7
7
|
static name: string;
|
|
8
8
|
initMachine(props: collapsible.Props): Machine<any>;
|
|
9
|
-
initApi(): collapsible.Api<
|
|
9
|
+
initApi(): collapsible.Api<_zag_js_types5.PropTypes<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}>>;
|
|
12
12
|
render(): void;
|
package/dist/dialog.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component$1 as Component, Machine$1 as Machine } from "./index-BpcuNDMI.js";
|
|
2
2
|
import * as dialog from "@zag-js/dialog";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _zag_js_types1 from "@zag-js/types";
|
|
4
4
|
|
|
5
5
|
//#region Resources/Private/Primitives/Dialog/Dialog.d.ts
|
|
6
6
|
declare class Dialog extends Component<dialog.Props, dialog.Api> {
|
|
7
7
|
static name: string;
|
|
8
8
|
initMachine(props: dialog.Props): Machine<any>;
|
|
9
|
-
initApi(): dialog.Api<
|
|
9
|
+
initApi(): dialog.Api<_zag_js_types1.PropTypes<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}>>;
|
|
12
12
|
render(): void;
|
package/dist/number-input.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FieldAwareComponent$1 as FieldAwareComponent, FieldMachine, Machine$1 as Machine } from "./index-BpcuNDMI.js";
|
|
2
2
|
import * as numberInput from "@zag-js/number-input";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _zag_js_types4 from "@zag-js/types";
|
|
4
4
|
|
|
5
5
|
//#region Resources/Private/Primitives/NumberInput/NumberInput.d.ts
|
|
6
6
|
declare class NumberInput extends FieldAwareComponent<numberInput.Props, numberInput.Api> {
|
|
7
7
|
static name: string;
|
|
8
8
|
propsWithField(props: numberInput.Props, fieldMachine: FieldMachine): numberInput.Props;
|
|
9
9
|
initMachine(props: numberInput.Props): Machine<any>;
|
|
10
|
-
initApi(): numberInput.Api<
|
|
10
|
+
initApi(): numberInput.Api<_zag_js_types4.PropTypes<{
|
|
11
11
|
[x: string]: any;
|
|
12
12
|
}>>;
|
|
13
13
|
render(): void;
|
package/dist/popover.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component$1 as Component, Machine$1 as Machine } from "./index-BpcuNDMI.js";
|
|
2
2
|
import * as popover from "@zag-js/popover";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _zag_js_types3 from "@zag-js/types";
|
|
4
4
|
|
|
5
5
|
//#region Resources/Private/Primitives/Popover/Popover.d.ts
|
|
6
6
|
declare class Popover extends Component<popover.Props, popover.Api> {
|
|
7
7
|
static name: string;
|
|
8
8
|
initMachine(props: popover.Props): Machine<any>;
|
|
9
|
-
initApi(): popover.Api<
|
|
9
|
+
initApi(): popover.Api<_zag_js_types3.PropTypes<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}>>;
|
|
12
12
|
render(): void;
|
package/dist/radio-group.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FieldAwareComponent$1 as FieldAwareComponent, FieldMachine, Machine$1 as Machine } from "./index-BpcuNDMI.js";
|
|
2
2
|
import * as radioGroup from "@zag-js/radio-group";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _zag_js_types6 from "@zag-js/types";
|
|
4
4
|
|
|
5
5
|
//#region Resources/Private/Primitives/RadioGroup/RadioGroup.d.ts
|
|
6
6
|
declare class RadioGroup extends FieldAwareComponent<radioGroup.Props, radioGroup.Api> {
|
|
7
7
|
static name: string;
|
|
8
8
|
propsWithField(props: radioGroup.Props, fieldMachine: FieldMachine): radioGroup.Props;
|
|
9
9
|
initMachine(props: radioGroup.Props): Machine<any>;
|
|
10
|
-
initApi(): radioGroup.Api<
|
|
10
|
+
initApi(): radioGroup.Api<_zag_js_types6.PropTypes<{
|
|
11
11
|
[x: string]: any;
|
|
12
12
|
}>>;
|
|
13
13
|
render(): void;
|
package/dist/select.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldAwareComponent$1 as FieldAwareComponent, FieldMachine, Machine$1 as Machine } from "./index-BpcuNDMI.js";
|
|
2
2
|
import * as _zag_js_collection0 from "@zag-js/collection";
|
|
3
3
|
import * as select from "@zag-js/select";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _zag_js_types8 from "@zag-js/types";
|
|
5
5
|
|
|
6
6
|
//#region Resources/Private/Primitives/Select/Select.d.ts
|
|
7
7
|
declare class Select extends FieldAwareComponent<select.Props, select.Api> {
|
|
@@ -9,6 +9,7 @@ declare class Select extends FieldAwareComponent<select.Props, select.Api> {
|
|
|
9
9
|
propsWithField(props: select.Props, fieldMachine: FieldMachine): select.Props;
|
|
10
10
|
transformProps(props: select.Props): {
|
|
11
11
|
collection: _zag_js_collection0.ListCollection<any>;
|
|
12
|
+
translations?: select.IntlTranslations | undefined;
|
|
12
13
|
ids?: Partial<{
|
|
13
14
|
root: string;
|
|
14
15
|
content: string;
|
|
@@ -54,7 +55,7 @@ declare class Select extends FieldAwareComponent<select.Props, select.Api> {
|
|
|
54
55
|
onInteractOutside?: ((event: select.InteractOutsideEvent) => void) | undefined;
|
|
55
56
|
};
|
|
56
57
|
initMachine(props: select.Props): Machine<any>;
|
|
57
|
-
initApi(): select.Api<
|
|
58
|
+
initApi(): select.Api<_zag_js_types8.PropTypes<{
|
|
58
59
|
[x: string]: any;
|
|
59
60
|
}>, any>;
|
|
60
61
|
render: () => void;
|
package/dist/tabs.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component$1 as Component, Machine$1 as Machine } from "./index-BpcuNDMI.js";
|
|
2
2
|
import * as tabs from "@zag-js/tabs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _zag_js_types9 from "@zag-js/types";
|
|
4
4
|
|
|
5
5
|
//#region Resources/Private/Primitives/Tabs/Tabs.d.ts
|
|
6
6
|
declare class Tabs extends Component<tabs.Props, tabs.Api> {
|
|
7
7
|
static name: string;
|
|
8
8
|
initMachine(props: tabs.Props): Machine<any>;
|
|
9
|
-
initApi(): tabs.Api<
|
|
9
|
+
initApi(): tabs.Api<_zag_js_types9.PropTypes<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}>>;
|
|
12
12
|
render: () => void;
|
package/dist/tooltip.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component$1 as Component, Machine$1 as Machine } from "./index-BpcuNDMI.js";
|
|
2
2
|
import * as tooltip from "@zag-js/tooltip";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _zag_js_types0 from "@zag-js/types";
|
|
4
4
|
|
|
5
5
|
//#region Resources/Private/Primitives/Tooltip/Tooltip.d.ts
|
|
6
6
|
declare class Tooltip extends Component<tooltip.Props, tooltip.Api> {
|
|
7
7
|
static name: string;
|
|
8
8
|
initMachine(props: tooltip.Props): Machine<any>;
|
|
9
|
-
initApi(): tooltip.Api<
|
|
9
|
+
initApi(): tooltip.Api<_zag_js_types0.PropTypes<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}>>;
|
|
12
12
|
render(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fluid-primitives",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.2",
|
|
4
4
|
"description": "Client-side library for Fluid Primitives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -90,25 +90,25 @@
|
|
|
90
90
|
"zod": "^4.3.6"
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@zag-js/accordion": "^1.
|
|
94
|
-
"@zag-js/anatomy": "^1.
|
|
95
|
-
"@zag-js/checkbox": "^1.
|
|
96
|
-
"@zag-js/clipboard": "^1.
|
|
97
|
-
"@zag-js/collapsible": "^1.
|
|
98
|
-
"@zag-js/collection": "^1.
|
|
99
|
-
"@zag-js/core": "^1.
|
|
100
|
-
"@zag-js/dialog": "^1.
|
|
101
|
-
"@zag-js/dom-query": "^1.
|
|
102
|
-
"@zag-js/number-input": "^1.
|
|
103
|
-
"@zag-js/popover": "^1.
|
|
104
|
-
"@zag-js/radio-group": "^1.
|
|
105
|
-
"@zag-js/scroll-area": "^1.
|
|
106
|
-
"@zag-js/select": "^1.
|
|
107
|
-
"@zag-js/store": "^1.
|
|
108
|
-
"@zag-js/tabs": "^1.
|
|
109
|
-
"@zag-js/tooltip": "^1.
|
|
110
|
-
"@zag-js/types": "^1.
|
|
111
|
-
"@zag-js/utils": "^1.
|
|
112
|
-
"@zag-js/vanilla": "^1.
|
|
93
|
+
"@zag-js/accordion": "^1.37.0",
|
|
94
|
+
"@zag-js/anatomy": "^1.37.0",
|
|
95
|
+
"@zag-js/checkbox": "^1.37.0",
|
|
96
|
+
"@zag-js/clipboard": "^1.37.0",
|
|
97
|
+
"@zag-js/collapsible": "^1.37.0",
|
|
98
|
+
"@zag-js/collection": "^1.37.0",
|
|
99
|
+
"@zag-js/core": "^1.37.0",
|
|
100
|
+
"@zag-js/dialog": "^1.37.0",
|
|
101
|
+
"@zag-js/dom-query": "^1.37.0",
|
|
102
|
+
"@zag-js/number-input": "^1.37.0",
|
|
103
|
+
"@zag-js/popover": "^1.37.0",
|
|
104
|
+
"@zag-js/radio-group": "^1.37.0",
|
|
105
|
+
"@zag-js/scroll-area": "^1.37.0",
|
|
106
|
+
"@zag-js/select": "^1.37.0",
|
|
107
|
+
"@zag-js/store": "^1.37.0",
|
|
108
|
+
"@zag-js/tabs": "^1.37.0",
|
|
109
|
+
"@zag-js/tooltip": "^1.37.0",
|
|
110
|
+
"@zag-js/types": "^1.37.0",
|
|
111
|
+
"@zag-js/utils": "^1.37.0",
|
|
112
|
+
"@zag-js/vanilla": "^1.37.0"
|
|
113
113
|
}
|
|
114
114
|
}
|