tembro 1.0.2 → 1.0.3
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/calendar/calendar.cjs +1 -1
- package/dist/components/calendar/calendar.js +3 -3
- package/dist/components/calendar/date-picker.cjs +1 -1
- package/dist/components/calendar/date-picker.js +2 -2
- package/dist/components/calendar/date-range-picker.cjs +1 -1
- package/dist/components/calendar/date-range-picker.js +2 -4
- package/dist/components/data-table/data-table-toolbar.cjs +1 -1
- package/dist/components/data-table/data-table-toolbar.js +2 -2
- package/dist/components/data-table/data-table.cjs +1 -1
- package/dist/components/data-table/data-table.js +3 -3
- package/dist/components/inputs/combobox.cjs +1 -1
- package/dist/components/inputs/combobox.d.ts +5 -1
- package/dist/components/inputs/combobox.js +69 -59
- package/dist/components/inputs/simple-select.cjs +1 -1
- package/dist/components/inputs/simple-select.d.ts +1 -1
- package/dist/components/inputs/simple-select.js +5 -5
- package/dist/components/ui/button.cjs +1 -0
- package/dist/components/ui/button.d.ts +1 -0
- package/dist/components/ui/button.js +2 -0
- package/dist/components/ui/input.cjs +1 -0
- package/dist/components/ui/input.d.ts +1 -0
- package/dist/components/ui/input.js +3 -0
- package/dist/showcase/tembro-registry.json.cjs +1 -1
- package/dist/showcase/tembro-registry.json.js +1 -1
- package/package.json +2 -2
- package/packages/cli/dist/index.cjs +2 -2
- package/packages/cli/vendor/src/components/calendar/calendar.tsx +3 -3
- package/packages/cli/vendor/src/components/calendar/date-picker.tsx +2 -2
- package/packages/cli/vendor/src/components/calendar/date-range-picker.tsx +4 -5
- package/packages/cli/vendor/src/components/data-table/data-table-toolbar.tsx +2 -2
- package/packages/cli/vendor/src/components/data-table/data-table.tsx +3 -3
- package/packages/cli/vendor/src/components/inputs/combobox.tsx +71 -41
- package/packages/cli/vendor/src/components/inputs/simple-select.tsx +6 -6
- package/packages/cli/vendor/src/components/ui/button.tsx +2 -0
- package/packages/cli/vendor/src/components/ui/input.tsx +2 -0
- package/packages/cli/vendor/src/showcase/tembro-registry.json +1 -1
- package/registry.json +1 -1
|
@@ -29,7 +29,7 @@ export type SimpleSelectProps = Omit<
|
|
|
29
29
|
searchPlaceholder?: string
|
|
30
30
|
emptyLabel?: React.ReactNode
|
|
31
31
|
clearLabel?: string
|
|
32
|
-
size?: "sm" | "default"
|
|
32
|
+
size?: "sm" | "default" | "lg"
|
|
33
33
|
clearable?: boolean
|
|
34
34
|
searchable?: boolean
|
|
35
35
|
loading?: boolean
|
|
@@ -94,7 +94,7 @@ function SimpleSelect({
|
|
|
94
94
|
<button
|
|
95
95
|
type="button"
|
|
96
96
|
aria-label={clearLabel}
|
|
97
|
-
className="ml-1 rounded-sm p-
|
|
97
|
+
className="ml-1 rounded-[var(--radius-sm)] border border-border/65 p-1 text-muted-foreground transition-colors hover:border-border hover:bg-muted/55 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
98
98
|
onClick={(event) => {
|
|
99
99
|
event.preventDefault()
|
|
100
100
|
stopInteractivePropagation(event)
|
|
@@ -114,7 +114,7 @@ function SimpleSelect({
|
|
|
114
114
|
)}
|
|
115
115
|
>
|
|
116
116
|
{searchable ? (
|
|
117
|
-
<div data-slot="select-search" className="sticky top-0 z-10 mb-1 flex items-center gap-2 rounded-[
|
|
117
|
+
<div data-slot="select-search" className="sticky top-0 z-10 mb-1 flex items-center gap-2 rounded-[var(--radius-md)] border border-[color:var(--aui-card-border,var(--border))] bg-popover px-2.5 py-2 text-sm">
|
|
118
118
|
<SearchIcon className="size-4 text-muted-foreground" />
|
|
119
119
|
<input
|
|
120
120
|
value={search}
|
|
@@ -126,12 +126,12 @@ function SimpleSelect({
|
|
|
126
126
|
) : null}
|
|
127
127
|
|
|
128
128
|
{loading ? (
|
|
129
|
-
<div data-slot="select-state" className="flex items-center gap-2 rounded-[
|
|
129
|
+
<div data-slot="select-state" className="flex items-center gap-2 rounded-[var(--radius-md)] border border-[color:var(--aui-card-border,var(--border))] bg-[color:color-mix(in_oklch,var(--muted),transparent_55%)] px-3 py-2.5 text-sm text-muted-foreground">
|
|
130
130
|
<LoaderCircleIcon className="size-4 animate-spin" />
|
|
131
131
|
{loadingLabel}
|
|
132
132
|
</div>
|
|
133
133
|
) : filteredOptions.length === 0 ? (
|
|
134
|
-
<div data-slot="select-state" className="rounded-[
|
|
134
|
+
<div data-slot="select-state" className="rounded-[var(--radius-md)] border border-[color:var(--aui-card-border,var(--border))] bg-[color:color-mix(in_oklch,var(--muted),transparent_55%)] px-3 py-2.5 text-sm text-muted-foreground">{emptyLabel}</div>
|
|
135
135
|
) : (
|
|
136
136
|
filteredOptions.map((option) => {
|
|
137
137
|
const selected = option.value === value
|
|
@@ -140,7 +140,7 @@ function SimpleSelect({
|
|
|
140
140
|
key={option.value}
|
|
141
141
|
value={option.value}
|
|
142
142
|
disabled={option.disabled}
|
|
143
|
-
className={cn("rounded-[
|
|
143
|
+
className={cn("rounded-[var(--radius-md)]", itemClassName)}
|
|
144
144
|
>
|
|
145
145
|
{renderOption ? (
|
|
146
146
|
renderOption(option, { selected })
|