@jobber/components 8.2.0 → 8.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.
Files changed (56) hide show
  1. package/ActivityIndicator.d.ts +1 -0
  2. package/ActivityIndicator.js +17 -0
  3. package/dist/ActivityIndicator/ActivityIndicator.d.ts +38 -0
  4. package/dist/ActivityIndicator/index.cjs +9 -0
  5. package/dist/ActivityIndicator/index.d.ts +2 -0
  6. package/dist/ActivityIndicator/index.mjs +3 -0
  7. package/dist/ActivityIndicator-cjs.js +27 -0
  8. package/dist/ActivityIndicator-es.js +25 -0
  9. package/dist/Autocomplete/Autocomplete.d.ts +2 -3
  10. package/dist/Autocomplete/Autocomplete.types.d.ts +4 -9
  11. package/dist/Autocomplete/index.cjs +7 -8
  12. package/dist/Autocomplete/index.d.ts +3 -4
  13. package/dist/Autocomplete/index.mjs +6 -7
  14. package/dist/DataList/components/DataListSearch/index.cjs +1 -2
  15. package/dist/DataList/components/DataListSearch/index.mjs +1 -2
  16. package/dist/DataList/index.cjs +1 -2
  17. package/dist/DataList/index.mjs +1 -2
  18. package/dist/DataListSearch-cjs.js +12 -6
  19. package/dist/DataListSearch-es.js +11 -5
  20. package/dist/InputDate/index.cjs +1 -2
  21. package/dist/InputDate/index.mjs +1 -2
  22. package/dist/InputDate-cjs.js +2 -2
  23. package/dist/InputDate-es.js +2 -2
  24. package/dist/InputText/InputText.d.ts +2 -70
  25. package/dist/InputText/InputText.types.d.ts +2 -30
  26. package/dist/InputText/index.cjs +12 -268
  27. package/dist/InputText/index.d.ts +2 -5
  28. package/dist/InputText/index.mjs +11 -271
  29. package/dist/InputText/useInputTextActions.d.ts +2 -2
  30. package/dist/InputText-cjs.js +199 -0
  31. package/dist/InputText-es.js +197 -0
  32. package/dist/Spinner/Spinner.d.ts +6 -0
  33. package/dist/Spinner-cjs.js +3 -0
  34. package/dist/Spinner-es.js +3 -0
  35. package/dist/docs/ActivityIndicator/ActivityIndicator.md +67 -0
  36. package/dist/docs/Autocomplete/AutocompleteV1.md +1 -2
  37. package/dist/docs/Autocomplete/AutocompleteV2.md +1 -1
  38. package/dist/docs/Banner/Banner.md +2 -2
  39. package/dist/docs/Box/Box.md +2 -2
  40. package/dist/docs/Glimmer/Glimmer.md +1 -1
  41. package/dist/docs/Icon/Icon.md +1 -1
  42. package/dist/docs/InputText/InputText.md +152 -106
  43. package/dist/docs/Menu/Menu.md +1 -1
  44. package/dist/docs/Modal/Modal.md +1 -1
  45. package/dist/docs/Spinner/Spinner.md +9 -1
  46. package/dist/docs/Stack/Stack.md +1 -1
  47. package/dist/docs/index.md +1 -0
  48. package/dist/docs/usage-guidelines/usage-guidelines.md +0 -2
  49. package/dist/index.cjs +5 -3
  50. package/dist/index.d.mts +1 -0
  51. package/dist/index.d.ts +1 -0
  52. package/dist/index.mjs +3 -2
  53. package/dist/styles.css +279 -0
  54. package/dist/utils/meta/meta.json +1 -0
  55. package/package.json +8 -3
  56. package/dist/InputText/InputText.rebuilt.d.ts +0 -3
