@omni-design/components 0.14.32 → 0.14.34

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.
@@ -0,0 +1,20 @@
1
+ export function DatePicker({ value, onChange, selectionMode, defaultMonth, month: monthProp, onMonthChange, minDate, maxDate, isDateDisabled, today: todayProp, weekStartsOn, color, locale, className, sx, ...props }: {
2
+ [x: string]: any;
3
+ value?: any;
4
+ onChange: any;
5
+ selectionMode?: string;
6
+ defaultMonth: any;
7
+ month: any;
8
+ onMonthChange: any;
9
+ minDate: any;
10
+ maxDate: any;
11
+ isDateDisabled: any;
12
+ today: any;
13
+ weekStartsOn?: number;
14
+ color?: string;
15
+ locale: any;
16
+ className?: string;
17
+ sx?: {};
18
+ }): JSX.Element;
19
+ export const DayCell: any;
20
+ export default DatePicker;
@@ -0,0 +1 @@
1
+ export { DatePicker, DayCell, default } from "./DatePicker";
@@ -0,0 +1,21 @@
1
+ /**
2
+ * ImagePlaceholder — Figma's `Image Placeholder` (7251:1985): where an image
3
+ * will go, before it has one.
4
+ *
5
+ * fill --Border-Variant (the file's Border-Variant at 20%; the CSS token
6
+ * carries that alpha), a light tint of the surface
7
+ * icon the photo glyph in --Quiet, as large as the box allows — the
8
+ * shorter side less a pixel each edge, centred — so the slot reads as
9
+ * "an image goes here" at any size
10
+ *
11
+ * It fills its parent; give the parent the size (or use Ratio, which uses
12
+ * this for an empty slot). Decorative: aria-hidden, since the empty slot says
13
+ * nothing a screen reader needs. Pass role="img" + aria-label if the absence
14
+ * itself is information ("No photo uploaded").
15
+ */
16
+ export function ImagePlaceholder({ className, sx, ...props }: {
17
+ [x: string]: any;
18
+ className?: string;
19
+ sx?: {};
20
+ }): JSX.Element;
21
+ export default ImagePlaceholder;
@@ -0,0 +1 @@
1
+ export { ImagePlaceholder, default } from "./ImagePlaceholder";
@@ -8,12 +8,13 @@ export function floatingLabelGeometry(sizeConfig: any, hasStartAdornment: any):
8
8
  restingY: number;
9
9
  shrunkY: number;
10
10
  };
