tembro 2.0.5 → 2.0.6
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/components/data-table/data-table-pagination.cjs +1 -1
- package/dist/components/data-table/data-table-pagination.js +4 -4
- package/dist/components/data-table/data-table.cjs +1 -1
- package/dist/components/data-table/data-table.d.ts +2 -2
- package/dist/components/data-table/data-table.js +2 -1
- package/dist/components/display/carousel.cjs +1 -1
- package/dist/components/display/carousel.d.ts +7 -1
- package/dist/components/display/carousel.js +44 -44
- package/dist/components/display/smart-card.d.ts +1 -1
- package/dist/components/display/status-legend.d.ts +1 -1
- package/dist/components/form/form-input.cjs +1 -1
- package/dist/components/form/form-input.d.ts +3 -4
- package/dist/components/form/form-input.js +257 -257
- package/dist/components/form/form-select.cjs +1 -1
- package/dist/components/form/form-select.d.ts +2 -2
- package/dist/components/form/form-select.js +6 -6
- package/dist/components/inputs/async-select.d.ts +3 -0
- package/dist/components/inputs/search-input.d.ts +3 -0
- package/dist/components/inputs/simple-select.cjs +1 -1
- package/dist/components/inputs/simple-select.d.ts +10 -32
- package/dist/components/inputs/simple-select.js +5 -101
- package/dist/components/ui/card/index.cjs +1 -1
- package/dist/components/ui/card/index.d.ts +13 -2
- package/dist/components/ui/card/index.js +74 -49
- package/dist/components/ui/input/index.cjs +1 -1
- package/dist/components/ui/input/index.d.ts +8 -0
- package/dist/components/ui/input/index.js +63 -30
- package/dist/components/ui/select/index.cjs +1 -1
- package/dist/components/ui/select/index.d.ts +33 -1
- package/dist/components/ui/select/index.js +154 -48
- package/dist/showcase/create-demo.cjs +5 -4
- package/dist/showcase/create-demo.js +2 -2
- package/dist/showcase/premium/data-table/showcase.cjs +1 -1
- package/dist/showcase/premium/data-table/showcase.js +1 -1
- package/dist/showcase/premium/data-table-parts/showcase.cjs +1 -1
- package/dist/showcase/premium/data-table-parts/showcase.js +3 -1
- package/dist/showcase/premium/select/mock.cjs +8 -9
- package/dist/showcase/premium/select/mock.js +1 -1
- package/dist/showcase/premium/select/showcase.cjs +1 -1
- package/dist/showcase/premium/select/showcase.js +76 -86
- package/dist/showcase/registry-specific.cjs +1 -1
- package/dist/showcase/registry-specific.js +78 -74
- package/dist/showcase/render-registry-preview.cjs +1 -1
- package/dist/showcase/render-registry-preview.js +91 -87
- package/dist/showcase/tembro-registry.json.cjs +1 -1
- package/dist/showcase/tembro-registry.json.js +1 -1
- package/package.json +1 -1
- package/packages/cli/dist/index.cjs +1 -1
- package/packages/cli/vendor/src/components/data-table/data-table-pagination.tsx +7 -7
- package/packages/cli/vendor/src/components/data-table/data-table.tsx +21 -20
- package/packages/cli/vendor/src/components/display/carousel.tsx +18 -6
- package/packages/cli/vendor/src/components/display/smart-card.tsx +1 -1
- package/packages/cli/vendor/src/components/display/status-legend.tsx +1 -1
- package/packages/cli/vendor/src/components/form/form-input.tsx +9 -12
- package/packages/cli/vendor/src/components/form/form-select.tsx +4 -4
- package/packages/cli/vendor/src/components/inputs/async-select.tsx +11 -8
- package/packages/cli/vendor/src/components/inputs/search-input.tsx +5 -2
- package/packages/cli/vendor/src/components/inputs/simple-select.tsx +20 -190
- package/packages/cli/vendor/src/components/ui/card/index.tsx +95 -25
- package/packages/cli/vendor/src/components/ui/input/index.tsx +98 -0
- package/packages/cli/vendor/src/components/ui/select/index.tsx +227 -34
- package/packages/cli/vendor/src/showcase/create-demo.tsx +16 -15
- package/packages/cli/vendor/src/showcase/premium/data-table/showcase.tsx +3 -3
- package/packages/cli/vendor/src/showcase/premium/data-table-parts/showcase.tsx +3 -3
- package/packages/cli/vendor/src/showcase/premium/select/mock.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/select/showcase.tsx +13 -21
- package/packages/cli/vendor/src/showcase/registry-specific.tsx +7 -8
- package/packages/cli/vendor/src/showcase/render-registry-preview.tsx +5 -6
- package/packages/cli/vendor/src/showcase/tembro-registry.json +1 -1
- package/registry.json +1 -1
|
@@ -40,10 +40,9 @@ import {
|
|
|
40
40
|
RangeSlider,
|
|
41
41
|
Rating,
|
|
42
42
|
SavedFilterSelect,
|
|
43
|
-
SearchInput,
|
|
44
43
|
SectionHeader,
|
|
45
|
-
SimpleSelect,
|
|
46
44
|
Slider,
|
|
45
|
+
Select,
|
|
47
46
|
StatusDot,
|
|
48
47
|
StatusLegend,
|
|
49
48
|
Stepper,
|
|
@@ -250,7 +249,7 @@ function InputPreview({
|
|
|
250
249
|
const onValueChange = (nextValue: string) => setState({ textValue: nextValue })
|
|
251
250
|
|
|
252
251
|
if (slug === "search-input") {
|
|
253
|
-
return <
|
|
252
|
+
return <Input type="search" value={value} onValueChange={onValueChange} resultCount={12} shortcut="Ctrl K" placeholder="Search customers..." />
|
|
254
253
|
}
|
|
255
254
|
|
|
256
255
|
if (slug === "password-input") {
|
|
@@ -280,7 +279,7 @@ function InputPreview({
|
|
|
280
279
|
if (slug === "simple-select") {
|
|
281
280
|
return (
|
|
282
281
|
<div className="grid gap-4">
|
|
283
|
-
<
|
|
282
|
+
<Select
|
|
284
283
|
value="private"
|
|
285
284
|
onValueChange={() => undefined}
|
|
286
285
|
options={[
|
|
@@ -350,7 +349,7 @@ function FormPreview({
|
|
|
350
349
|
</label>
|
|
351
350
|
<label className="grid gap-2">
|
|
352
351
|
<span className="text-sm font-medium aui-text-strong">Status</span>
|
|
353
|
-
<
|
|
352
|
+
<Input type="search" value="Active customers" resultCount={7} readOnly />
|
|
354
353
|
<span className="text-xs text-emerald-500">Ready to submit</span>
|
|
355
354
|
</label>
|
|
356
355
|
</div>
|
|
@@ -585,7 +584,7 @@ function ActionsPreview({
|
|
|
585
584
|
if (slug === "filter-bar") {
|
|
586
585
|
return (
|
|
587
586
|
<FilterBar
|
|
588
|
-
search={<
|
|
587
|
+
search={<Input type="search" value={state.textValue} onValueChange={(value) => setState({ textValue: value })} placeholder="Search invoices..." />}
|
|
589
588
|
activeCount={2}
|
|
590
589
|
onReset={() => setState({ textValue: "" })}
|
|
591
590
|
filters={<Button variant="outline" size="sm"><FilterIcon data-icon="inline-start" />Status</Button>}
|
|
@@ -701,7 +700,7 @@ function DataTablePartsPreview({ slug }: { slug: string }) {
|
|
|
701
700
|
return (
|
|
702
701
|
<div className="overflow-hidden rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)]">
|
|
703
702
|
<div className="flex flex-wrap items-center justify-between gap-3 border-b border-[color:var(--aui-divider)] p-3">
|
|
704
|
-
<
|
|
703
|
+
<Input type="search" value="" placeholder="Search rows..." className="max-w-xs" readOnly />
|
|
705
704
|
<div className="flex gap-2">
|
|
706
705
|
<Button variant="outline" size="sm"><FilterIcon data-icon="inline-start" />Filters</Button>
|
|
707
706
|
<Button size="sm">Create</Button>
|
|
@@ -821,7 +820,7 @@ function PatternsPreview({ slug }: { slug: string }) {
|
|
|
821
820
|
description="ResourcePage combines header, stats, filters and sections."
|
|
822
821
|
actions={<Button size="sm">New customer</Button>}
|
|
823
822
|
stats={<div className="grid gap-3 sm:grid-cols-2"><StatCard title="Active" value="2,418" trend={{ value: "+8%", tone: "success" }} /><StatCard title="Health" value="94%" trend={{ value: "Stable", tone: "info" }} /></div>}
|
|
824
|
-
filters={<FilterBar search={<
|
|
823
|
+
filters={<FilterBar search={<Input type="search" value="" placeholder="Search..." readOnly />} activeCount={1} />}
|
|
825
824
|
>
|
|
826
825
|
<ResourcePageSection title="Recent activity">
|
|
827
826
|
<Timeline
|
|
@@ -42,7 +42,6 @@ import {
|
|
|
42
42
|
QuickActionGrid,
|
|
43
43
|
RangeSlider,
|
|
44
44
|
Rating,
|
|
45
|
-
SearchInput,
|
|
46
45
|
SectionHeader,
|
|
47
46
|
Slider,
|
|
48
47
|
StatusDot,
|
|
@@ -107,7 +106,7 @@ function InputPreview({
|
|
|
107
106
|
const onValueChange = (nextValue: string) => setState({ textValue: nextValue })
|
|
108
107
|
|
|
109
108
|
if (slug === "search-input") {
|
|
110
|
-
return <
|
|
109
|
+
return <Input type="search" value={value} onValueChange={onValueChange} resultCount={12} shortcut="Ctrl K" placeholder="Search customers..." />
|
|
111
110
|
}
|
|
112
111
|
|
|
113
112
|
if (slug === "password-input") {
|
|
@@ -163,7 +162,7 @@ function FormPreview({
|
|
|
163
162
|
</label>
|
|
164
163
|
<label className="grid gap-2">
|
|
165
164
|
<span className="text-sm font-medium text-[color:var(--aui-page-foreground)]">Status</span>
|
|
166
|
-
<
|
|
165
|
+
<Input type="search" value="Active customers" resultCount={7} readOnly />
|
|
167
166
|
<span className="text-xs text-emerald-500">Ready to submit</span>
|
|
168
167
|
</label>
|
|
169
168
|
</div>
|
|
@@ -449,7 +448,7 @@ function ActionsPreview({
|
|
|
449
448
|
if (slug === "filter-bar") {
|
|
450
449
|
return (
|
|
451
450
|
<FilterBar
|
|
452
|
-
search={<
|
|
451
|
+
search={<Input type="search" value={state.textValue} onValueChange={(value) => setState({ textValue: value })} placeholder="Search invoices..." />}
|
|
453
452
|
onReset={() => setState({ textValue: "" })}
|
|
454
453
|
chips={[
|
|
455
454
|
{ key: "status", label: "Status", value: "Active", tone: "success" },
|
|
@@ -599,7 +598,7 @@ function DataTablePartsPreview({ slug }: { slug: string }) {
|
|
|
599
598
|
return (
|
|
600
599
|
<div className="overflow-hidden rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)]">
|
|
601
600
|
<div className="flex flex-wrap items-center justify-between gap-3 border-b border-[color:var(--aui-divider)] p-3">
|
|
602
|
-
<
|
|
601
|
+
<Input type="search" value="" placeholder="Search rows..." className="max-w-xs" readOnly />
|
|
603
602
|
<div className="flex gap-2">
|
|
604
603
|
<Button variant="outline" size="sm"><FilterIcon data-icon="inline-start" />Filters</Button>
|
|
605
604
|
<Button size="sm">Create</Button>
|
|
@@ -702,7 +701,7 @@ function PatternsPreview({ slug }: { slug: string }) {
|
|
|
702
701
|
<StatCard title="Health" value="94%" trend={{ value: "Stable", tone: "default" }} />
|
|
703
702
|
</div>
|
|
704
703
|
}
|
|
705
|
-
filters={<FilterBar search={<
|
|
704
|
+
filters={<FilterBar search={<Input type="search" value="" placeholder="Search..." readOnly />} activeCount={1} />}
|
|
706
705
|
>
|
|
707
706
|
<ResourcePageSection title="Recent activity">
|
|
708
707
|
<Timeline
|