@cognite/aura 1.48561.0 → 1.48639.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/DESIGN.md +9 -5
- package/dist/components/ui/core/data-grid/data-grid-column-filter.d.ts +10 -2
- package/dist/components/ui/core/data-grid/data-grid-column-filter.js +11 -1
- package/dist/components/ui/core/data-grid/data-grid-column-filter.js.map +1 -1
- package/dist/components/ui/core/data-grid/data-grid-column-menu.d.ts +22 -0
- package/dist/components/ui/core/data-grid/data-grid-column-menu.js +92 -0
- package/dist/components/ui/core/data-grid/data-grid-column-menu.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-header-row.d.ts +5 -1
- package/dist/components/ui/core/data-grid/data-grid-header-row.js +47 -6
- package/dist/components/ui/core/data-grid/data-grid-header-row.js.map +1 -1
- package/dist/components/ui/core/data-grid/data-grid.d.ts +5 -1
- package/dist/components/ui/core/data-grid/data-grid.js +4 -2
- package/dist/components/ui/core/data-grid/data-grid.js.map +1 -1
- package/dist/components/ui/core/data-grid/index.d.ts +2 -1
- package/dist/components/ui/core/data-grid/index.js.map +1 -1
- package/dist/components/ui/core/input/input.gallery.js +5 -6
- package/dist/components/ui/core/input/input.gallery.js.map +1 -1
- package/dist/components/ui/core/label/examples/label.gallery.js +3 -3
- package/dist/components/ui/core/label/examples/label.gallery.js.map +1 -1
- package/dist/components/ui/core/slider/slider.gallery.js +3 -3
- package/dist/components/ui/core/slider/slider.gallery.js.map +1 -1
- package/dist/components/ui/core/textarea/textarea.gallery.js +2 -4
- package/dist/components/ui/core/textarea/textarea.gallery.js.map +1 -1
- package/dist/components/ui/core/toggle/count-badge.d.ts +7 -0
- package/dist/components/ui/core/toggle/count-badge.js +13 -0
- package/dist/components/ui/core/toggle/count-badge.js.map +1 -0
- package/dist/components/ui/core/toggle/toggle.js +6 -12
- package/dist/components/ui/core/toggle/toggle.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/ui/core/input/input.md +3 -0
- package/src/components/ui/core/label/label.md +16 -0
- package/src/components/ui/core/textarea/textarea.md +3 -0
package/package.json
CHANGED
|
@@ -16,6 +16,9 @@ Use an Input to capture short, single-line text in forms and toolbars.
|
|
|
16
16
|
## Content
|
|
17
17
|
|
|
18
18
|
- Give every Input a visible [Label](?path=/docs/primitives-label--docs).
|
|
19
|
+
- Do not add `gap-*` or `space-y-*` between the Label, the Input, and helper text.
|
|
20
|
+
The Label and helper text already include that spacing.
|
|
21
|
+
See [Label layout](?path=/docs/primitives-label--docs).
|
|
19
22
|
- Use placeholder text only for a short example of the expected format.
|
|
20
23
|
- Set `type` to match the data, such as `email`, `number`, `tel`, or `url`, so browsers offer the right keyboard and autofill.
|
|
21
24
|
|
|
@@ -12,6 +12,22 @@ Labels are not intended as general-purpose text.
|
|
|
12
12
|
- Use [Helper Text](?path=/docs/primitives-helper-text--docs) for descriptive text below a field.
|
|
13
13
|
- Use plain text or a [Badge](?path=/docs/primitives-badge--docs) for non-interactive elements such as status indicators.
|
|
14
14
|
|
|
15
|
+
## Layout
|
|
16
|
+
|
|
17
|
+
`Label` includes 8px of padding below the text.
|
|
18
|
+
Helper text includes 8px of padding above the text.
|
|
19
|
+
Do not add `gap-*` or `space-y-*` between a Label, its field, and its helper text.
|
|
20
|
+
When a field needs a wrapper, use `flex flex-col` with no gap.
|
|
21
|
+
Separate fields with `space-y-4`.
|
|
22
|
+
|
|
23
|
+
```tsx
|
|
24
|
+
<div className="flex flex-col">
|
|
25
|
+
<Label htmlFor="name">Name</Label>
|
|
26
|
+
<Input id="name" />
|
|
27
|
+
<HelperText>Shown on your profile.</HelperText>
|
|
28
|
+
</div>
|
|
29
|
+
```
|
|
30
|
+
|
|
15
31
|
## Required fields
|
|
16
32
|
|
|
17
33
|
- Set `required` on the Label to show the required asterisk.
|
|
@@ -15,6 +15,9 @@ Use a Textarea for extended, free-form, multi-line input such as comments, feedb
|
|
|
15
15
|
## Content
|
|
16
16
|
|
|
17
17
|
- Give every Textarea a visible [Label](?path=/docs/primitives-label--docs).
|
|
18
|
+
- Do not add `gap-*` or `space-y-*` between the Label, the Textarea, and helper text.
|
|
19
|
+
The Label and helper text already include that spacing.
|
|
20
|
+
See [Label layout](?path=/docs/primitives-label--docs).
|
|
18
21
|
- Keep placeholder text concise and use it for an example, not instructions the user needs later.
|
|
19
22
|
- Show a character count in helper text when there is a length limit.
|
|
20
23
|
|