@justanarthur/modo-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/README.md +20 -16
- package/dist/blocks/sidebar-app/index.js +7 -7
- package/dist/components/{inputs → AI}/input-message/index.js +2 -2
- package/dist/components/AI/thinking-indicator/index.js +13 -0
- package/dist/components/accordion/index.js +28 -0
- package/dist/components/card/index.js +2 -2
- package/dist/components/{inputs/input-copy → copy}/index.d.ts +7 -7
- package/dist/components/copy/index.js +16 -0
- package/dist/components/inputs/checkbox/index.d.ts +62 -0
- package/dist/components/inputs/{checkbox-group → checkbox}/index.js +7 -6
- package/dist/components/inputs/color-picker/index.js +2 -2
- package/dist/components/inputs/combobox/index.d.ts +8 -7
- package/dist/components/inputs/combobox/index.js +3 -3
- package/dist/components/inputs/date-time/calendar/index.js +3 -3
- package/dist/components/inputs/date-time/date-picker/index.d.ts +7 -3
- package/dist/components/inputs/date-time/date-picker/index.js +8 -8
- package/dist/components/inputs/date-time/date-range-picker/index.d.ts +7 -3
- package/dist/components/inputs/date-time/date-range-picker/index.js +7 -7
- package/dist/components/inputs/date-time/duration-picker/index.d.ts +7 -3
- package/dist/components/inputs/date-time/duration-picker/index.js +7 -7
- package/dist/components/inputs/date-time/month-picker/index.d.ts +7 -3
- package/dist/components/inputs/date-time/month-picker/index.js +6 -6
- package/dist/components/inputs/date-time/time-picker/index.d.ts +7 -3
- package/dist/components/inputs/date-time/time-picker/index.js +7 -7
- package/dist/components/inputs/input/index.d.ts +5 -1
- package/dist/components/inputs/input/index.js +2 -2
- package/dist/components/inputs/{radio-group → radio}/index.d.ts +30 -30
- package/dist/components/inputs/{radio-group → radio}/index.js +7 -6
- package/dist/components/inputs/search/index.js +3 -3
- package/dist/components/inputs/select/index.js +2 -2
- package/dist/components/inputs/switch/index.d.ts +27 -6
- package/dist/components/inputs/switch/index.js +8 -1
- package/dist/components/inputs/textarea/index.d.ts +46 -0
- package/dist/components/inputs/textarea/index.js +13 -0
- package/dist/components/navigation/sidebar/index.js +4 -4
- package/dist/components/navigation/tabs/index.js +2 -2
- package/dist/components/navigation/tabs-subtle/index.js +2 -2
- package/dist/components/overlays/command/index.js +2 -2
- package/dist/components/overlays/context-menu/index.js +3 -3
- package/dist/components/overlays/dropdown/index.d.ts +2 -2
- package/dist/components/overlays/dropdown/index.js +2 -2
- package/dist/components/table/index.js +2 -2
- package/dist/index.d.ts +896 -808
- package/dist/index.js +57 -50
- package/dist/primitives/fluid-hover/index.js +2 -2
- package/dist/primitives/morph/index.d.ts +2 -2
- package/dist/primitives/sizes/index.d.ts +2 -2
- package/dist/shared/{components-1rfwbyyc.js → components-1z6tdadk.js} +1 -1
- package/dist/shared/{components-7x9kawxv.js → components-27nnvrwe.js} +1 -1
- package/dist/shared/{components-mhd39z7x.js → components-3myrw7ne.js} +36 -1
- package/dist/shared/{components-gvr9w41t.js → components-50m950y9.js} +19 -23
- package/dist/shared/{components-asr5pg50.js → components-8snj490h.js} +106 -9
- package/dist/shared/{components-1xekx2hx.js → components-ar66gnt0.js} +1 -1
- package/dist/shared/{components-3wk0w46f.js → components-b3c5et5b.js} +1 -1
- package/dist/shared/{components-yh3kwdhr.js → components-d6xtjht3.js} +3 -3
- package/dist/shared/{components-ytb2tefr.js → components-hyq23phv.js} +39 -20
- package/dist/shared/{components-q4daerx0.js → components-mjthm1kf.js} +1 -1
- package/dist/shared/{components-ca2c898n.js → components-mqyvvh8k.js} +1 -1
- package/dist/shared/{components-4cnjmgex.js → components-nsjec21k.js} +4 -2
- package/dist/shared/{components-7ans7ce5.js → components-nyq0rym2.js} +5 -3
- package/dist/shared/{components-ny774h8p.js → components-pbmqctfa.js} +15 -8
- package/dist/shared/{components-7btqt08d.js → components-qtqxgfrb.js} +17 -20
- package/dist/shared/components-rd9tbsqv.js +89 -0
- package/dist/shared/{components-1j9791sn.js → components-s083f38z.js} +5 -5
- package/dist/shared/components-ta7shw28.js +19 -0
- package/dist/shared/{components-3gae8nta.js → components-tcee5k0s.js} +22 -24
- package/dist/shared/{components-ez65vtbq.js → components-wshd8f3n.js} +5 -3
- package/dist/shared/{components-v7wtz8hk.js → components-wtbesgdp.js} +6 -4
- package/dist/shared/{components-66mv71kx.js → components-xxvdw7k1.js} +1 -1
- package/dist/shared/{components-njzgqdwy.js → components-ye0ze0h8.js} +2 -2
- package/dist/shared/{components-cbxjn9p8.js → components-zwhtxm15.js} +5 -3
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/components/inputs/checkbox-group/index.d.ts +0 -50
- package/dist/components/inputs/input-copy/index.js +0 -16
- package/dist/components/navigation/accordion/index.js +0 -28
- package/dist/components/thinking-indicator/index.js +0 -13
- /package/dist/components/{inputs → AI}/input-message/index.d.ts +0 -0
- /package/dist/components/{thinking-indicator → AI/thinking-indicator}/index.d.ts +0 -0
- /package/dist/components/{navigation/accordion → accordion}/index.d.ts +0 -0
- /package/dist/shared/{components-0ke6xada.js → components-1434p1mh.js} +0 -0
- /package/dist/shared/{components-h2dpcwgc.js → components-2dxkv6zm.js} +0 -0
- /package/dist/shared/{components-8fpr3s4p.js → components-39vmfq9s.js} +0 -0
- /package/dist/shared/{components-nh8tma1n.js → components-a86dytt0.js} +0 -0
- /package/dist/shared/{components-v6xp325t.js → components-dk0gjr5a.js} +0 -0
- /package/dist/shared/{components-62ybc7t2.js → components-frw34b65.js} +0 -0
- /package/dist/shared/{components-9jvzzvt1.js → components-gz8zf3ec.js} +0 -0
- /package/dist/shared/{components-tqvarbfv.js → components-hw9yk32z.js} +0 -0
- /package/dist/shared/{components-apdwtweq.js → components-jbbmdr74.js} +0 -0
- /package/dist/shared/{components-3k8xpnpq.js → components-jthe1pwb.js} +0 -0
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
SidebarMenuItem2,
|
|
24
24
|
SidebarMenuButton2,
|
|
25
25
|
sidebar_default
|
|
26
|
-
} from "./components-
|
|
26
|
+
} from "./components-mqyvvh8k.js";
|
|
27
27
|
import {
|
|
28
28
|
MenuItem2,
|
|
29
29
|
DropdownMenu2,
|
|
30
30
|
DropdownTrigger2,
|
|
31
31
|
DropdownContent2
|
|
32
|
-
} from "./components-
|
|
32
|
+
} from "./components-a86dytt0.js";
|
|
33
33
|
|
|
34
34
|
// blocks/sidebar-app/index.tsx
|
|
35
35
|
import { useState } from "react";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultLocale,
|
|
3
3
|
parseDateText
|
|
4
|
-
} from "./components-
|
|
4
|
+
} from "./components-gz8zf3ec.js";
|
|
5
5
|
import {
|
|
6
6
|
useControllableState
|
|
7
7
|
} from "./components-n7mjr357.js";
|
|
8
8
|
import {
|
|
9
9
|
calendar_default
|
|
10
|
-
} from "./components-
|
|
10
|
+
} from "./components-1z6tdadk.js";
|
|
11
11
|
import {
|
|
12
12
|
PickerShell,
|
|
13
13
|
PickerInput
|
|
14
|
-
} from "./components-
|
|
14
|
+
} from "./components-qtqxgfrb.js";
|
|
15
15
|
|
|
16
16
|
// components/inputs/date-time/date-range-picker/index.tsx
|
|
17
17
|
import { endOfMonth, format } from "date-fns";
|
|
@@ -27,6 +27,7 @@ function DateRangePicker2({
|
|
|
27
27
|
disabled,
|
|
28
28
|
startMonth,
|
|
29
29
|
endMonth,
|
|
30
|
+
variant,
|
|
30
31
|
invalid,
|
|
31
32
|
size,
|
|
32
33
|
open: openProp,
|
|
@@ -109,6 +110,7 @@ function DateRangePicker2({
|
|
|
109
110
|
open,
|
|
110
111
|
onOpenChange: setOpen,
|
|
111
112
|
size,
|
|
113
|
+
variant,
|
|
112
114
|
invalid,
|
|
113
115
|
disabled: off,
|
|
114
116
|
icon: "calendar",
|
package/dist/styles.css
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
}
|
|
60
60
|
/* layer: theme */
|
|
61
61
|
@layer theme{
|
|
62
|
-
:root, :host { --default-transition-timingFunction: cubic-bezier(0.4, 0, 0.2, 1); --default-transition-duration: 150ms; --spacing: 0.25rem; --ease-DEFAULT: cubic-bezier(0.4, 0, 0.2, 1); --font-
|
|
62
|
+
:root, :host { --default-transition-timingFunction: cubic-bezier(0.4, 0, 0.2, 1); --default-transition-duration: 150ms; --spacing: 0.25rem; --ease-DEFAULT: cubic-bezier(0.4, 0, 0.2, 1); --font-sans: 'Inter Variable', ui-sans-serif, system-ui, sans-serif; --radius-none: 0; --leading-relaxed: 1.625; --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); --radius-2xl: 1rem; --radius-3xl: 1.5rem; --radius-DEFAULT: 0.25rem; --radius-lg: 0.5rem; --radius-xl: 0.75rem; --leading-none: 1; --ease-out: cubic-bezier(0, 0, 0.2, 1); --radius-sm: 0.25rem; --leading-snug: 1.375; --leading-normal: 1.5; --radius-xs: 0.125rem; --tracking-wide: 0.025em; --radius-md: 0.375rem; --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; --leading-tight: 1.25; --default-font-family: var(--font-sans); --default-monoFont-family: var(--font-mono); }
|
|
63
63
|
}
|
|
64
64
|
/* layer: base */
|
|
65
65
|
@layer base{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justanarthur/modo-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"description": "Fluid Functionalism (Base UI flavor, MIT © 2026 Micka Touillaud) ported to UnoCSS: motion springs, fluid hover, a two-step size ladder and an eight-level elevated surface system. Documented with modo.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"keywords": [
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent, HTMLAttributes, ReactNode, RefAttributes } from "react";
|
|
2
|
-
type SizeVariant = "default" | "compact";
|
|
3
|
-
interface CheckboxGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
/** CheckboxGroup.Item children. */
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
/** Set of checked item indices; drives the merged background across contiguous picks. Controlled — pair it with `onCheckedIndicesChange` (or per-item `onToggle`). */
|
|
7
|
-
checkedIndices?: Set<number>;
|
|
8
|
-
/** Checked indices on first render when uncontrolled (a Set or an array). Defaults to none. */
|
|
9
|
-
defaultCheckedIndices?: Set<number> | number[];
|
|
10
|
-
/** Called with the next checked set whenever an item is toggled. */
|
|
11
|
-
onCheckedIndicesChange?: (checkedIndices: Set<number>) => void;
|
|
12
|
-
/** Pins the group's rows to one step of the size ladder (default 36px, compact 28px). Defaults to the surrounding SizeProvider. */
|
|
13
|
-
size?: SizeVariant;
|
|
14
|
-
}
|
|
15
|
-
type CheckboxGroupComponent = ForwardRefExoticComponent<CheckboxGroupProps & RefAttributes<HTMLDivElement>> & {
|
|
16
|
-
Item: typeof CheckboxItem;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Checkbox group with merged backgrounds for contiguous selections.
|
|
20
|
-
*
|
|
21
|
-
* Each row is a `CheckboxGroup.Item` with a stable `index`. Contiguous checked
|
|
22
|
-
* rows share one background: a checked row's background grows out of its
|
|
23
|
-
* center and melts into its neighbours, an unchecked one pinches off and
|
|
24
|
-
* shrinks away (the liquid indicators in Morph). A fluid hover highlight melts
|
|
25
|
-
* from row to row, and Arrow Up/Down,
|
|
26
|
-
* Home and End move focus while Space or Enter toggles. The checked label
|
|
27
|
-
* animates to semibold without shifting its width. The group is uncontrolled
|
|
28
|
-
* with `defaultCheckedIndices`, or controlled with `checkedIndices` plus
|
|
29
|
-
* `onCheckedIndicesChange` — FF's per-item `checked` / `onToggle` still work
|
|
30
|
-
* and override the group state for their row.
|
|
31
|
-
*
|
|
32
|
-
* Statics:
|
|
33
|
-
* - `CheckboxGroup.Item` — one checkbox row: `label`, `index`, and optional
|
|
34
|
-
* `checked` / `onToggle`.
|
|
35
|
-
*
|
|
36
|
-
* @example {@include ./examples.mdx}
|
|
37
|
-
*/
|
|
38
|
-
declare const CheckboxGroup: CheckboxGroupComponent;
|
|
39
|
-
interface CheckboxItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
40
|
-
/** Text label for the checkbox. */
|
|
41
|
-
label: string;
|
|
42
|
-
/** Position index within the group. */
|
|
43
|
-
index: number;
|
|
44
|
-
/** Whether this item is checked. Defaults to the group's checked set. */
|
|
45
|
-
checked?: boolean;
|
|
46
|
-
/** Called when this item is toggled (the group's `onCheckedIndicesChange` fires too). */
|
|
47
|
-
onToggle?: () => void;
|
|
48
|
-
}
|
|
49
|
-
declare const CheckboxItem: ForwardRefExoticComponent<CheckboxItemProps & RefAttributes<HTMLDivElement>>;
|
|
50
|
-
export { CheckboxGroup, CheckboxGroupProps, CheckboxItem, CheckboxItemProps, CheckboxGroup as default };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
InputCopy2,
|
|
3
|
-
input_copy_default
|
|
4
|
-
} from "../../../shared/components-1j9791sn.js";
|
|
5
|
-
import"../../../shared/components-ng72k97e.js";
|
|
6
|
-
import"../../../shared/components-zrkzcayz.js";
|
|
7
|
-
import"../../../shared/components-0q0sqfh4.js";
|
|
8
|
-
import"../../../shared/components-hqeq3w9q.js";
|
|
9
|
-
import"../../../shared/components-men63rwj.js";
|
|
10
|
-
import"../../../shared/components-0sn7ypjw.js";
|
|
11
|
-
import"../../../shared/components-cv16mryv.js";
|
|
12
|
-
import"../../../shared/components-ezxhrmer.js";
|
|
13
|
-
export {
|
|
14
|
-
InputCopy2 as InputCopy,
|
|
15
|
-
input_copy_default as default
|
|
16
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AccordionGroup2,
|
|
3
|
-
Accordion2,
|
|
4
|
-
AccordionItem2,
|
|
5
|
-
AccordionTrigger2,
|
|
6
|
-
AccordionContent2,
|
|
7
|
-
accordion_default
|
|
8
|
-
} from "../../../shared/components-3wk0w46f.js";
|
|
9
|
-
import"../../../shared/components-zrkzcayz.js";
|
|
10
|
-
import"../../../shared/components-0q0sqfh4.js";
|
|
11
|
-
import"../../../shared/components-kvr7f9hy.js";
|
|
12
|
-
import"../../../shared/components-59efxjd9.js";
|
|
13
|
-
import"../../../shared/components-chacnk61.js";
|
|
14
|
-
import"../../../shared/components-hqeq3w9q.js";
|
|
15
|
-
import"../../../shared/components-jjw69c4c.js";
|
|
16
|
-
import"../../../shared/components-n7mjr357.js";
|
|
17
|
-
import"../../../shared/components-men63rwj.js";
|
|
18
|
-
import"../../../shared/components-0sn7ypjw.js";
|
|
19
|
-
import"../../../shared/components-cv16mryv.js";
|
|
20
|
-
import"../../../shared/components-ezxhrmer.js";
|
|
21
|
-
export {
|
|
22
|
-
Accordion2 as Accordion,
|
|
23
|
-
AccordionContent2 as AccordionContent,
|
|
24
|
-
AccordionGroup2 as AccordionGroup,
|
|
25
|
-
AccordionItem2 as AccordionItem,
|
|
26
|
-
AccordionTrigger2 as AccordionTrigger,
|
|
27
|
-
accordion_default as default
|
|
28
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ThinkingIndicator2,
|
|
3
|
-
thinking_indicator_default
|
|
4
|
-
} from "../../shared/components-7x9kawxv.js";
|
|
5
|
-
import"../../shared/components-0q0sqfh4.js";
|
|
6
|
-
import"../../shared/components-hqeq3w9q.js";
|
|
7
|
-
import"../../shared/components-men63rwj.js";
|
|
8
|
-
import"../../shared/components-0sn7ypjw.js";
|
|
9
|
-
import"../../shared/components-ezxhrmer.js";
|
|
10
|
-
export {
|
|
11
|
-
ThinkingIndicator2 as ThinkingIndicator,
|
|
12
|
-
thinking_indicator_default as default
|
|
13
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|