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.
Files changed (37) hide show
  1. package/dist/components/calendar/calendar.cjs +1 -1
  2. package/dist/components/calendar/calendar.js +3 -3
  3. package/dist/components/calendar/date-picker.cjs +1 -1
  4. package/dist/components/calendar/date-picker.js +2 -2
  5. package/dist/components/calendar/date-range-picker.cjs +1 -1
  6. package/dist/components/calendar/date-range-picker.js +2 -4
  7. package/dist/components/data-table/data-table-toolbar.cjs +1 -1
  8. package/dist/components/data-table/data-table-toolbar.js +2 -2
  9. package/dist/components/data-table/data-table.cjs +1 -1
  10. package/dist/components/data-table/data-table.js +3 -3
  11. package/dist/components/inputs/combobox.cjs +1 -1
  12. package/dist/components/inputs/combobox.d.ts +5 -1
  13. package/dist/components/inputs/combobox.js +69 -59
  14. package/dist/components/inputs/simple-select.cjs +1 -1
  15. package/dist/components/inputs/simple-select.d.ts +1 -1
  16. package/dist/components/inputs/simple-select.js +5 -5
  17. package/dist/components/ui/button.cjs +1 -0
  18. package/dist/components/ui/button.d.ts +1 -0
  19. package/dist/components/ui/button.js +2 -0
  20. package/dist/components/ui/input.cjs +1 -0
  21. package/dist/components/ui/input.d.ts +1 -0
  22. package/dist/components/ui/input.js +3 -0
  23. package/dist/showcase/tembro-registry.json.cjs +1 -1
  24. package/dist/showcase/tembro-registry.json.js +1 -1
  25. package/package.json +2 -2
  26. package/packages/cli/dist/index.cjs +2 -2
  27. package/packages/cli/vendor/src/components/calendar/calendar.tsx +3 -3
  28. package/packages/cli/vendor/src/components/calendar/date-picker.tsx +2 -2
  29. package/packages/cli/vendor/src/components/calendar/date-range-picker.tsx +4 -5
  30. package/packages/cli/vendor/src/components/data-table/data-table-toolbar.tsx +2 -2
  31. package/packages/cli/vendor/src/components/data-table/data-table.tsx +3 -3
  32. package/packages/cli/vendor/src/components/inputs/combobox.tsx +71 -41
  33. package/packages/cli/vendor/src/components/inputs/simple-select.tsx +6 -6
  34. package/packages/cli/vendor/src/components/ui/button.tsx +2 -0
  35. package/packages/cli/vendor/src/components/ui/input.tsx +2 -0
  36. package/packages/cli/vendor/src/showcase/tembro-registry.json +1 -1
  37. 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-0.5 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
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-[min(var(--radius-lg),14px)] border px-2.5 py-2 text-sm">
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-[min(var(--radius-lg),14px)] px-3 py-2.5 text-sm text-muted-foreground">
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-[min(var(--radius-lg),14px)] px-3 py-2.5 text-sm text-muted-foreground">{emptyLabel}</div>
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-[min(var(--radius-lg),14px)]", itemClassName)}
143
+ className={cn("rounded-[var(--radius-md)]", itemClassName)}
144
144
  >
145
145
  {renderOption ? (
146
146
  renderOption(option, { selected })
@@ -0,0 +1,2 @@
1
+ export * from "./button/index"
2
+
@@ -0,0 +1,2 @@
1
+ export * from "./input/index"
2
+
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://tembro.dev/registry.schema.json",
3
3
  "name": "tembro",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "description": "Reusable React + TypeScript UI kit registry",
6
6
  "groups": {
7
7
  "ui": [
package/registry.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://tembro.dev/registry.schema.json",
3
3
  "name": "tembro",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "description": "Reusable React + TypeScript UI kit registry",
6
6
  "groups": {
7
7
  "ui": [