@@ -0,0 +1,197 @@
1
+ import React__default, { forwardRef, useMemo, useId } from 'react';
2
+ import { useSafeLayoutEffect } from '@jobber/hooks';
3
+ import { g as formFieldStyles, c as FormFieldWrapper } from './FormFieldWrapper-es.js';
4
+ import { F as FormFieldPostFix } from './FormFieldPostFix-es.js';
5
+ import 'classnames';
6
+ import { u as useAtlantisFormFieldName } from './useAtlantisFormFieldName-es.js';
7
+ import './tslib.es6-es.js';
8
+ import 'react-hook-form';
9
+ import { m as mergeRefs } from './mergeRefs-es.js';
10
+ import './Button-es.js';
11
+ import '@jobber/design';
12
+ import { f as filterDataAttributes } from './filterDataAttributes-es.js';
13
+
14
+ /**
15
+ * Hook for resizing a textarea based on its content. The textarea will grow up to the max number of rows specified.
16
+ */
17
+ function useTextAreaResize({ rows, value, inputRef, wrapperRef, }) {
18
+ const rowRange = getRowRange(rows);
19
+ useSafeLayoutEffect(() => {
20
+ if (inputRef &&
21
+ inputRef.current instanceof HTMLTextAreaElement &&
22
+ wrapperRef &&
23
+ wrapperRef.current instanceof HTMLDivElement) {
24
+ resize();
25
+ }
26
+ }, [inputRef.current, wrapperRef.current]);
27
+ // When the consumer passes a new controlled value, we need to recheck the size.
28
+ // The timeout ensures the DOM has a enough time to render the new text before
29
+ // we access the height.
30
+ useSafeLayoutEffect(() => {
31
+ setTimeout(() => {
32
+ if (inputRef &&
33
+ inputRef.current instanceof HTMLTextAreaElement &&
34
+ wrapperRef &&
35
+ wrapperRef.current instanceof HTMLDivElement) {
36
+ resize();
37
+ }
38
+ }, 0);
39
+ }, [value]);
40
+ function resize() {
41
+ if (inputRef &&
42
+ inputRef.current instanceof HTMLTextAreaElement &&
43
+ wrapperRef &&
44
+ (wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current) instanceof HTMLDivElement) {
45
+ if (rowRange.min === rowRange.max)
46
+ return;
47
+ inputRef.current.style.flexBasis = "auto";
48
+ wrapperRef.current.style.height = "auto";
49
+ inputRef.current.style.flexBasis =
50
+ textAreaHeight(inputRef.current) + "px";
51
+ }
52
+ }
53
+ function textAreaHeight(textArea) {
54
+ const { lineHeight, borderBottomWidth, borderTopWidth, paddingBottom, paddingTop, } = window.getComputedStyle(textArea);
55
+ const maxHeight = rowRange.max * parseFloat(lineHeight) +
56
+ parseFloat(borderTopWidth) +
57
+ parseFloat(borderBottomWidth) +
58
+ parseFloat(paddingTop) +
59
+ parseFloat(paddingBottom);
60
+ const scrollHeight = textArea.scrollHeight +
61
+ parseFloat(borderTopWidth) +
62
+ parseFloat(borderBottomWidth);
63
+ return Math.min(scrollHeight, maxHeight);
64
+ }
65
+ return { resize, rowRange };
66
+ }
67
+ function getRowRange(rows) {
68
+ if (rows === undefined) {
69
+ return { min: 3, max: 3 };
70
+ }
71
+ else if (typeof rows === "object") {
72
+ return { min: rows.min, max: rows.max };
73
+ }
74
+ else {
75
+ return { min: rows, max: rows };
76
+ }
77
+ }
78
+
79
+ /**
80
+ * Combines the actions on the InputText such as onChange, onEnter, onFocus, onBlur, and onClear to forward information to the consumers of the InputText.
81
+ * DO not repeat this pattern. We are doing this as a proof of concept relating to the refactoring of Form inputs to see what can be removed.
82
+ */
83
+ function useInputTextActions({ onChange, inputRef, onEnter, onFocus, onBlur, onKeyDown, onKeyUp, onMouseDown, onMouseUp, onPointerDown, onPointerUp, onClick, }) {
84
+ function handleClear() {
85
+ var _a;
86
+ onChange && onChange("");
87
+ (_a = inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
88
+ }
89
+ function handleChange(event) {
90
+ const newValue = event.currentTarget.value;
91
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue, event);
92
+ }
93
+ function handleKeyDown(event) {
94
+ onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
95
+ if (!onEnter)
96
+ return;
97
+ if (event.key !== "Enter")
98
+ return;
99
+ if (event.shiftKey || event.ctrlKey)
100
+ return;
101
+ event.preventDefault();
102
+ onEnter && onEnter(event);
103
+ }
104
+ function handleKeyUp(event) {
105
+ onKeyUp === null || onKeyUp === void 0 ? void 0 : onKeyUp(event);
106
+ }
107
+ function handleFocus(event) {
108
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
109
+ }
110
+ function handleBlur(event) {
111
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
112
+ }
113
+ function handleMouseDown(event) {
114
+ onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(event);
115
+ }
116
+ function handleMouseUp(event) {
117
+ onMouseUp === null || onMouseUp === void 0 ? void 0 : onMouseUp(event);
118
+ }
119
+ function handlePointerDown(event) {
120
+ onPointerDown === null || onPointerDown === void 0 ? void 0 : onPointerDown(event);
121
+ }
122
+ function handlePointerUp(event) {
123
+ onPointerUp === null || onPointerUp === void 0 ? void 0 : onPointerUp(event);
124
+ }
125
+ function handleClick(event) {
126
+ onClick === null || onClick === void 0 ? void 0 : onClick(event);
127
+ }
128
+ return {
129
+ handleClear,
130
+ handleChange,
131
+ handleKeyDown,
132
+ handleKeyUp,
133
+ handleFocus,
134
+ handleBlur,
135
+ handleMouseDown,
136
+ handleMouseUp,
137
+ handlePointerDown,
138
+ handlePointerUp,
139
+ handleClick,
140
+ };
141
+ }
142
+
143
+ const InputText = forwardRef(function InputTextInternal(props, inputRef) {
144
+ var _a, _b, _c;
145
+ const inputTextRef = React__default.useRef(null), wrapperRef = React__default.useRef(null);
146
+ const id = useInputTextId(props);
147
+ const { rowRange } = useTextAreaResize({
148
+ rows: props.rows,
149
+ value: props.value,
150
+ inputRef: inputTextRef,
151
+ wrapperRef: wrapperRef,
152
+ });
153
+ const { name } = useAtlantisFormFieldName({
154
+ nameProp: props.name,
155
+ id: id,
156
+ });
157
+ const { handleChange, handleBlur, handleFocus, handleKeyDown, handleKeyUp, handleClear, handleMouseDown, handleMouseUp, handlePointerDown, handlePointerUp, handleClick, } = useInputTextActions({
158
+ onChange: props.onChange,
159
+ onBlur: props.onBlur,
160
+ onFocus: props.onFocus,
161
+ onMouseDown: props.onMouseDown,
162
+ onMouseUp: props.onMouseUp,
163
+ onPointerDown: props.onPointerDown,
164
+ onPointerUp: props.onPointerUp,
165
+ onClick: props.onClick,
166
+ onKeyDown: props.onKeyDown,
167
+ onKeyUp: props.onKeyUp,
168
+ onEnter: props.onEnter,
169
+ inputRef: inputTextRef,
170
+ });
171
+ const descriptionIdentifier = `descriptionUUID--${id}`;
172
+ const descriptionVisible = props.description && !props.inline;
173
+ const isInvalid = Boolean(props.error || props.invalid);
174
+ const dataAttrs = filterDataAttributes(props);
175
+ const mergedRef = useMemo(() => mergeRefs([inputRef, inputTextRef]), []);
176
+ // Shared props for both TextArea and TextInput
177
+ const commonInputProps = Object.assign({ id,
178
+ name, className: formFieldStyles.input, value: props.value, disabled: props.disabled, readOnly: props.readOnly, autoFocus: props.autoFocus, autoComplete: props.autoComplete, inputMode: props.inputMode, tabIndex: props.tabIndex, maxLength: props.maxLength, required: props.required, role: props.role, "aria-label": props["aria-label"], "aria-describedby": descriptionVisible
179
+ ? descriptionIdentifier
180
+ : props["aria-describedby"], "aria-invalid": isInvalid ? true : undefined, "aria-controls": props["aria-controls"], "aria-expanded": props["aria-expanded"], "aria-activedescendant": props["aria-activedescendant"], "aria-autocomplete": props["aria-autocomplete"], "aria-required": props["aria-required"], onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, onMouseDown: handleMouseDown, onMouseUp: handleMouseUp, onPointerDown: handlePointerDown, onPointerUp: handlePointerUp, onClick: handleClick, ref: mergedRef }, dataAttrs);
181
+ return (React__default.createElement(FormFieldWrapper, { disabled: props.disabled, size: props.size, align: props.align, inline: props.inline, name: name, wrapperRef: wrapperRef, error: (_a = props.error) !== null && _a !== void 0 ? _a : "", invalid: Boolean(props.error || props.invalid), identifier: id, descriptionIdentifier: descriptionIdentifier, description: props.description, clearable: (_b = props.clearable) !== null && _b !== void 0 ? _b : "never", onClear: handleClear, type: props.multiline ? "textarea" : "text", placeholder: props.placeholder, value: props.value, prefix: props.prefix, suffix: props.suffix, readonly: props.readOnly, rows: rowRange.min, toolbar: props.toolbar, toolbarVisibility: props.toolbarVisibility, showMiniLabel: props.showMiniLabel },
182
+ React__default.createElement(React__default.Fragment, null,
183
+ props.multiline ? (React__default.createElement(TextArea, Object.assign({}, commonInputProps, { rows: rowRange.min }))) : (React__default.createElement(TextInput, Object.assign({}, commonInputProps, { pattern: props.pattern }))),
184
+ React__default.createElement(FormFieldPostFix, { variation: "spinner", visible: (_c = props.loading) !== null && _c !== void 0 ? _c : false }))));
185
+ });
186
+ function useInputTextId(props) {
187
+ const generatedId = useId();
188
+ return props.id || generatedId;
189
+ }
190
+ const TextArea = forwardRef(function TextArea(props, ref) {
191
+ return React__default.createElement("textarea", Object.assign({}, props, { ref: ref }));
192
+ });
193
+ const TextInput = forwardRef(function TextInput(props, ref) {
194
+ return React__default.createElement("input", Object.assign({}, props, { ref: ref }));
195
+ });
196
+
197
+ export { InputText as I };
@@ -1,4 +1,7 @@
1
1
  import React from "react";
