@texturehq/edges 1.28.2 → 1.29.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/dist/{RichTextEditor-7jc4jO7e.d.cts → RichTextEditor-CxrunTg7.d.cts} +11 -1
- package/dist/{RichTextEditor-7jc4jO7e.d.ts → RichTextEditor-CxrunTg7.d.ts} +11 -1
- package/dist/{TimeField-DUQ94xQz.d.ts → TimeField-DRQshIHX.d.ts} +1 -1
- package/dist/{TimeField-ydXvd3yT.d.cts → TimeField-WCmeiLu3.d.cts} +1 -1
- package/dist/{colors-BHVIdEzL.d.cts → colors-CkJf6_Bz.d.cts} +2 -2
- package/dist/{colors-BArtDuqU.d.ts → colors-DR1jXZhL.d.ts} +2 -2
- package/dist/components.manifest.json +1 -1
- package/dist/index.cjs +22 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +22 -22
- package/dist/index.js.map +1 -1
- package/dist/rhf/index.cjs +1 -1
- package/dist/rhf/index.cjs.map +1 -1
- package/dist/rhf/index.d.cts +2 -2
- package/dist/rhf/index.d.ts +2 -2
- package/dist/rhf/index.js +1 -1
- package/dist/rhf/index.js.map +1 -1
- package/dist/server.d.cts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/styles/theme-light-override.css +55 -0
- package/dist/styles.css +194 -0
- package/dist/theme.css +4 -0
- package/dist/utilities.manifest.json +1 -1
- package/package.json +1 -1
- package/scripts/copy-assets.js +1 -0
|
@@ -359,6 +359,7 @@ interface FileUploadProps {
|
|
|
359
359
|
*/
|
|
360
360
|
declare function FileUpload({ value, onChange, onUrlChange, accept, maxSize, isDisabled, onUpload, className, showPreview, placeholder, }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
361
361
|
|
|
362
|
+
type HeadingLevel = 1 | 2;
|
|
362
363
|
interface RichTextEditorProps {
|
|
363
364
|
/**
|
|
364
365
|
* The initial content of the editor
|
|
@@ -384,6 +385,15 @@ interface RichTextEditorProps {
|
|
|
384
385
|
* ID for the editor element for label association
|
|
385
386
|
*/
|
|
386
387
|
id?: string;
|
|
388
|
+
/**
|
|
389
|
+
* Size variant controlling toolbar padding, content area height, and typography scale
|
|
390
|
+
*/
|
|
391
|
+
size?: Size;
|
|
392
|
+
/**
|
|
393
|
+
* Which heading levels to enable in the toolbar and editor.
|
|
394
|
+
* @default [1, 2]
|
|
395
|
+
*/
|
|
396
|
+
headingLevels?: HeadingLevel[];
|
|
387
397
|
}
|
|
388
398
|
/**
|
|
389
399
|
* RichTextEditor
|
|
@@ -391,6 +401,6 @@ interface RichTextEditorProps {
|
|
|
391
401
|
* A rich text editor with formatting capabilities including headings, bold, italic, lists, and links.
|
|
392
402
|
* Built on top of TipTap/ProseMirror.
|
|
393
403
|
*/
|
|
394
|
-
declare function RichTextEditor({ initialContent, onChange, className, isDisabled, placeholder, id, }: RichTextEditorProps): react_jsx_runtime.JSX.Element | null;
|
|
404
|
+
declare function RichTextEditor({ initialContent, onChange, className, isDisabled, placeholder, id, size, headingLevels, }: RichTextEditorProps): react_jsx_runtime.JSX.Element | null;
|
|
395
405
|
|
|
396
406
|
export { type BaseInputProps as B, ClearButton as C, type DateFieldProps as D, type FileUploadProps as F, Icon as I, Label as L, type RichTextEditorProps as R, type Size as S, DateField as a, FileUpload as b, RichTextEditor as c, type IconName as d, type BaseProps as e, Description as f, type DescriptionPlacement as g, type DescriptionProps as h, FieldError as i, type FieldErrorProps as j, FieldGroup as k, type FieldGroupProps as l, Input as m, type InputProps as n, type InputStyleProps as o, InputWrapper as p, type LabelProps as q, getFieldGroupStyles as r, getInputBackgroundStyles as s, getInputBaseStyles as t, getInputStateStyles as u, useInputFocus as v };
|
|
@@ -359,6 +359,7 @@ interface FileUploadProps {
|
|
|
359
359
|
*/
|
|
360
360
|
declare function FileUpload({ value, onChange, onUrlChange, accept, maxSize, isDisabled, onUpload, className, showPreview, placeholder, }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
361
361
|
|
|
362
|
+
type HeadingLevel = 1 | 2;
|
|
362
363
|
interface RichTextEditorProps {
|
|
363
364
|
/**
|
|
364
365
|
* The initial content of the editor
|
|
@@ -384,6 +385,15 @@ interface RichTextEditorProps {
|
|
|
384
385
|
* ID for the editor element for label association
|
|
385
386
|
*/
|
|
386
387
|
id?: string;
|
|
388
|
+
/**
|
|
389
|
+
* Size variant controlling toolbar padding, content area height, and typography scale
|
|
390
|
+
*/
|
|
391
|
+
size?: Size;
|
|
392
|
+
/**
|
|
393
|
+
* Which heading levels to enable in the toolbar and editor.
|
|
394
|
+
* @default [1, 2]
|
|
395
|
+
*/
|
|
396
|
+
headingLevels?: HeadingLevel[];
|
|
387
397
|
}
|
|
388
398
|
/**
|
|
389
399
|
* RichTextEditor
|
|
@@ -391,6 +401,6 @@ interface RichTextEditorProps {
|
|
|
391
401
|
* A rich text editor with formatting capabilities including headings, bold, italic, lists, and links.
|
|
392
402
|
* Built on top of TipTap/ProseMirror.
|
|
393
403
|
*/
|
|
394
|
-
declare function RichTextEditor({ initialContent, onChange, className, isDisabled, placeholder, id, }: RichTextEditorProps): react_jsx_runtime.JSX.Element | null;
|
|
404
|
+
declare function RichTextEditor({ initialContent, onChange, className, isDisabled, placeholder, id, size, headingLevels, }: RichTextEditorProps): react_jsx_runtime.JSX.Element | null;
|
|
395
405
|
|
|
396
406
|
export { type BaseInputProps as B, ClearButton as C, type DateFieldProps as D, type FileUploadProps as F, Icon as I, Label as L, type RichTextEditorProps as R, type Size as S, DateField as a, FileUpload as b, RichTextEditor as c, type IconName as d, type BaseProps as e, Description as f, type DescriptionPlacement as g, type DescriptionProps as h, FieldError as i, type FieldErrorProps as j, FieldGroup as k, type FieldGroupProps as l, Input as m, type InputProps as n, type InputStyleProps as o, InputWrapper as p, type LabelProps as q, getFieldGroupStyles as r, getInputBackgroundStyles as s, getInputBaseStyles as t, getInputStateStyles as u, useInputFocus as v };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default, { ComponentProps, ReactNode } from 'react';
|
|
3
3
|
import { Key, ValidationResult, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, CheckboxRenderProps, CheckboxGroupProps as CheckboxGroupProps$1, TextFieldProps as TextFieldProps$1, NumberFieldProps as NumberFieldProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, SwitchProps as SwitchProps$1, TimeFieldProps as TimeFieldProps$1, TimeValue } from 'react-aria-components';
|
|
4
|
-
import { S as Size, I as Icon, B as BaseInputProps } from './RichTextEditor-
|
|
4
|
+
import { S as Size, I as Icon, B as BaseInputProps } from './RichTextEditor-CxrunTg7.js';
|
|
5
5
|
|
|
6
6
|
interface Item {
|
|
7
7
|
id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default, { ComponentProps, ReactNode } from 'react';
|
|
3
3
|
import { Key, ValidationResult, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, CheckboxRenderProps, CheckboxGroupProps as CheckboxGroupProps$1, TextFieldProps as TextFieldProps$1, NumberFieldProps as NumberFieldProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, SwitchProps as SwitchProps$1, TimeFieldProps as TimeFieldProps$1, TimeValue } from 'react-aria-components';
|
|
4
|
-
import { S as Size, I as Icon, B as BaseInputProps } from './RichTextEditor-
|
|
4
|
+
import { S as Size, I as Icon, B as BaseInputProps } from './RichTextEditor-CxrunTg7.cjs';
|
|
5
5
|
|
|
6
6
|
interface Item {
|
|
7
7
|
id: string;
|
|
@@ -3,7 +3,7 @@ import * as React$1 from 'react';
|
|
|
3
3
|
import React__default, { ReactNode, ComponentType } from 'react';
|
|
4
4
|
import { ScaleTime, ScaleLinear } from 'd3-scale';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { d as IconName } from './RichTextEditor-
|
|
6
|
+
import { d as IconName } from './RichTextEditor-CxrunTg7.cjs';
|
|
7
7
|
import * as react_map_gl from 'react-map-gl';
|
|
8
8
|
import { ViewState, MapRef } from 'react-map-gl';
|
|
9
9
|
import { MeterProps as MeterProps$1 } from 'react-aria-components';
|
|
@@ -527,7 +527,7 @@ interface AvatarProps {
|
|
|
527
527
|
*/
|
|
528
528
|
declare function Avatar({ src, alt, firstName, lastName, fullName, onClick, size, shape, variant, className, status, bordered, piiEntity, }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
529
529
|
|
|
530
|
-
type DeviceState = "unknown" | "on" | "off" | "idle" | "charging" | "discharging" | "heat" | "eco" | "cool" | "auto";
|
|
530
|
+
type DeviceState = "unknown" | "on" | "off" | "idle" | "charging" | "discharging" | "heat" | "eco" | "cool" | "auto" | "connected" | "disconnected";
|
|
531
531
|
type MetricFormat = "percentage" | "kW" | "temperature";
|
|
532
532
|
declare const deviceStateMetricFormats: Record<DeviceState, MetricFormat | undefined>;
|
|
533
533
|
/**
|
|
@@ -3,7 +3,7 @@ import * as React$1 from 'react';
|
|
|
3
3
|
import React__default, { ReactNode, ComponentType } from 'react';
|
|
4
4
|
import { ScaleTime, ScaleLinear } from 'd3-scale';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { d as IconName } from './RichTextEditor-
|
|
6
|
+
import { d as IconName } from './RichTextEditor-CxrunTg7.js';
|
|
7
7
|
import * as react_map_gl from 'react-map-gl';
|
|
8
8
|
import { ViewState, MapRef } from 'react-map-gl';
|
|
9
9
|
import { MeterProps as MeterProps$1 } from 'react-aria-components';
|
|
@@ -527,7 +527,7 @@ interface AvatarProps {
|
|
|
527
527
|
*/
|
|
528
528
|
declare function Avatar({ src, alt, firstName, lastName, fullName, onClick, size, shape, variant, className, status, bordered, piiEntity, }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
529
529
|
|
|
530
|
-
type DeviceState = "unknown" | "on" | "off" | "idle" | "charging" | "discharging" | "heat" | "eco" | "cool" | "auto";
|
|
530
|
+
type DeviceState = "unknown" | "on" | "off" | "idle" | "charging" | "discharging" | "heat" | "eco" | "cool" | "auto" | "connected" | "disconnected";
|
|
531
531
|
type MetricFormat = "percentage" | "kW" | "temperature";
|
|
532
532
|
declare const deviceStateMetricFormats: Record<DeviceState, MetricFormat | undefined>;
|
|
533
533
|
/**
|