@zeturn/watercolor-react 1.2.6 → 1.2.8

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/index.d.ts CHANGED
@@ -266,6 +266,7 @@ export interface CardContentProps extends HtmlComponentProps<HTMLDivElement> { d
266
266
  export interface ChipProps extends HtmlComponentProps<HTMLDivElement> { label?: ReactNode; avatar?: ReactNode; deletable?: boolean; disabled?: boolean; clickable?: boolean; variant?: 'filled' | 'outlined' | 'minimal'; size?: ComponentSize; color?: ComponentColor | 'default'; deleteIcon?: ReactNode; onDelete?: () => void }
267
267
  export interface CircularProgressProps extends HtmlComponentProps<HTMLDivElement> { value?: number; size?: number | string; thickness?: number; variant?: 'determinate' | 'indeterminate'; color?: ComponentColor | 'inherit'; showValue?: boolean; overlay?: boolean; centered?: boolean; inline?: boolean }
268
268
  export interface ColorPickerProps extends Omit<HtmlComponentProps<HTMLDivElement>, 'onChange'> { value?: string; onChange?: (value: string) => void; size?: ComponentSize; shape?: 'circle' | 'square' | 'rounded'; disabled?: boolean }
269
+ export interface CodeBlockProps extends Omit<HtmlComponentProps<HTMLElement>, 'title' | 'onCopy'> { code?: string; language?: string; title?: ReactNode; showLanguage?: boolean; showLineNumbers?: boolean; showCopyButton?: boolean; diff?: boolean; wrap?: boolean; maxHeight?: string | number; onCopy?: (code: string) => void }
269
270
  export interface ContainerProps extends HtmlComponentProps<HTMLDivElement> { maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false | string; fluid?: boolean; fixed?: boolean }
270
271
  export interface CopyProps extends HtmlComponentProps<HTMLButtonElement> { text?: string; value?: string; copied?: boolean; error?: boolean; label?: ReactNode; copiedLabel?: ReactNode; errorLabel?: ReactNode; onCopy?: (value: string) => void; icon?: ReactNode }
271
272
  export interface DatePickerProps extends Omit<HtmlComponentProps<HTMLDivElement>, 'onChange'> { value?: Date | string | null; onChange?: (value: Date) => void; placeholder?: string; disabled?: boolean; size?: ComponentSize; variant?: 'default' | FieldVariant; format?: string; showToday?: boolean; minDate?: Date | string | null; maxDate?: Date | string | null }
@@ -426,6 +427,7 @@ export const Checkbox: ComponentType<CheckboxProps>
426
427
  export const Chip: ComponentType<ChipProps>
427
428
  export const CircularProgress: ComponentType<CircularProgressProps>
428
429
  export const ColorPicker: ComponentType<ColorPickerProps>
430
+ export const CodeBlock: ComponentType<CodeBlockProps>
429
431
  export const Container: ComponentType<ContainerProps>
430
432
  export const Copy: ComponentType<CopyProps>
431
433
  export const DatePicker: ComponentType<DatePickerProps>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeturn/watercolor-react",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "type": "module",
5
5
  "license": "ISC",
6
6
  "main": "dist/watercolor-react.es.js",
@@ -41,11 +41,11 @@
41
41
  "directory": "packages/react"
42
42
  },
43
43
  "peerDependencies": {
44
- "@zeturn/watercolor-icons-feather": "1.2.6",
45
- "@zeturn/watercolor-icons-heroicons-react": "1.2.6",
46
- "@zeturn/watercolor-icons-lucide-react": "1.2.6",
47
- "@zeturn/watercolor-icons-phosphor-react": "1.2.6",
48
- "@zeturn/watercolor-icons-tabler-react": "1.2.6",
44
+ "@zeturn/watercolor-icons-feather": "1.2.8",
45
+ "@zeturn/watercolor-icons-heroicons-react": "1.2.8",
46
+ "@zeturn/watercolor-icons-lucide-react": "1.2.8",
47
+ "@zeturn/watercolor-icons-phosphor-react": "1.2.8",
48
+ "@zeturn/watercolor-icons-tabler-react": "1.2.8",
49
49
  "react": "^18.0.0 || ^19.0.0",
50
50
  "react-dom": "^18.0.0 || ^19.0.0"
51
51
  },
@@ -67,7 +67,7 @@
67
67
  }
68
68
  },
69
69
  "dependencies": {
70
- "@zeturn/watercolor-core": "1.2.6",
70
+ "@zeturn/watercolor-core": "1.2.8",
71
71
  "prop-types": "^15.8.1"
72
72
  },
73
73
  "devDependencies": {