@g9tm/lynxcontrols 2.9.0 → 2.10.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.
Files changed (48) hide show
  1. package/catalog/cards/G9DockLayout.md +17 -0
  2. package/catalog/cards/G9KeyDiamond.md +15 -0
  3. package/catalog/cards/G9KeySlider.md +17 -0
  4. package/catalog/catalog.json +1199 -1
  5. package/catalog/index.md +4 -1
  6. package/dist/.tsbuildinfo +1 -1
  7. package/dist/layout/dock.css +90 -0
  8. package/dist/layout/dock.css.map +1 -0
  9. package/dist/layout/dock.d.ts +86 -0
  10. package/dist/layout/dock.d.ts.map +1 -0
  11. package/dist/layout/dock.jsx +272 -0
  12. package/dist/layout/index.d.ts +1 -0
  13. package/dist/layout/index.d.ts.map +1 -1
  14. package/dist/layout/index.jsx +1 -0
  15. package/dist/pointer/index.d.ts +1 -0
  16. package/dist/pointer/index.d.ts.map +1 -1
  17. package/dist/pointer/index.jsx +1 -0
  18. package/dist/pointer/pad.d.ts +57 -0
  19. package/dist/pointer/pad.d.ts.map +1 -0
  20. package/dist/pointer/pad.jsx +111 -0
  21. package/dist/range-slider/index.d.ts +1 -0
  22. package/dist/range-slider/index.d.ts.map +1 -1
  23. package/dist/range-slider/index.jsx +1 -0
  24. package/dist/range-slider/key-slider.d.ts +50 -0
  25. package/dist/range-slider/key-slider.d.ts.map +1 -0
  26. package/dist/range-slider/key-slider.jsx +51 -0
  27. package/dist/range-slider/range-slider.css +48 -0
  28. package/dist/range-slider/range-slider.css.map +1 -1
  29. package/dist/range-slider/range-slider.d.ts +16 -0
  30. package/dist/range-slider/range-slider.d.ts.map +1 -1
  31. package/dist/range-slider/range-slider.jsx +26 -10
  32. package/package.json +2 -2
  33. package/skills/g9-lynx-app/references/catalog-index.md +11 -2
  34. package/skills/g9-lynx-app/references/components/datagrid.md +3 -3
  35. package/skills/g9-lynx-app/references/components/layout-1.md +18 -18
  36. package/skills/g9-lynx-app/references/components/layout-2.md +18 -0
  37. package/skills/g9-lynx-app/references/components/media-1.md +7 -7
  38. package/skills/g9-lynx-app/references/components/projects.md +1 -1
  39. package/skills/g9-lynx-app/references/components/range-slider.md +34 -0
  40. package/skills/g9-lynx-app/references/components/studio-color-picker.md +19 -0
  41. package/skills/g9-lynx-app/references/components/studio-ease-editor.md +19 -0
  42. package/skills/g9-lynx-app/references/components/studio-filmstrip.md +19 -0
  43. package/skills/g9-lynx-app/references/components/studio-font-picker.md +19 -0
  44. package/skills/g9-lynx-app/references/components/studio-gradient-editor.md +19 -0
  45. package/skills/g9-lynx-app/references/components/studio-history-list.md +34 -0
  46. package/skills/g9-lynx-app/references/components/studio-media-slot.md +19 -0
  47. package/skills/g9-lynx-app/references/components/studio-option-form.md +19 -0
  48. package/skills/g9-lynx-app/references/components/studio-waveform.md +19 -0
@@ -49,8 +49,8 @@ Props:
49
49
  - `formatSize?`: (bytes: number) => void
50
50
  - `menuFor?`: (item: G9FileEntry) => void
51
51
  - `onCancelUpload?`: (id: string) => void
52
+ - `onFavoriteChange?`: (id: string, favorite: boolean) => void
52
53
  - `onMenu?`: (key: string, item: G9FileEntry) => void
53
- - `onNavigate?`: (folderId: string | null) => void
54
54
 
55
55
  Example: `<G9FileBrowser items={items} />`
56
56
 
@@ -1,5 +1,39 @@
1
1
  # `@g9tm/lynxcontrols/range-slider` (generated)
2
2
 
3
+ # G9KeyDiamond
4
+
5
+ `import { G9KeyDiamond } from '@g9tm/lynxcontrols/range-slider';`
6
+
7
+ An editor's keyframe diamond: hollow and quiet with no keys, hollow with a dot in the primary colour when the value has keys elsewhere, solid primary with a key at the playhead.
8
+
9
+ Props:
10
+ - `state`: 'none' | 'keys' | 'here'
11
+ - `size?`: number = 14
12
+ - `onPress?`: () => void
13
+ - `disabled?`: boolean
14
+ - `stateWords?`: object = "—"
15
+ - `accessibilityLabel?`: string
16
+
17
+ Example: `<G9KeyDiamond state="none" />`
18
+
19
+ # G9KeySlider
20
+
21
+ `import { G9KeySlider } from '@g9tm/lynxcontrols/range-slider';`
22
+
23
+ A one-thumb slider with a keyframe diamond at its reading start and an optional second row (`below`, a modulator): the inspector's numeric property.
24
+
25
+ Props:
26
+ - `label?`: string
27
+ - `value?`: number
28
+ - `onChange?`: (value: number, phase: G9ValuePhase) => void
29
+ - `disabled?`: boolean
30
+ - `formatValue?`: (value: number) => void
31
+ - `onDiamond?`: () => void
32
+ - `onDragCompleted?`: (value: number) => void
33
+ - `onValueChanged?`: (value: number) => void
34
+
35
+ Example: `<G9KeySlider />`
36
+
3
37
  # G9RangeSlider