11
- export function Input({ variant, size, label, labelPosition, placeholder, helperText, validation, validationMessage, disabled, id: idProp, value, defaultValue, onChange, name, type, multiline, rows, maxRows, resize, startAdornment, endAdornment, fullWidth, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-required": ariaRequired, "aria-invalid": ariaInvalid, inputProps: inputPropsProp, ...props }: {
11
+ export function Input({ variant, size, label, labelPosition, labelType, placeholder, helperText, validation, validationMessage, disabled, id: idProp, value, defaultValue, onChange, name, type, multiline, rows, maxRows, resize, startAdornment, endAdornment, fullWidth, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-required": ariaRequired, "aria-invalid": ariaInvalid, inputProps: inputPropsProp, onFocus, onBlur, ...props }: {
12
12
  [x: string]: any;
13
13
  variant?: string;
14
14
  size?: string;
15
15
  label: any;
16
16
  labelPosition?: string;
17
+ labelType?: string;
17
18
  placeholder: any;
18
19
  helperText: any;
19
20
  validation: any;
@@ -40,11 +41,14 @@ export function Input({ variant, size, label, labelPosition, placeholder, helper
40
41
  "aria-required": any;
41
42
  "aria-invalid": any;
42
43
  inputProps?: {};
44
+ onFocus: any;
45
+ onBlur: any;
43
46
  }): JSX.Element;
44
47
  export namespace FLOATING_SIZE_MAP {
45
48
  namespace small {
46
49
  let height: string;
47
50
  let fontSize: string;
51
+ let fontPx: number;
48
52
  let labelSize: string;
49
53
  let padding: string;
50
54
  let padTop: number;
@@ -57,6 +61,8 @@ export namespace FLOATING_SIZE_MAP {
57
61
  export { height_1 as height };
58
62
  let fontSize_1: string;
59
63
  export { fontSize_1 as fontSize };
64
+ let fontPx_1: number;
65
+ export { fontPx_1 as fontPx };
60
66
  let labelSize_1: string;
61
67
  export { labelSize_1 as labelSize };
62
68
  let padding_1: string;
@@ -75,6 +81,8 @@ export namespace FLOATING_SIZE_MAP {
75
81
  export { height_2 as height };
76
82
  let fontSize_2: string;
77
83
  export { fontSize_2 as fontSize };
84
+ let fontPx_2: number;
85
+ export { fontPx_2 as fontPx };
78
86
  let labelSize_2: string;
79
87
  export { labelSize_2 as labelSize };
80
88
  let padding_2: string;
@@ -107,7 +115,7 @@ export namespace FLOATING_SIZE_MAP {
107
115
  * centred `small` and left `large` 4px high — the error grew as the field got
108
116
  * TALLER. Two constants, two errors, running in opposite directions.
109
117
  */
110
- export const LABEL_LINE_HEIGHT: 1.4375;
118
+ export const LABEL_LINE_HEIGHT: 1.5;
111
119
  export namespace FLOATING_LABEL_STYLE {
112
120
  export namespace small_1 {
113
121
  let resting: string;
@@ -135,7 +143,7 @@ export namespace FLOATING_LABEL_STYLE {
135
143
  * the label's x offset. Split across two numbers (a 4px margin plus a 4px
136
144
  * input padding) they drifted apart — the label sat 4px off the text it is
137
145
  * supposed to be the label FOR. One constant, used by both. */
138
- export const ADORNMENT_GAP: 8;
146
+ export const ADORNMENT_GAP: 12;
139
147
  export function PrimaryOutlineInput(p: any): JSX.Element;
140
148
  export function SecondaryOutlineInput(p: any): JSX.Element;
141
149
  export function TertiaryOutlineInput(p: any): JSX.Element;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * InputDecorator — Figma's `Input Decorator` (8590:24802): the ghost button an
3
+ * Input carries at its end (clear, show password, a unit picker).
4
+ *
5
+ * It IS a ghost Button, with the rules a button inside a field needs:
6
+ * corners square — it sits inside the field's padding, not on its edge
7
+ * hover the surface's --Hover with the Level-1 lift, and NO rise: a
8
+ * button inside a field that jumps a pixel moves the field's text
9
+ * focus a 3px ring INSIDE the button (2px in), as the Field Button —
10
+ * the field clips anything drawn outside it
11
+ *
12
+ * <TextInput endAdornment={<InputDecorator aria-label="Clear"><BackspaceIcon /></InputDecorator>} />
13
+ * <InputDecorator endDecorator={<ExpandMoreIcon />}>USD</InputDecorator>
14
+ *
15
+ * Icon-only when it has an aria-label and no text — the same rule Button uses.
16
+ */
17
+ export const InputDecorator: any;
18
+ export default InputDecorator;
@@ -1,2 +1,3 @@
1
1
  export * from "./Input";
2
2
  export { default } from "./Input";
3
+ export { InputDecorator } from "./InputDecorator";
@@ -0,0 +1,30 @@
1
+ /**
2
+ * LinkGroup — Figma's `Hotlink Group` (3156:5504): links in a row with a bar
3
+ * between each, as in a footer or a "Privacy | Terms | Help" line.
4
+ *
5
+ * <LinkGroup aria-label="Legal">
6
+ * <Link href="/privacy">Privacy</Link>
7
+ * <Link href="/terms">Terms</Link>
8
+ * </LinkGroup>
9
+ *
10
+ * GAP is Sizing-2 (16) on both sides of every separator — the file's outer
11
+ * row. (Inside its Link Slot the file uses Sizing-1, 8, which makes the
12
+ * spacing uneven partway along; one gap is the intent.)
13
+ *
14
+ * The SEPARATOR is decoration: Border-Variant, the system's no-contrast
15
+ * decorative tone, and aria-hidden, so a screen reader hears a list of links
16
+ * rather than "Privacy, vertical bar, Terms".
17
+ *
18
+ * A list, so the count is announced ("list, 4 items"). Give it an aria-label
19
+ * and it is wrapped in a <nav> landmark — right for a footer's links, wrong
20
+ * for links inside a paragraph, so it is opt-in.
21
+ */
22
+ export function LinkGroup({ children, separator, className, sx, "aria-label": ariaLabel, ...props }: {
23
+ [x: string]: any;
24
+ children: any;
25
+ separator?: string;
26
+ className?: string;
27
+ sx?: {};
28
+ "aria-label": any;
29
+ }): JSX.Element;
30
+ export default LinkGroup;
@@ -0,0 +1 @@
1
+ export { LinkGroup, default } from "./LinkGroup";
@@ -0,0 +1,2 @@
1
+ export const FieldButton: any;
2
+ export default FieldButton;
@@ -1,2 +1,3 @@
1
+ export { FieldButton } from "./FieldButton";
1
2
  export { NumberFieldShowcase } from "./NumberFieldShowcase";
2
3
  export { NumberField, default } from "./NumberField";
@@ -15,4 +15,12 @@ export function Rail({ items, sections, value: controlledValue, defaultValue, on
15
15
  className?: string;
16
16
  sx?: {};
17
17
  }): JSX.Element;
18
+ export function RailItem({ item, selected, expanded, labelStyle, variant, onClick }: {
19
+ item: any;
20
+ selected: any;
21
+ expanded: any;
22
+ labelStyle: any;
23
+ variant?: string;
24
+ onClick: any;
25
+ }): JSX.Element;
18
26
  export default Rail;
@@ -1,2 +1,2 @@
1
1
  export { RailShowcase } from "./RailShowcase";
2
- export { Rail, default } from "./Rail";
2
+ export { Rail, RailItem, default } from "./Rail";
@@ -8,13 +8,14 @@ export { IconBadgeShowcase } from "./IconBadge/IconBadgeShowcase";
8
8
  export { Button } from "./Button";
9
9
  export { ButtonGroup } from "./ButtonGroup";
10
10
  export { ToggleButton } from "./ToggleButton";
11
- export { Input as TextInput } from "./Input";
12
11
  export { FieldGroup } from "./FieldGroup";
13
12
  export { TextAreaField } from "./TextAreaField";
14
13
  export { Checkbox } from "./Checkbox";
15
14
  export { Chip } from "./Chip";
16
15
  export { Container } from "./Container";
17
16
  export { Grid } from "./Grid";
17
+ export { LinkGroup } from "./LinkGroup";
18
+ export { ImagePlaceholder } from "./ImagePlaceholder";
18
19
  export { Paper } from "./Paper";
19
20
  export { Popover } from "./Popover";
20
21
  export { Modal } from "./Modal";
@@ -35,10 +36,11 @@ export { StateMessage } from "./StateMessage";
35
36
  export { Typography, CAP_HEIGHT_TRIM, Heading, DisplayLarge, DisplayMedium, AltDisplayLarge, AltDisplayMedium, AltDisplaySmall, DisplaySmall, H1, H2, H3, H4, H5, H6, Body, Body1, Body2, BodySemibold, BodyBold, BodySmall, BodySmallSemibold, BodySmallBold, BodyLarge, BodyLargeSemibold, BodyLargeBold, Caption, CaptionBold, Subtitle, Subtitle1, Subtitle2, SubtitleSmall, SubtitleMedium, SubtitleLarge, Legal, LegalSemibold, Label, LabelExtraSmall, MobileNavLabel, LabelSmall, LabelLarge, Eyebrow, EyebrowSmall, EyebrowMedium, EyebrowLarge, Overline, OverlineSmall, OverlineMedium, OverlineLarge, NumberSmall, NumberMedium, NumberLarge, Button as ButtonText, ButtonSmall } from "./Typography";
36
37
  export { Icon, IconShowcase } from "./Icon";
37
38
  export { Fab, FabShowcase } from "./Fab";
38
- export { Rail, RailShowcase } from "./Rail";
39
+ export { Rail, RailItem, RailShowcase } from "./Rail";
39
40
  export { Toolbar, ToolbarShowcase } from "./Toolbar";
40
- export { NumberField, NumberFieldShowcase } from "./NumberField";
41
+ export { NumberField, FieldButton, NumberFieldShowcase } from "./NumberField";
41
42
  export { ToggleButtonGroup, DefaultToggleButtonGroup, PrimaryToggleButtonGroup, SecondaryToggleButtonGroup, TertiaryToggleButtonGroup, NeutralToggleButtonGroup, BlackWhiteToggleButtonGroup, InfoToggleButtonGroup, SuccessToggleButtonGroup, WarningToggleButtonGroup, ErrorToggleButtonGroup } from "./ToggleButtonGroup/ToggleButtonGroup";
43
+ export { Input as TextInput, InputDecorator } from "./Input";
42
44
  export { TextField, EmailTextField, PasswordTextField, SearchTextField, NumberTextField, PhoneTextField, URLTextField, TextArea, TextFieldGroup } from "./TextField";
43
45
  export { FormLabel, FORM_LABEL_MARKERS } from "./FormLabel";
44
46
  export { InputMessage, INPUT_MESSAGE_TYPES, MESSAGE_ICONS } from "./InputMessage";
@@ -62,6 +64,7 @@ export { Pagination, PaginationShowcase } from "./Pagination";
62
64
  export { Dropdown, MenuButton, Menu, MenuItem, MenuDivider, MenuShowcase } from "./Menu";
63
65
  export { BottomNavigation, BottomNavigationShowcase } from "./BottomNavigation";
64
66
  export { Stepper, Step, StepperShowcase, useStepperContext } from "./Stepper";
67
+ export { DatePicker, DayCell } from "./DatePicker";
65
68
  export { SpeedDial, SpeedDialShowcase } from "./SpeedDial";
66
69
  export { Card, SelectableCard } from "./Card";
67
70
  export { Gradient, LinearGradient, RadialGradient, MeshGradient, MeshCardGradient } from "./Gradient";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omni-design/components",
3
- "version": "0.14.32",
3
+ "version": "0.14.34",
4
4
  "description": "DynoDesign adaptive component library — token-driven React components with customizable CSS theming",
5
5
  "author": "Lise Noble",
6
6
  "license": "Apache-2.0",