2
+ /**
3
+ * @deprecated Use `ActivityIndicator` instead.
4
+ */
2
5
  interface SpinnerProps {
3
6
  /**
4
7
  * Specifies the size of the spinner
@@ -12,5 +15,8 @@ interface SpinnerProps {
12
15
  */
13
16
  readonly inline?: boolean;
14
17
  }
18
+ /**
19
+ * @deprecated Use `ActivityIndicator` instead.
20
+ */
15
21
  export declare function Spinner({ size, inline }: SpinnerProps): React.JSX.Element;
16
22
  export {};
@@ -5,6 +5,9 @@ var classnames = require('classnames');
5
5
 
6
6
  var styles = {"spinner":"_6hfmGZoXNyg-","animationSpin":"aT3CETCJ4hQ-","small":"bMfynkzmlL4-","inline":"NA68eWblbLo-","spinning":"aCBq1WrkI4M-"};
7
7
 
8
+ /**
9
+ * @deprecated Use `ActivityIndicator` instead.
10
+ */
8
11
  function Spinner({ size = "base", inline }) {
9
12
  const spinnerStyles = classnames(styles.spinner, {
10
13
  [styles.small]: size === "small",
@@ -3,6 +3,9 @@ import classnames from 'classnames';
3
3
 
4
4
  var styles = {"spinner":"_6hfmGZoXNyg-","animationSpin":"aT3CETCJ4hQ-","small":"bMfynkzmlL4-","inline":"NA68eWblbLo-","spinning":"aCBq1WrkI4M-"};
5
5
 
6
+ /**
7
+ * @deprecated Use `ActivityIndicator` instead.
8
+ */
6
9
  function Spinner({ size = "base", inline }) {
7
10
  const spinnerStyles = classnames(styles.spinner, {
8
11
  [styles.small]: size === "small",
@@ -0,0 +1,67 @@
1
+ # Activity Indicator
2
+
3
+ `ActivityIndicator` is used to communicate an **indeterminate** activity the
4
+ user cannot directly control or measure — loading, fetching, or waiting on an
5
+ external system.
6
+
7
+ Use `ActivityIndicator` when the loading time or fraction of progress is
8
+ unknown. If you know the fraction of progress (for example, "3 of 4 files
9
+ uploaded"), use `ProgressBar` instead. A `ProgressIndicator` counterpart that
10
+ will subsume `ProgressBar` under the new naming is forthcoming.
11
+
12
+ ## Design & usage guidelines
13
+
14
+ The default `ActivityIndicator` size is `base` (32px) and can be used in most
15
+ cases. The `small` size (16px) should be used on individual elements of an
16
+ interface (e.g. inside a `Button` or `Card`) or when sitting next to short
17
+ inline text.
18
+
19
+ Layout is the consumer's responsibility — `ActivityIndicator` does not expose
20
+ an `inline` prop. Place it inside your own flex / inline-block container, or
21
+ pass a `className` / `style`, to control surrounding layout.
22
+
23
+ ## Accessibility
24
+
25
+ `ActivityIndicator` announces itself politely to assistive technology:
26
+
27
+ * `role="status"` marks the element as a polite live region, appropriate for
28
+ a non-urgent loading state.
29
+ * `aria-label` defaults to the literal English string `"Loading"`. Pass a
30
+ custom `ariaLabel` to localize or to describe the specific activity
31
+ (e.g. `ariaLabel="Uploading file"`).
32
+
33
+ The indicator does not participate in the keyboard tab order.
34
+
35
+ ### Reduced motion
36
+
37
+ When the user's operating system reports
38
+ [`prefers-reduced-motion: reduce`](https://developer.mozilla.org/docs/Web/CSS/@media/prefers-reduced-motion),
39
+ the indicator hides its rocking and rotating layers, repaints a single
40
+ static ring in the icon foreground colour, and gently pulses its opacity so
41
+ the indicator still reads as "busy" without rotational motion.
42
+
43
+ ## Relationship to Spinner
44
+
45
+ The legacy [Spinner](../Spinner/Spinner.md) component remains available and
46
+ unchanged. New code should prefer `ActivityIndicator`. A follow-up change is
47
+ expected to deprecate `Spinner` in favour of `ActivityIndicator`.
48
+
49
+ ## Mobile
50
+
51
+ On mobile (`@jobber/components-native`), `ActivityIndicator` uses the
52
+ [ActivityIndicator](https://reactnative.dev/docs/activityIndicator) core
53
+ component from React Native.
54
+
55
+ ## Mockup
56
+
57
+
58
+ ## Props
59
+
60
+ ### Web
61
+
62
+ | Prop | Type | Required | Default | Description |
63
+ |------|------|----------|---------|-------------|
64
+ | `ariaLabel` | `string` | No | `Loading` | Accessible label exposed via `aria-label` on the root element. Override to localize or to describe the specific activ... |
65
+ | `className` | `string` | No | — | Custom class name merged onto the root element alongside the component's own classes. |
66
+ | `size` | `"base" | "small"` | No | `base` | Visual size. `base` renders at 32px, `small` renders at 16px. |
67
+ | `style` | `CSSProperties` | No | — | Custom inline styles applied to the root element. |
@@ -1322,8 +1322,7 @@ is, focus the extra element and if not it will focus the input.
1322
1322
  | `onBlur` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Blur callback. |
1323
1323
  | `onFocus` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Focus callback. |
1324
1324
  | `prefix` | `Affix` | No | — | Adds a prefix label and icon to the field |
1325
- | `ref` | `Ref<InputTextRef>` | No | — | Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (... |
1325
+ | `ref` | `Ref<HTMLInputElement>` | No | — | Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (... |
1326
1326
  | `size` | `"large" | "small"` | No | — | Adjusts the interface to either have small or large spacing. |
1327
1327
  | `suffix` | `{ onClick: () => void; readonly ariaLabel: string; readonly icon: IconNames; readonly label?: string; } | { onClick?: never; ariaLabel?: never; readonly label?: string; readonly icon?: IconNames; }` | No | — | Adds a suffix label and icon with an optional action to the field |
1328
- | `validations` | `RegisterOptions` | No | — | Validations to run on the input. |
1329
1328
  | `version` | `1` | No | `1` | Version of the component to use. |
@@ -781,7 +781,7 @@ This is not yet implemented fully. Avoid using.
781
781
  | `customRenderAction` | `(args: { value: MenuAction<ExtraProps>; isActive: boolean; origin?: ActionOrigin; }) => ReactNode` | No | — | Render prop to customize the rendering of an action. @param args.value - The action value including all extra keys fr... |
782
782
  | `customRenderFooter` | `(args: { value: MenuFooter<ExtraProps>; isActive?: boolean; }) => ReactNode` | No | — | Render prop to customize the rendering of footer items. |
783
783
  | `customRenderHeader` | `(args: { value: MenuHeader<ExtraProps>; isActive?: boolean; }) => ReactNode` | No | — | Render prop to customize the rendering of header items. |
784
- | `customRenderInput` | `(props: { inputRef: Ref<HTMLInputElement | HTMLTextAreaElement>; inputProps: InputTextRebuiltProps; }) => ReactNode` | No | — | Render prop to customize the rendering of the input. @param props.inputRef - The ref to the input element @param prop... |
784
+ | `customRenderInput` | `(props: { inputRef: Ref<HTMLInputElement | HTMLTextAreaElement>; inputProps: InputTextProps; }) => ReactNode` | No | — | Render prop to customize the rendering of the input. @param props.inputRef - The ref to the input element @param prop... |
785
785
  | `customRenderLoading` | `ReactNode` | No | — | Custom render prop for content to render when `loading` is true. |
786
786
  | `customRenderOption` | `(args: { value: Value; isActive: boolean; isSelected: boolean; }) => ReactNode` | No | — | Render prop to customize the rendering of an option. @param args.value - The option value including all extra keys fr... |
787
787
  | `customRenderSection` | `(section: MenuSection<Value, ExtraProps, ExtraProps>) => ReactNode` | No | — | Render prop to customize the rendering of a section. @param args.section - The section value including all extra keys... |
@@ -441,8 +441,8 @@ Use `UNSAFE_style` to apply inline custom styles to the Banner.
441
441
 
442
442
  | Prop | Type | Required | Default | Description |
443
443
  |------|------|----------|---------|-------------|
444
- | `backgroundColor` | `"event" | "invoice" | "job" | "quote" | "request" | "task" | "text" | "visit" | "warning" | "icon" | "disabled" | "success" | "base-grey--100" | "base-grey--200" | "base-grey--300" | ... 269 more ... | "client--onSurface"` | No | — | Sets the background color of the icon. |
445
- | `color` | `"task" | "text" | "warning" | "icon" | "disabled" | "success" | "blue" | "green" | "yellow" | "red" | "grey" | "white" | "greyBlue" | "lightBlue" | "orange" | "navy" | "interactive" | ... 32 more ... | "brandHighlight"` | No | — | Determines the color of the icon. Some icons have a default system colour like quotes, jobs, and invoices. Others tha... |
444
+ | `backgroundColor` | `"event" | "invoice" | "job" | "quote" | "request" | "task" | "text" | "visit" | "warning" | "icon" | "success" | "base-grey--100" | "base-grey--200" | "base-grey--300" | "base-grey--400" | ... 269 more ... | "client--onSurface"` | No | — | Sets the background color of the icon. |
445
+ | `color` | `"task" | "text" | "warning" | "icon" | "success" | "blue" | "green" | "yellow" | "red" | "grey" | "white" | "greyBlue" | "lightBlue" | "orange" | "navy" | "interactive" | "destructive" | ... 32 more ... | "brandHighlight"` | No | — | Determines the color of the icon. Some icons have a default system colour like quotes, jobs, and invoices. Others tha... |
446
446
  | `customColor` | `string` | No | — | Sets a custom color for the icon. Can be a rgb() or hex value. |
447
447
  | `name` | `IconNames` | No | — | The icon to show. |
448
448
  | `size` | `"base" | "large" | "small"` | No | `base` | Changes the size to small or large. |
@@ -206,9 +206,9 @@ defaults to respecting theme/modes.
206
206
  | `alignItems` | `AlignItems` | No | — | This feature is well established and works across many devices and browser versions. It’s been available across brows... |
207
207
  | `alignSelf` | `AlignSelf` | No | — | This feature is well established and works across many devices and browser versions. It’s been available across brows... |
208
208
  | `as` | `"article" | "aside" | "div" | "main" | "section" | "span"` | No | `div` | |
209
- | `background` | `"event" | "invoice" | "job" | "quote" | "request" | "task" | "text" | "visit" | "warning" | "icon" | "disabled" | "success" | "base-grey--100" | "base-grey--200" | "base-grey--300" | ... 269 more ... | "client--onSurface"` | No | — | |
209
+ | `background` | `"event" | "invoice" | "job" | "quote" | "request" | "task" | "text" | "visit" | "warning" | "icon" | "success" | "base-grey--100" | "base-grey--200" | "base-grey--300" | "base-grey--400" | ... 269 more ... | "client--onSurface"` | No | — | |
210
210
  | `border` | `"base" | "thick" | "thicker" | "thickest" | BoxBorderWidth` | No | — | |
211
- | `borderColor` | `"event" | "invoice" | "job" | "quote" | "request" | "task" | "text" | "visit" | "warning" | "icon" | "disabled" | "success" | "base-grey--100" | "base-grey--200" | "base-grey--300" | ... 269 more ... | "client--onSurface"` | No | — | |
211
+ | `borderColor` | `"event" | "invoice" | "job" | "quote" | "request" | "task" | "text" | "visit" | "warning" | "icon" | "success" | "base-grey--100" | "base-grey--200" | "base-grey--300" | "base-grey--400" | ... 269 more ... | "client--onSurface"` | No | — | |
212
212
  | `direction` | `FlexDirection` | No | — | |
213
213
  | `gap` | `"base" | "extravagant" | "large" | "larger" | "largest" | "minuscule" | "slim" | "small" | "smaller" | "smallest"` | No | — | |
214
214
  | `height` | `BoxDimension` | No | `auto` | |
@@ -158,7 +158,7 @@ export function GlimmerSemanticBlocksExample() {
158
158
 
159
159
  | Prop | Type | Required | Default | Description |
160
160
  |------|------|----------|---------|-------------|
161
- | `level` | `1 | 2 | 5 | 3 | 4` | No | `3` | Adjust the size of the `Glimmer.Header`. |
161
+ | `level` | `1 | 2 | 3 | 4 | 5` | No | `3` | Adjust the size of the `Glimmer.Header`. |
162
162
  | `reverseTheme` | `boolean` | No | — | Use on surfaces with dark backgrounds. |
163
163
  | `timing` | `"base" | "fast"` | No | — | Control how fast the shine moves from left to right. This is useful when the glimmer is used on smaller spaces. |
164
164
  | `width` | `number` | No | — | Adjust the width of the glimmer in px values. |
@@ -582,7 +582,7 @@ necessary.
582
582
  | Prop | Type | Required | Default | Description |
583
583
  |------|------|----------|---------|-------------|
584
584
  | `name` | `IconNames` | Yes | — | The icon to show. |
585
- | `color` | `"task" | "text" | "warning" | "icon" | "disabled" | "success" | "blue" | "green" | "yellow" | "red" | "grey" | "white" | "greyBlue" | "lightBlue" | "orange" | "navy" | "interactive" | ... 32 more ... | "brandHighlight"` | No | — | Determines the color of the icon. Some icons have a default system colour like quotes, jobs, and invoices. Others tha... |
585
+ | `color` | `"task" | "text" | "warning" | "icon" | "success" | "blue" | "green" | "yellow" | "red" | "grey" | "white" | "greyBlue" | "lightBlue" | "orange" | "navy" | "interactive" | "destructive" | ... 32 more ... | "brandHighlight"` | No | — | Determines the color of the icon. Some icons have a default system colour like quotes, jobs, and invoices. Others tha... |
586
586
  | `customColor` | `string` | No | — | Sets a custom color for the icon. Can be a rgb() or hex value. |
587
587
  | `size` | `"base" | "large" | "small"` | No | `base` | Changes the size to small or large. |
588
588
  | `testID` | `string` | No | — | Used to locate this view in end-to-end tests |