4
38
 
5
39
  `import { G9RangeSlider } from '@g9tm/lynxcontrols/range-slider';`
@@ -0,0 +1,19 @@
1
+ # `@g9tm/lynxcontrols-studio/color-picker` (generated)
2
+
3
+ # G9ColorPicker
4
+
5
+ `import { G9ColorPicker } from '@g9tm/lynxcontrols-studio/color-picker';`
6
+
7
+ A full colour picker: the spectrum (saturation across, value up), a hue bar, an alpha bar with `alpha`, the colour in hex / RGB / HSL fields, an eyedropper where the host has one, the app's palette and the recent colours
8
+
9
+ Props:
10
+ - `value`: string
11
+ - `onChange?`: (hex: string, phase: G9ColorPhase) => void
12
+ - `disabled?`: boolean
13
+ - `onCommit?`: (hex: string) => void
14
+ - `onModeChange?`: (mode: G9ColorMode) => void
15
+ - `onRecentChange?`: (recent: readonly string[]) => void
16
+ - `defaultMode?`: 'hex' | 'rgb' | 'hsl'
17
+ - `spectrumHeight?`: number = 160
18
+
19
+ Example: `<G9ColorPicker value="value" />`
@@ -0,0 +1,19 @@
1
+ # `@g9tm/lynxcontrols-studio/ease-editor` (generated)
2
+
3
+ # G9EaseEditor
4
+
5
+ `import { G9EaseEditor } from '@g9tm/lynxcontrols-studio/ease-editor';`
6
+
7
+ An easing editor: the curve on a square (time across, progress up; a progress beyond 0–1 is an overshoot), two handles to drag (the nearer one to a press moves), preset chips and the `cubic-bezier(…)` text.
8
+
9
+ Props:
10
+ - `value`: number[]
11
+ - `size?`: number = 200
12
+ - `onChange?`: (value: G9Bezier, phase: G9EasePhase) => void
13
+ - `disabled?`: boolean
14
+ - `onCommit?`: (value: G9Bezier) => void
15
+ - `showText?`: boolean = true
16
+ - `presets?`: object[]
17
+ - `words?`: object
18
+
19
+ Example: `<G9EaseEditor value={value} />`
@@ -0,0 +1,19 @@
1
+ # `@g9tm/lynxcontrols-studio/filmstrip` (generated)
2
+
3
+ # G9Filmstrip
4
+
5
+ `import { G9Filmstrip } from '@g9tm/lynxcontrols-studio/filmstrip';`
6
+
7
+ A clip's frames in a horizontal virtual list: `duration × pixelsPerSecond` dp wide, a frame every `frameWidth` dp, each picture from `resolveFrame(clipKey, time)`.
8
+
9
+ Props:
10
+ - `clipKey`: string
11
+ - `duration`: number
12
+ - `resolveFrame`: (clipKey: string, time: number) => void
13
+ - `onSeek?`: (time: number) => void
14
+ - `frameWidth?`: number = 16
15
+ - `height?`: number = 48
16
+ - `pixelsPerSecond?`: number
17
+ - `version?`: string | number
18
+
19
+ Example: `<G9Filmstrip clipKey="clipKey" duration={1} resolveFrame={resolveFrame} />`
@@ -0,0 +1,19 @@
1
+ # `@g9tm/lynxcontrols-studio/font-picker` (generated)
2
+
3
+ # G9FontPicker
4
+
5
+ `import { G9FontPicker } from '@g9tm/lynxcontrols-studio/font-picker';`
6
+
7
+ A font picker: a search, a script filter, the families in a virtual list — each name and sample drawn in its own face — and the chosen family's weights as chips.
8
+
9
+ Props:
10
+ - `families`: object[]
11
+ - `onChange`: (value: G9FontChoice) => void
12
+ - `value?`: object
13
+ - `onScriptChange?`: (script: string | null) => void
14
+ - `rowHeight?`: number = 64
15
+ - `sampleSize?`: number = 20
16
+ - `height?`: number = 360
17
+ - `sample?`: string | object
18
+
19
+ Example: `<G9FontPicker families={families} onChange={() => {}} />`
@@ -0,0 +1,19 @@
1
+ # `@g9tm/lynxcontrols-studio/gradient-editor` (generated)
2
+
3
+ # G9GradientEditor
4
+
5
+ `import { G9GradientEditor } from '@g9tm/lynxcontrols-studio/gradient-editor';`
6
+
7
+ A gradient editor: the result, a bar with the stops (press empty bar to add one, drag a stop to move it), the selected stop's colour, a delete button, the angle as a dial and a field, linear or radial.
8
+
9
+ Props:
10
+ - `value`: object
11
+ - `onChange?`: (gradient: G9Gradient, phase: G9GradientPhase) => void
12
+ - `disabled?`: boolean
13
+ - `onCommit?`: (gradient: G9Gradient) => void
14
+ - `onSelectStop?`: (id: string) => void
15
+ - `colorPicker?`: boolean | object
16
+ - `kinds?`: 'linear' | 'radial'[]
17
+ - `maxStops?`: number = 16
18
+
19
+ Example: `<G9GradientEditor value={value} />`
@@ -0,0 +1,34 @@
1
+ # `@g9tm/lynxcontrols-studio/history-list` (generated)
2
+
3
+ # G9HistoryList
4
+
5
+ `import { G9HistoryList } from '@g9tm/lynxcontrols-studio/history-list';`
6
+
7
+ An undo history: each step's label and time, the current step marked (a filled node, bold), the undone steps after it quieter, a tap on any step jumps there (`onJump(index)`).
8
+
9
+ Props:
10
+ - `current`: number
11
+ - `steps`: object[]
12
+ - `onJump?`: (index: number) => void
13
+ - `height?`: number
14
+ - `newestFirst?`: boolean = false
15
+ - `utcOffsetMinutes?`: number = 0
16
+ - `words?`: object
17
+
18
+ Example: `<G9HistoryList current={1} steps={steps} />`
19
+
20
+ # G9JobQueue
21
+
22
+ `import { G9JobQueue } from '@g9tm/lynxcontrols-studio/history-list';`
23
+
24
+ A running job queue: each job's icon, label, state (or `detail`), progress (a bar; a moving one when the amount is unknown) and percent, with cancel and retry for the handlers given.
25
+
26
+ Props:
27
+ - `jobs`: object[]
28
+ - `onCancel?`: (id: string) => void
29
+ - `onOpen?`: (id: string) => void
30
+ - `onRetry?`: (id: string) => void
31
+ - `stateWords?`: object
32
+ - `words?`: object
33
+
34
+ Example: `<G9JobQueue jobs={jobs} />`
@@ -0,0 +1,19 @@
1
+ # `@g9tm/lynxcontrols-studio/media-slot` (generated)
2
+
3
+ # G9MediaSlot
4
+
5
+ `import { G9MediaSlot } from '@g9tm/lynxcontrols-studio/media-slot';`
6
+
7
+ One media place: empty it is a dashed box that asks (`onReplace`); filled it shows the picture or the poster (a sound: its name and length) with replace, crop (pictures and videos) and remove buttons for the handlers giv
8
+
9
+ Props:
10
+ - `kind`: 'image' | 'video' | 'audio'
11
+ - `value?`: object
12
+ - `disabled?`: boolean
13
+ - `onCrop?`: () => void
14
+ - `onRemove?`: () => void
15
+ - `onReplace?`: () => void
16
+ - `radius?`: number = 12
17
+ - `aspect?`: number = 16
18
+
19
+ Example: `<G9MediaSlot kind="image" />`
@@ -0,0 +1,19 @@
1
+ # `@g9tm/lynxcontrols-studio/option-form` (generated)
2
+
3
+ # G9OptionForm
4
+
5
+ `import { G9OptionForm } from '@g9tm/lynxcontrols-studio/option-form';`
6
+
7
+ A form from a schema: groups (collapsible when titled) of slider, toggle, colour, select, text and media fields, words in each language (`{ fa, en }`), a keyframe diamond and a row below any slider, and fields shown only
8
+
9
+ Props:
10
+ - `onChange`: (id: string, value: unknown, phase: G9OptionPhase) => void
11
+ - `schema`: object[]
12
+ - `values`: object
13
+ - `disabled?`: boolean
14
+ - `onCollapsedChange?`: (collapsed: readonly string[]) => void
15
+ - `onDiamond?`: (id: string) => void
16
+ - `onMedia?`: (id: string, action: G9OptionMediaAction) => void
17
+ - `renderBelow?`: (id) => ReactNode
18
+
19
+ Example: `<G9OptionForm onChange={() => {}} schema={schema} values={values} />`
@@ -0,0 +1,19 @@
1
+ # `@g9tm/lynxcontrols-studio/waveform` (generated)
2
+
3
+ # G9Waveform
4
+
5
+ `import { G9Waveform } from '@g9tm/lynxcontrols-studio/waveform';`
6
+
7
+ A waveform: bars from the peaks (bucketed to the width), the played part in the primary colour up to the playhead, a tinted selection, and a window whose body moves it and whose edges resize it.
8
+
9
+ Props:
10
+ - `peaks`: object
11
+ - `disabled?`: boolean
12
+ - `onSeek?`: (at: number, phase: G9WavePhase) => void
13
+ - `onWindow?`: (start: number, end: number, phase: G9WavePhase) => void
14
+ - `barGap?`: number
15
+ - `barWidth?`: number = 2
16
+ - `playedColor?`: color
17
+ - `color?`: color
18
+
19
+ Example: `<G9Waveform peaks={peaks} />`