@dnotrever2/super-kit 0.1.25 → 0.1.27
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/README.md +109 -80
- package/dist/Badge/Badge.d.ts +2 -1
- package/dist/Breadcrumb/Breadcrumb.d.ts +2 -1
- package/dist/Button/Button.d.ts +4 -1
- package/dist/Link/Link.d.ts +2 -1
- package/dist/Markers/Markers.d.ts +8 -3
- package/dist/Progress/Progress.d.ts +2 -1
- package/dist/Spinner/Spinner.d.ts +9 -4
- package/dist/Steps/Steps.d.ts +8 -3
- package/dist/super-kit.cjs +1 -1
- package/dist/super-kit.cjs.map +1 -1
- package/dist/super-kit.css +1 -1
- package/dist/super-kit.js +2488 -2243
- package/dist/super-kit.js.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ import { Accordion, Badge } from "@dnotrever2/super-kit";
|
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
value: "limits",
|
|
52
|
-
title: <>Usage limits <Badge variant="
|
|
52
|
+
title: <>Usage limits <Badge variant="yellow2" pill>3</Badge></>,
|
|
53
53
|
content: "Requests are throttled when the workspace reaches its quota."
|
|
54
54
|
}
|
|
55
55
|
]}
|
|
@@ -127,18 +127,18 @@ Status labels and tags.
|
|
|
127
127
|
```tsx
|
|
128
128
|
import { Badge } from "@dnotrever2/super-kit";
|
|
129
129
|
|
|
130
|
-
<Badge variant="
|
|
131
|
-
<Badge variant="
|
|
132
|
-
<Badge variant="
|
|
133
|
-
<Badge variant="
|
|
134
|
-
<Badge variant="
|
|
135
|
-
<Badge variant="
|
|
130
|
+
<Badge variant="green2">Deployed</Badge>
|
|
131
|
+
<Badge variant="red2" pill>Failed</Badge>
|
|
132
|
+
<Badge variant="red2" coloredText>Failed</Badge>
|
|
133
|
+
<Badge variant="red2" outline>Failed</Badge>
|
|
134
|
+
<Badge variant="blue2" label labelDirection="left">New</Badge>
|
|
135
|
+
<Badge variant="green2" indicator aria-label="Online" />
|
|
136
136
|
<Badge dismissable onDismiss={() => {}}>api-gateway</Badge>
|
|
137
137
|
```
|
|
138
138
|
|
|
139
139
|
| Prop | Type | Default |
|
|
140
140
|
| ------------- | ------------------------------------------------------------------------------------------------------------------------------- | --------------- |
|
|
141
|
-
| `variant` | `
|
|
141
|
+
| `variant` | `blue/green/yellow/red/gray` + `1/2/3`, optional `Soft` suffix, e.g. `"blue2Soft"` | `"gray2"` |
|
|
142
142
|
| `icon` | `ReactNode` | — |
|
|
143
143
|
| `pill` | `boolean` | `false` |
|
|
144
144
|
| `outline` | `boolean` | `false` |
|
|
@@ -149,7 +149,7 @@ import { Badge } from "@dnotrever2/super-kit";
|
|
|
149
149
|
| `dismissable` | `boolean` | `false` |
|
|
150
150
|
| `onDismiss` | `() => void` | — |
|
|
151
151
|
|
|
152
|
-
Badge variants match Button variants.
|
|
152
|
+
Badge variants match Button variants. Tones run from `1` lighter, `2` medium, and `3` darker. Use `coloredText` when the text should follow the badge variant color on a soft background. Outline badges use the variant color for the text. Use `pill` for the rounded shape. Use `indicator` for a small status dot; provide an accessible label with `aria-label`.
|
|
153
153
|
|
|
154
154
|
Badge also accepts native `<span>` attributes, including `className`, `style`, `id`, `title`, and `aria-*`. For one-off visual tweaks, use `style` or `className`; the internal CSS variables `--badge-bg`, `--badge-fg`, and `--badge-border` can be overridden for custom background, text, and border colors.
|
|
155
155
|
|
|
@@ -176,6 +176,7 @@ import { Breadcrumb } from "@dnotrever2/super-kit";
|
|
|
176
176
|
| `items` | `BreadcrumbItem[]` | required |
|
|
177
177
|
| `separator` | `ReactNode` | chevron icon |
|
|
178
178
|
| `label` | `string` | `"Breadcrumb"` |
|
|
179
|
+
| `colorCurrent` | `boolean` | `false` |
|
|
179
180
|
|
|
180
181
|
**BreadcrumbItem fields**
|
|
181
182
|
|
|
@@ -195,36 +196,38 @@ The last item is treated as the current page unless `current` is set explicitly.
|
|
|
195
196
|
|
|
196
197
|
### Button
|
|
197
198
|
|
|
198
|
-
Standard action button with
|
|
199
|
+
Standard action button with muted color-scale variants.
|
|
199
200
|
|
|
200
201
|
```tsx
|
|
201
202
|
import { Button, Spinner } from "@dnotrever2/super-kit";
|
|
202
203
|
|
|
203
|
-
<Button variant="
|
|
204
|
-
<Button variant="
|
|
205
|
-
<Button variant="
|
|
206
|
-
<Button variant="
|
|
207
|
-
<Button variant="
|
|
208
|
-
<Button variant="
|
|
209
|
-
<Button variant="
|
|
210
|
-
<Button variant="
|
|
211
|
-
<Button variant="
|
|
204
|
+
<Button variant="blue2" onClick={deploy}>Deploy</Button>
|
|
205
|
+
<Button variant="green2" icon={<CheckIcon />}>Approve</Button>
|
|
206
|
+
<Button variant="red2">Delete</Button>
|
|
207
|
+
<Button variant="red2Soft">Delete</Button>
|
|
208
|
+
<Button variant="blue2" outline>Configure</Button>
|
|
209
|
+
<Button variant="blue2" transparent>Deploy</Button>
|
|
210
|
+
<Button variant="blue2" rounded>Deploy</Button>
|
|
211
|
+
<Button variant="gray2Soft" icon={<SettingsIcon />} aria-label="Settings" />
|
|
212
|
+
<Button variant="blue2" disabled icon={<Spinner size="sm" onColor />}>
|
|
212
213
|
Loading...
|
|
213
214
|
</Button>
|
|
214
215
|
```
|
|
215
216
|
|
|
216
|
-
| Prop | Type
|
|
217
|
-
| ---------- |
|
|
218
|
-
| `variant` | `
|
|
219
|
-
| `size` | `"sm" \| "md" \| "lg"`
|
|
220
|
-
| `icon` | `ReactNode`
|
|
221
|
-
| `outline` | `boolean`
|
|
222
|
-
| `rounded` | `boolean`
|
|
223
|
-
| `coloredText` | `boolean`
|
|
224
|
-
| `transparent` | `boolean`
|
|
225
|
-
| `disabled` | `boolean`
|
|
226
|
-
|
|
227
|
-
|
|
217
|
+
| Prop | Type | Default |
|
|
218
|
+
| ---------- | ------------------------------------------------------------------------------------ | --------- |
|
|
219
|
+
| `variant` | `blue/green/yellow/red/gray` + `1/2/3`, optional `Soft` suffix, e.g. `"blue2Soft"` | `"gray2"` |
|
|
220
|
+
| `size` | `"sm" \| "md" \| "lg"` | `"md"` |
|
|
221
|
+
| `icon` | `ReactNode` | — |
|
|
222
|
+
| `outline` | `boolean` | `false` |
|
|
223
|
+
| `rounded` | `boolean` | `false` |
|
|
224
|
+
| `coloredText` | `boolean` | `false` |
|
|
225
|
+
| `transparent` | `boolean` | `false` |
|
|
226
|
+
| `disabled` | `boolean` | `false` |
|
|
227
|
+
|
|
228
|
+
Tones run from `1` lighter, `2` medium, and `3` darker. Every tone has a `Soft` variant, and the same soft color is reused by disabled and subdued appearances.
|
|
229
|
+
|
|
230
|
+
Normal buttons use the stronger tone background. Use `coloredText` when the text should follow the button variant color on a soft background. Use `transparent` when the button should start without a background and reveal the variant background on hover. Outline buttons use the variant color for the text and border.
|
|
228
231
|
To create a loading button, pass a `Spinner` as `icon`, use text such as `"Loading..."`, and set `disabled` to block interaction.
|
|
229
232
|
To create an icon button, pass only `icon` and no text. Provide an accessible label with `aria-label`.
|
|
230
233
|
|
|
@@ -394,23 +397,23 @@ Text link with variants aligned to Button and Badge colors.
|
|
|
394
397
|
```tsx
|
|
395
398
|
import { Link } from "@dnotrever2/super-kit";
|
|
396
399
|
|
|
397
|
-
<Link href="/docs" variant="
|
|
398
|
-
<Link href="/status" variant="
|
|
400
|
+
<Link href="/docs" variant="blue2">Documentation</Link>
|
|
401
|
+
<Link href="/status" variant="green2" underlined>Status</Link>
|
|
399
402
|
<Link href="https://example.com" target="_blank" noreferrer>
|
|
400
403
|
External docs
|
|
401
404
|
</Link>
|
|
402
|
-
<Link href="/danger-zone" variant="
|
|
405
|
+
<Link href="/danger-zone" variant="red2" opacity={0.72}>
|
|
403
406
|
Danger zone
|
|
404
407
|
</Link>
|
|
405
408
|
<Link href="/settings" disabled>Settings</Link>
|
|
406
409
|
```
|
|
407
410
|
|
|
408
|
-
| Prop | Type
|
|
409
|
-
| ------------- |
|
|
410
|
-
| `variant` | `
|
|
411
|
-
| `href` | `string`
|
|
412
|
-
| `target` | `HTMLAttributeAnchorTarget`
|
|
413
|
-
| `underlined` | `boolean`
|
|
411
|
+
| Prop | Type | Default |
|
|
412
|
+
| ------------- | -------------------------------------------------------------------------------------- | --------- |
|
|
413
|
+
| `variant` | `blue/green/yellow/red/gray` + `1/2/3`, optional `Soft` suffix, e.g. `"blue2Soft"` | `"blue2"` |
|
|
414
|
+
| `href` | `string` | — |
|
|
415
|
+
| `target` | `HTMLAttributeAnchorTarget` | — |
|
|
416
|
+
| `underlined` | `boolean` | `false` |
|
|
414
417
|
| `opacity` | `number` | `1` |
|
|
415
418
|
| `disabled` | `boolean` | `false` |
|
|
416
419
|
| `noreferrer` | `boolean` | `false` |
|
|
@@ -429,6 +432,7 @@ Form selection primitives: Checkbox, Radio, and Switch.
|
|
|
429
432
|
import { Checkbox, Radio, RadioGroup, Switch } from "@dnotrever2/super-kit";
|
|
430
433
|
|
|
431
434
|
<Checkbox label="Auto-deploy" checked={checked} onChange={setChecked} />
|
|
435
|
+
<Checkbox label="Auto-deploy" variant="green2" checked={checked} onChange={setChecked} />
|
|
432
436
|
<Checkbox label="Partial" indeterminate />
|
|
433
437
|
<Checkbox label="Required" isInvalid />
|
|
434
438
|
<Checkbox label="Disabled" disabled />
|
|
@@ -439,6 +443,7 @@ import { Checkbox, Radio, RadioGroup, Switch } from "@dnotrever2/super-kit";
|
|
|
439
443
|
</RadioGroup>
|
|
440
444
|
|
|
441
445
|
<Switch label="SSO required" checked={on} onChange={setOn} />
|
|
446
|
+
<Switch label="SSO required" variant="yellow2" checked={on} onChange={setOn} />
|
|
442
447
|
<Switch label="SSO required" thinTrack checked={on} onChange={setOn} />
|
|
443
448
|
```
|
|
444
449
|
|
|
@@ -447,6 +452,7 @@ import { Checkbox, Radio, RadioGroup, Switch } from "@dnotrever2/super-kit";
|
|
|
447
452
|
| Prop | Type |
|
|
448
453
|
| ---------------- | ---------------------------- |
|
|
449
454
|
| `label` | `ReactNode` |
|
|
455
|
+
| `variant` | `ColorVariant` |
|
|
450
456
|
| `checked` | `boolean` |
|
|
451
457
|
| `defaultChecked` | `boolean` |
|
|
452
458
|
| `indeterminate` | `boolean` (Checkbox only) |
|
|
@@ -460,6 +466,7 @@ import { Checkbox, Radio, RadioGroup, Switch } from "@dnotrever2/super-kit";
|
|
|
460
466
|
| Prop | Type |
|
|
461
467
|
| ---------- | ------------------------- |
|
|
462
468
|
| `label` | `ReactNode` |
|
|
469
|
+
| `variant` | `ColorVariant` |
|
|
463
470
|
| `value` | `string` |
|
|
464
471
|
| `checked` | `boolean` |
|
|
465
472
|
| `isInvalid` | `boolean` |
|
|
@@ -566,7 +573,7 @@ Anchored floating panel, controlled or uncontrolled.
|
|
|
566
573
|
import { Popover } from "@dnotrever2/super-kit";
|
|
567
574
|
|
|
568
575
|
<Popover
|
|
569
|
-
trigger={<Button variant="
|
|
576
|
+
trigger={<Button variant="gray2">Settings</Button>}
|
|
570
577
|
title="Connection"
|
|
571
578
|
side="bottom-start"
|
|
572
579
|
shadow
|
|
@@ -602,15 +609,15 @@ import { Progress } from "@dnotrever2/super-kit";
|
|
|
602
609
|
<Progress value={64} label="Deploy progress" showValue />
|
|
603
610
|
<Progress shape="circle" value={72} label="Deploy" />
|
|
604
611
|
<Progress indeterminate label="Publishing" showValue />
|
|
605
|
-
<Progress value={82} variant="
|
|
612
|
+
<Progress value={82} variant="green2" size="lg" />
|
|
606
613
|
```
|
|
607
614
|
|
|
608
|
-
| Prop | Type
|
|
609
|
-
| --------------- |
|
|
610
|
-
| `value` | `number`
|
|
611
|
-
| `max` | `number`
|
|
612
|
-
| `variant` | `
|
|
613
|
-
| `size` | `"sm" \| "md" \| "lg"`
|
|
615
|
+
| Prop | Type | Default |
|
|
616
|
+
| --------------- | -------------------------------------------------------------------------------------- | --------- |
|
|
617
|
+
| `value` | `number` | — |
|
|
618
|
+
| `max` | `number` | `100` |
|
|
619
|
+
| `variant` | `blue/green/yellow/red/gray` + `1/2/3`, optional `Soft` suffix, e.g. `"blue2Soft"` | `"blue2"` |
|
|
620
|
+
| `size` | `"sm" \| "md" \| "lg"` | `"md"` |
|
|
614
621
|
| `shape` | `"bar" \| "circle"` | `"bar"` |
|
|
615
622
|
| `label` | `ReactNode` | — |
|
|
616
623
|
| `valueLabel` | `string` | — |
|
|
@@ -636,7 +643,7 @@ import { PushButton, PushButtonGroup } from "@dnotrever2/super-kit";
|
|
|
636
643
|
<PushButton on={view === "list"} onClick={() => setView("list")}>List</PushButton>
|
|
637
644
|
<PushButton
|
|
638
645
|
on={view === "grid"}
|
|
639
|
-
badge={<Badge variant="
|
|
646
|
+
badge={<Badge variant="blue2" pill>2</Badge>}
|
|
640
647
|
onClick={() => setView("grid")}
|
|
641
648
|
>
|
|
642
649
|
Grid
|
|
@@ -767,7 +774,7 @@ import { Badge, Tabs } from "@dnotrever2/super-kit";
|
|
|
767
774
|
{ value: "overview", label: "Overview", content: <Overview /> },
|
|
768
775
|
{
|
|
769
776
|
value: "deployments",
|
|
770
|
-
label: <>Deployments <Badge variant="
|
|
777
|
+
label: <>Deployments <Badge variant="blue2" pill>4</Badge></>,
|
|
771
778
|
content: <Deployments />
|
|
772
779
|
},
|
|
773
780
|
{ value: "settings", label: "Settings", content: <Settings /> }
|
|
@@ -838,25 +845,26 @@ Loading indicator in three styles.
|
|
|
838
845
|
```tsx
|
|
839
846
|
import { Spinner } from "@dnotrever2/super-kit";
|
|
840
847
|
|
|
841
|
-
<Spinner
|
|
842
|
-
<Spinner
|
|
843
|
-
<Spinner
|
|
848
|
+
<Spinner type="ring" variant="blue3" size="md" />
|
|
849
|
+
<Spinner type="dots" variant="green2" />
|
|
850
|
+
<Spinner type="bar" variant="yellow2" />
|
|
844
851
|
|
|
845
|
-
// Inside a
|
|
846
|
-
<Button variant="
|
|
852
|
+
// Inside a blue button (light spinner on solid color background)
|
|
853
|
+
<Button variant="blue2" disabled icon={<Spinner size="sm" onColor />}>
|
|
847
854
|
Deploying
|
|
848
855
|
</Button>
|
|
849
856
|
|
|
850
|
-
// Subdued — when the
|
|
857
|
+
// Subdued — when the selected variant is too visually dominant
|
|
851
858
|
<Spinner muted />
|
|
852
859
|
```
|
|
853
860
|
|
|
854
861
|
| Prop | Type | Default |
|
|
855
862
|
| ---------- | --------------------------- | --------------------------------------------------------- |
|
|
856
|
-
| `
|
|
863
|
+
| `type` | `"ring" \| "dots" \| "bar"` | `"ring"` |
|
|
864
|
+
| `variant` | `ColorVariant` | `"blue3"` |
|
|
857
865
|
| `size` | `"sm" \| "md" \| "lg"` | `"md"` — ring only |
|
|
858
|
-
| `muted` | `boolean` | `false` — gray
|
|
859
|
-
| `
|
|
866
|
+
| `muted` | `boolean` | `false` — gray animation instead of the selected variant |
|
|
867
|
+
| `onColor` | `boolean` | `false` — white arc for use on solid color backgrounds |
|
|
860
868
|
|
|
861
869
|
---
|
|
862
870
|
|
|
@@ -873,11 +881,12 @@ const items = [
|
|
|
873
881
|
{ label: "Step 3", description: "Publish the release" }
|
|
874
882
|
];
|
|
875
883
|
|
|
876
|
-
<Steps items={items} currentStep={2} />
|
|
884
|
+
<Steps items={items} currentStep={2} variant="blue3" />
|
|
877
885
|
|
|
878
886
|
<Steps
|
|
879
887
|
items={items}
|
|
880
|
-
|
|
888
|
+
type="arrow"
|
|
889
|
+
variant="green2"
|
|
881
890
|
currentStep={2}
|
|
882
891
|
showNumbers={false}
|
|
883
892
|
/>
|
|
@@ -887,7 +896,8 @@ const items = [
|
|
|
887
896
|
| --------------- | ---------------------------- | ------------ |
|
|
888
897
|
| `items` | `StepItem[]` | required |
|
|
889
898
|
| `currentStep` | `number` | `1` |
|
|
890
|
-
| `
|
|
899
|
+
| `type` | `"line" \| "arrow"` | `"line"` |
|
|
900
|
+
| `variant` | `ColorVariant` | `"blue3"` |
|
|
891
901
|
| `size` | `"sm" \| "md" \| "lg"` | `"md"` |
|
|
892
902
|
| `clickable` | `boolean` | `false` |
|
|
893
903
|
| `showNumbers` | `boolean` | `true` |
|
|
@@ -972,7 +982,7 @@ function DeployButton() {
|
|
|
972
982
|
|
|
973
983
|
toast({
|
|
974
984
|
variant: "ok",
|
|
975
|
-
title: <>Deployed <Badge variant="
|
|
985
|
+
title: <>Deployed <Badge variant="green2" pill>live</Badge></>,
|
|
976
986
|
message: <span style={{ color: "var(--fg-1)", fontSize: 13, fontWeight: 600 }}>v2.4.1 is live</span>
|
|
977
987
|
});
|
|
978
988
|
|
|
@@ -1031,19 +1041,19 @@ Hover/focus tooltip around a child element.
|
|
|
1031
1041
|
import { Tooltip } from "@dnotrever2/super-kit";
|
|
1032
1042
|
|
|
1033
1043
|
<Tooltip content="Deploy to production" side="top">
|
|
1034
|
-
<Button variant="
|
|
1044
|
+
<Button variant="blue2">Deploy</Button>
|
|
1035
1045
|
</Tooltip>
|
|
1036
1046
|
|
|
1037
1047
|
<Tooltip content="No delay" delay={0}>
|
|
1038
|
-
<Button variant="
|
|
1048
|
+
<Button variant="blue2">Deploy</Button>
|
|
1039
1049
|
</Tooltip>
|
|
1040
1050
|
|
|
1041
1051
|
<Tooltip content="Fixed top" side="top" dynamic={false}>
|
|
1042
|
-
<Button variant="
|
|
1052
|
+
<Button variant="blue2">Deploy</Button>
|
|
1043
1053
|
</Tooltip>
|
|
1044
1054
|
|
|
1045
1055
|
<Tooltip content="Cursor hint" cursor>
|
|
1046
|
-
<Button variant="
|
|
1056
|
+
<Button variant="blue2">Hover me</Button>
|
|
1047
1057
|
</Tooltip>
|
|
1048
1058
|
```
|
|
1049
1059
|
|
|
@@ -1077,6 +1087,21 @@ All tokens are CSS custom properties defined in `src/styles/index.css` and avail
|
|
|
1077
1087
|
| `--bg-2` | `#1f242c` — hover state |
|
|
1078
1088
|
| `--bg-3` | `#2a2f38` — popover / selected |
|
|
1079
1089
|
|
|
1090
|
+
### App Surfaces
|
|
1091
|
+
|
|
1092
|
+
| Token | Value |
|
|
1093
|
+
| ---------------------------------- | ----------- |
|
|
1094
|
+
| `--surface-topbar` | `#253047` |
|
|
1095
|
+
| `--surface-sidebar` | `#1b2838` |
|
|
1096
|
+
| `--surface-sidebar-hover` | `#253044` |
|
|
1097
|
+
| `--surface-sidebar-selected` | `#303c50` |
|
|
1098
|
+
| `--surface-sidebar-selected-hover` | `#3d4a60` |
|
|
1099
|
+
| `--surface-content` | `#2c3b52` |
|
|
1100
|
+
| `--surface-modal` | `#242d3d` |
|
|
1101
|
+
| `--surface-modal-dialog` | `#2a3345` |
|
|
1102
|
+
|
|
1103
|
+
`Modal` uses `--surface-modal` by default. Apps can use `--surface-modal-dialog` in their own dialog class when they need the dialog-specific background.
|
|
1104
|
+
|
|
1080
1105
|
### Foreground
|
|
1081
1106
|
|
|
1082
1107
|
| Token | Value |
|
|
@@ -1085,19 +1110,23 @@ All tokens are CSS custom properties defined in `src/styles/index.css` and avail
|
|
|
1085
1110
|
| `--fg-2` | `#aab2bd` — secondary text |
|
|
1086
1111
|
| `--fg-3` | `#6b7280` — muted / labels |
|
|
1087
1112
|
| `--fg-4` | `#4a505a` — placeholder |
|
|
1088
|
-
| `--fg-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
|
1096
|
-
|
|
|
1097
|
-
| `--
|
|
1098
|
-
| `--
|
|
1099
|
-
| `--
|
|
1100
|
-
| `--
|
|
1113
|
+
| `--fg-disabled` | disabled foreground |
|
|
1114
|
+
| `--fg-on-color` | `#ffffff` — text on solid color bg |
|
|
1115
|
+
|
|
1116
|
+
### Color Scale
|
|
1117
|
+
|
|
1118
|
+
Buttons, badges, links, and progress variants use the global color scale tokens:
|
|
1119
|
+
|
|
1120
|
+
| Token pattern | Purpose |
|
|
1121
|
+
| ------------- | ------- |
|
|
1122
|
+
| `--color-{blue|green|yellow|red|gray}-{1|2|3}` | Solid tone |
|
|
1123
|
+
| `--color-{color}-{tone}-hover` / `-active` | Solid interaction states |
|
|
1124
|
+
| `--color-{color}-{tone}-fg` | Text on solid tone |
|
|
1125
|
+
| `--color-{color}-{tone}-soft` | Soft background |
|
|
1126
|
+
| `--color-{color}-{tone}-soft-hover` / `-soft-active` | Soft interaction states |
|
|
1127
|
+
| `--color-{color}-{tone}-soft-fg` | Text/icon color for soft usage |
|
|
1128
|
+
| `--color-{color}-{tone}-outline` | Outline border |
|
|
1129
|
+
| `--color-{color}-{tone}-link-hover` | Link hover color |
|
|
1101
1130
|
|
|
1102
1131
|
### Typography
|
|
1103
1132
|
|
package/dist/Badge/Badge.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { ColorVariant } from '../types';
|
|
3
|
+
export type BadgeVariant = ColorVariant;
|
|
3
4
|
export type BadgeProps = HTMLAttributes<HTMLSpanElement> & {
|
|
4
5
|
variant?: BadgeVariant;
|
|
5
6
|
icon?: ReactNode;
|
|
@@ -12,8 +12,9 @@ export type BreadcrumbProps = HTMLAttributes<HTMLElement> & {
|
|
|
12
12
|
items: BreadcrumbItem[];
|
|
13
13
|
separator?: ReactNode;
|
|
14
14
|
label?: string;
|
|
15
|
+
colorCurrent?: boolean;
|
|
15
16
|
};
|
|
16
|
-
export declare function Breadcrumb({ items, separator, label, className, ...props }: BreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function Breadcrumb({ items, separator, label, colorCurrent, className, ...props }: BreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
17
18
|
export declare namespace Breadcrumb {
|
|
18
19
|
var displayName: string;
|
|
19
20
|
}
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { ColorName, ColorTone, ColorVariant } from '../types';
|
|
3
|
+
export type ButtonColor = ColorName;
|
|
4
|
+
export type ButtonTone = ColorTone;
|
|
5
|
+
export type ButtonVariant = ColorVariant;
|
|
3
6
|
export type ButtonSize = "sm" | "md" | "lg";
|
|
4
7
|
export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
5
8
|
variant?: ButtonVariant;
|
package/dist/Link/Link.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { ColorVariant } from '../types';
|
|
3
|
+
export type LinkVariant = ColorVariant;
|
|
3
4
|
export type LinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "aria-disabled"> & {
|
|
4
5
|
variant?: LinkVariant;
|
|
5
6
|
underlined?: boolean;
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import { HTMLAttributes, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { ColorVariant } from '../types';
|
|
3
|
+
export type MarkerVariant = ColorVariant;
|
|
2
4
|
export type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange"> & {
|
|
3
5
|
label?: ReactNode;
|
|
6
|
+
variant?: MarkerVariant;
|
|
4
7
|
checked?: boolean;
|
|
5
8
|
defaultChecked?: boolean;
|
|
6
9
|
indeterminate?: boolean;
|
|
7
10
|
isInvalid?: boolean;
|
|
8
11
|
onChange?: (checked: boolean) => void;
|
|
9
12
|
};
|
|
10
|
-
export declare function Checkbox({ label, checked, defaultChecked, indeterminate, isInvalid, disabled, onChange, className, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function Checkbox({ label, variant, checked, defaultChecked, indeterminate, isInvalid, disabled, onChange, className, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
11
14
|
export declare namespace Checkbox {
|
|
12
15
|
var displayName: string;
|
|
13
16
|
}
|
|
14
17
|
export type RadioProps = Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange"> & {
|
|
15
18
|
label?: ReactNode;
|
|
19
|
+
variant?: MarkerVariant;
|
|
16
20
|
checked?: boolean;
|
|
17
21
|
isInvalid?: boolean;
|
|
18
22
|
onChange?: (value: string) => void;
|
|
19
23
|
};
|
|
20
|
-
export declare function Radio({ label, checked, isInvalid, disabled, onChange, value, className, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function Radio({ label, variant, checked, isInvalid, disabled, onChange, value, className, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
21
25
|
export declare namespace Radio {
|
|
22
26
|
var displayName: string;
|
|
23
27
|
}
|
|
@@ -30,13 +34,14 @@ export declare namespace RadioGroup {
|
|
|
30
34
|
}
|
|
31
35
|
export type SwitchProps = Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange"> & {
|
|
32
36
|
label?: ReactNode;
|
|
37
|
+
variant?: MarkerVariant;
|
|
33
38
|
checked?: boolean;
|
|
34
39
|
defaultChecked?: boolean;
|
|
35
40
|
thinTrack?: boolean;
|
|
36
41
|
isInvalid?: boolean;
|
|
37
42
|
onChange?: (checked: boolean) => void;
|
|
38
43
|
};
|
|
39
|
-
export declare function Switch({ label, checked, defaultChecked, disabled, thinTrack, isInvalid, onChange, className, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare function Switch({ label, variant, checked, defaultChecked, disabled, thinTrack, isInvalid, onChange, className, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
40
45
|
export declare namespace Switch {
|
|
41
46
|
var displayName: string;
|
|
42
47
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { ColorVariant } from '../types';
|
|
3
|
+
export type ProgressVariant = ColorVariant;
|
|
3
4
|
export type ProgressSize = "sm" | "md" | "lg";
|
|
4
5
|
export type ProgressShape = "bar" | "circle";
|
|
5
6
|
export type ProgressProps = HTMLAttributes<HTMLDivElement> & {
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
|
|
2
|
+
import { ColorVariant } from '../types';
|
|
3
|
+
export type SpinnerType = "ring" | "dots" | "bar";
|
|
4
|
+
export type SpinnerVariant = ColorVariant;
|
|
3
5
|
export type SpinnerSize = "sm" | "md" | "lg";
|
|
6
|
+
type LegacySpinnerVariant = SpinnerType;
|
|
4
7
|
export type SpinnerProps = HTMLAttributes<HTMLSpanElement> & {
|
|
5
|
-
variant?: SpinnerVariant;
|
|
8
|
+
variant?: SpinnerVariant | LegacySpinnerVariant;
|
|
9
|
+
type?: SpinnerType;
|
|
6
10
|
size?: SpinnerSize;
|
|
7
11
|
muted?: boolean;
|
|
8
|
-
|
|
12
|
+
onColor?: boolean;
|
|
9
13
|
};
|
|
10
|
-
export declare function Spinner({ variant, size, muted,
|
|
14
|
+
export declare function Spinner({ variant, type, size, muted, onColor, className, ...props }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
15
|
export declare namespace Spinner {
|
|
12
16
|
var displayName: string;
|
|
13
17
|
}
|
|
18
|
+
export {};
|
package/dist/Steps/Steps.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { ColorVariant } from '../types';
|
|
3
|
+
export type StepsType = "line" | "arrow";
|
|
4
|
+
export type StepsVariant = ColorVariant;
|
|
3
5
|
export type StepsSize = "sm" | "md" | "lg";
|
|
6
|
+
type LegacyStepsVariant = StepsType;
|
|
4
7
|
export type StepItem = {
|
|
5
8
|
label: ReactNode;
|
|
6
9
|
description?: ReactNode;
|
|
@@ -12,14 +15,16 @@ export type StepItem = {
|
|
|
12
15
|
export type StepsProps = Omit<HTMLAttributes<HTMLOListElement>, "onChange"> & {
|
|
13
16
|
items: StepItem[];
|
|
14
17
|
currentStep?: number;
|
|
15
|
-
variant?: StepsVariant;
|
|
18
|
+
variant?: StepsVariant | LegacyStepsVariant;
|
|
19
|
+
type?: StepsType;
|
|
16
20
|
size?: StepsSize;
|
|
17
21
|
clickable?: boolean;
|
|
18
22
|
showNumbers?: boolean;
|
|
19
23
|
onStepChange?: (step: number) => void;
|
|
20
24
|
stepClassName?: string;
|
|
21
25
|
};
|
|
22
|
-
export declare function Steps({ items, currentStep, variant, size, clickable, showNumbers, onStepChange, stepClassName, className, ...props }: StepsProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function Steps({ items, currentStep, variant, type, size, clickable, showNumbers, onStepChange, stepClassName, className, ...props }: StepsProps): import("react/jsx-runtime").JSX.Element;
|
|
23
27
|
export declare namespace Steps {
|
|
24
28
|
var displayName: string;
|
|
25
29
|
}
|
|
30
|
+
export {};
|