@ozen-ui/kit 0.43.0 → 0.44.0

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.
@@ -0,0 +1,5 @@
1
+ {
2
+ "main": "../__inner__/cjs/components/Calendar/index.js",
3
+ "module": "../__inner__/esm/components/Calendar/index.js",
4
+ "types": "../__inner__/esm/components/Calendar/index.d.ts"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "main": "../__inner__/cjs/components/DatePicker/index.js",
3
+ "module": "../__inner__/esm/components/DatePicker/index.js",
4
+ "types": "../__inner__/esm/components/DatePicker/index.d.ts"
5
+ }
@@ -31,6 +31,7 @@ export type CardBaseProps = {
31
31
  children: ReactNode;
32
32
  /** Дополнительные СSS-классы */
33
33
  className?: string;
34
+ /** Идентификатор компонента для тестов */
34
35
  'data-testid'?: string;
35
36
  };
36
37
  export type CardProps<As extends ElementType = 'div'> = PolymorphicComponentPropsWithRef<CardBaseProps, As>;
@@ -15,9 +15,9 @@ exports.cardBorderVariant = ['solid', 'dashed'];
15
15
  exports.cardBorderColorVariant = ['standard', 'selected'];
16
16
  exports.cardBackgroundColorVariant = ['standard', 'selected'];
17
17
  var matchBorderRadiusPaperToCard = {
18
- s: 'xs',
19
- m: 's',
20
- l: 'l',
18
+ s: 'l',
19
+ m: 'xl',
20
+ l: '2xl',
21
21
  };
22
22
  var matchBackgroundColorPaperToCard = {
23
23
  selected: 'action-light',
@@ -23,6 +23,10 @@
23
23
  --paper-border-radius: var(--border-radius-xl);
24
24
  }
25
25
 
26
+ .Paper_radius_2xl {
27
+ --paper-border-radius: var(--border-radius-2xl);
28
+ }
29
+
26
30
  .Paper_background_main {
27
31
  --paper-background-color: var(--color-background-main);
28
32
  }
@@ -2,15 +2,18 @@ import './Paper.css';
2
2
  import { type ComponentRef, type ElementType } from 'react';
3
3
  import { type PolymorphicComponentPropsWithRef } from '../../utils/polymorphicComponentWithRef';
4
4
  export declare const PAPER_DEFAULT_TAG = "div";
5
- export declare const paperRadiusVariant: readonly ["xs", "s", "l", "xl"];
5
+ export declare const paperRadiusVariant: readonly ["xs", "s", "l", "xl", "2xl"];
6
6
  export type PaperRadiusVariant = (typeof paperRadiusVariant)[number];
7
7
  export declare const paperBackgroundVariant: readonly ["main", "main-inverse", "action-light", "accent"];
8
8
  export type PaperBackgroundVariant = (typeof paperBackgroundVariant)[number];
9
9
  export declare const paperShadowVariant: readonly ["m", "l"];
10
10
  export type PaperShadowVariant = (typeof paperShadowVariant)[number];
11
11
  export type PaperBaseProps = {
12
+ /** Радиус скругления границы */
12
13
  radius?: PaperRadiusVariant;
14
+ /** Фон */
13
15
  background?: PaperBackgroundVariant;
16
+ /** Тень */
14
17
  shadow?: PaperShadowVariant;
15
18
  };
16
19
  export type PaperProps<As extends ElementType = typeof PAPER_DEFAULT_TAG> = PolymorphicComponentPropsWithRef<PaperBaseProps, As>;
@@ -8,7 +8,7 @@ var useThemeProps_1 = require("../../hooks/useThemeProps");
8
8
  var classname_1 = require("../../utils/classname");
9
9
  var polymorphicComponentWithRef_1 = require("../../utils/polymorphicComponentWithRef");
10
10
  exports.PAPER_DEFAULT_TAG = 'div';
11
- exports.paperRadiusVariant = ['xs', 's', 'l', 'xl'];
11
+ exports.paperRadiusVariant = ['xs', 's', 'l', 'xl', '2xl'];
12
12
  exports.paperBackgroundVariant = [
13
13
  'main',
14
14
  'main-inverse',
@@ -1,6 +1,7 @@
1
1
  .Theme_borderRadius_ozenDefault {
2
2
  --border-radius-l: 12px;
3
3
  --border-radius-xl: 16px;
4
+ --border-radius-2xl: 24px;
4
5
  --border-radius-m: 8px;
5
6
  --border-radius-s: 6px;
6
7
  --border-radius-xs: 4px;
@@ -1,5 +1,5 @@
1
1
  export declare const color: readonly ["--color-content-primary", "--color-content-secondary", "--color-content-tertiary", "--color-content-disabled", "--color-content-ghost-disabled", "--color-content-action", "--color-content-action-hover", "--color-content-action-pressed", "--color-content-action-dark", "--color-content-action-secondary", "--color-content-action-secondary-hover", "--color-content-action-secondary-pressed", "--color-content-action-secondary-dark", "--color-content-action-on", "--color-content-error", "--color-content-error-hover", "--color-content-error-pressed", "--color-content-error-dark", "--color-content-warning", "--color-content-warning-hover", "--color-content-warning-pressed", "--color-content-warning-dark", "--color-content-success", "--color-content-success-hover", "--color-content-success-pressed", "--color-content-success-dark", "--color-content-info", "--color-content-info-hover", "--color-content-info-pressed", "--color-content-info-dark", "--color-content-primary-inverse", "--color-content-accent-secondary", "--color-accent-main", "--color-content-accent-primary", "--color-accent-primary", "--color-content-accent-disabled", "--color-background-main", "--color-background-main-hover", "--color-background-main-pressed", "--color-background-primary", "--color-background-primary-hover", "--color-background-primary-pressed", "--color-background-secondary", "--color-background-secondary-hover", "--color-background-secondary-pressed", "--color-background-tertiary", "--color-background-tertiary-hover", "--color-background-tertiary-pressed", "--color-background-disabled", "--color-background-action", "--color-background-action-hover", "--color-background-action-pressed", "--color-background-action-active-disabled", "--color-background-action-light", "--color-background-action-light-hover", "--color-background-action-light-pressed", "--color-background-accent-action-light", "--color-background-accent-action-light-hover", "--color-background-accent-action-light-pressed", "--color-background-action-secondary", "--color-background-action-secondary-hover", "--color-background-action-secondary-pressed", "--color-background-action-secondary-active-disabled", "--color-background-action-secondary-light", "--color-background-action-secondary-light-hover", "--color-background-action-secondary-light-pressed", "--color-background-accent-action-secondary-light", "--color-background-accent-action-secondary-light-hover", "--color-background-accent-action-secondary-light-pressed", "--color-background-error", "--color-background-error-hover", "--color-background-error-pressed", "--color-background-error-light", "--color-background-error-light-hover", "--color-background-error-light-pressed", "--color-background-accent-error-light", "--color-background-accent-error-light-hover", "--color-background-accent-error-light-pressed", "--color-background-warning", "--color-background-warning-hover", "--color-background-warning-pressed", "--color-background-warning-light", "--color-background-warning-light-hover", "--color-background-warning-light-pressed", "--color-background-accent-warning-light", "--color-background-accent-warning-light-hover", "--color-background-accent-warning-light-pressed", "--color-background-success", "--color-background-success-hover", "--color-background-success-pressed", "--color-background-success-light", "--color-background-success-light-hover", "--color-background-success-light-pressed", "--color-background-accent-success-light", "--color-background-accent-success-light-hover", "--color-background-accent-success-light-pressed", "--color-background-info", "--color-background-info-hover", "--color-background-info-pressed", "--color-background-info-light", "--color-background-info-light-hover", "--color-background-info-light-pressed", "--color-background-accent-info-light", "--color-background-accent-info-light-hover", "--color-background-accent-info-light-pressed", "--color-background-main-inverse", "--color-background-overlay", "--color-background-ghost", "--color-background-ghost-hover", "--color-background-ghost-pressed", "--color-background-ghost-disabled", "--color-border-main", "--color-border-main-hover", "--color-border-main-pressed", "--color-border-secondary", "--color-border-secondary-hover", "--color-border-secondary-pressed", "--color-border-disabled", "--color-border-ghost-disabled", "--color-border-focused", "--color-border-action", "--color-border-action-hover", "--color-border-action-pressed", "--color-border-action-secondary", "--color-border-action-secondary-hover", "--color-border-action-secondary-pressed", "--color-border-error", "--color-border-warning", "--color-border-success", "--color-border-info", "--color-border-main-on", "--color-border-accent-main", "--color-border-accent-disabled", "--color-border-accent-focused", "--color-accent-main-hover", "--color-accent-main-pressed", "--color-accent-primary-hover", "--color-accent-primary-pressed", "--color-accent-secondary", "--color-accent-secondary-hover", "--color-accent-secondary-pressed", "--color-accent-tertiary", "--color-accent-tertiary-hover", "--color-accent-tertiary-pressed", "--color-accent-disabled", "--color-accent-main-inverse", "--color-additional-a1", "--color-additional-a2", "--color-additional-a3", "--color-additional-b1", "--color-additional-b2", "--color-additional-b3", "--color-additional-c1", "--color-additional-c2", "--color-additional-c3", "--color-additional-d1", "--color-additional-d2", "--color-additional-d3", "--color-additional-e1", "--color-additional-e2", "--color-additional-e3", "--color-additional-f1", "--color-additional-f2", "--color-additional-f3", "--color-additional-g1", "--color-additional-g2", "--color-additional-g3", "--color-additional-h1", "--color-additional-h2", "--color-additional-h3"];
2
- export declare const borderRadius: readonly ["--border-radius-l", "--border-radius-xl", "--border-radius-m", "--border-radius-s", "--border-radius-xs", "--border-radius-2xs"];
2
+ export declare const borderRadius: readonly ["--border-radius-l", "--border-radius-xl", "--border-radius-2xl", "--border-radius-m", "--border-radius-s", "--border-radius-xs", "--border-radius-2xs"];
3
3
  export declare const borderWidth: readonly ["--border-width-s", "--border-width-m"];
4
4
  export declare const shadow: readonly ["--shadow-l", "--shadow-m", "--shadow-s"];
5
5
  export declare const breakpoint: readonly ["--breakpoint-xs", "--breakpoint-s", "--breakpoint-m", "--breakpoint-l"];
@@ -176,6 +176,7 @@ exports.color = [
176
176
  exports.borderRadius = [
177
177
  '--border-radius-l',
178
178
  '--border-radius-xl',
179
+ '--border-radius-2xl',
179
180
  '--border-radius-m',
180
181
  '--border-radius-s',
181
182
  '--border-radius-xs',
@@ -31,6 +31,7 @@ export type CardBaseProps = {
31
31
  children: ReactNode;
32
32
  /** Дополнительные СSS-классы */
33
33
  className?: string;
34
+ /** Идентификатор компонента для тестов */
34
35
  'data-testid'?: string;
35
36
  };
36
37
  export type CardProps<As extends ElementType = 'div'> = PolymorphicComponentPropsWithRef<CardBaseProps, As>;
@@ -12,9 +12,9 @@ export var cardBorderVariant = ['solid', 'dashed'];
12
12
  export var cardBorderColorVariant = ['standard', 'selected'];
13
13
  export var cardBackgroundColorVariant = ['standard', 'selected'];
14
14
  var matchBorderRadiusPaperToCard = {
15
- s: 'xs',
16
- m: 's',
17
- l: 'l',
15
+ s: 'l',
16
+ m: 'xl',
17
+ l: '2xl',
18
18
  };
19
19
  var matchBackgroundColorPaperToCard = {
20
20
  selected: 'action-light',
@@ -23,6 +23,10 @@
23
23
  --paper-border-radius: var(--border-radius-xl);
24
24
  }
25
25
 
26
+ .Paper_radius_2xl {
27
+ --paper-border-radius: var(--border-radius-2xl);
28
+ }
29
+
26
30
  .Paper_background_main {
27
31
  --paper-background-color: var(--color-background-main);
28
32
  }
@@ -2,15 +2,18 @@ import './Paper.css';
2
2
  import { type ComponentRef, type ElementType } from 'react';
3
3
  import { type PolymorphicComponentPropsWithRef } from '../../utils/polymorphicComponentWithRef';
4
4
  export declare const PAPER_DEFAULT_TAG = "div";
5
- export declare const paperRadiusVariant: readonly ["xs", "s", "l", "xl"];
5
+ export declare const paperRadiusVariant: readonly ["xs", "s", "l", "xl", "2xl"];
6
6
  export type PaperRadiusVariant = (typeof paperRadiusVariant)[number];
7
7
  export declare const paperBackgroundVariant: readonly ["main", "main-inverse", "action-light", "accent"];
8
8
  export type PaperBackgroundVariant = (typeof paperBackgroundVariant)[number];
9
9
  export declare const paperShadowVariant: readonly ["m", "l"];
10
10
  export type PaperShadowVariant = (typeof paperShadowVariant)[number];
11
11
  export type PaperBaseProps = {
12
+ /** Радиус скругления границы */
12
13
  radius?: PaperRadiusVariant;
14
+ /** Фон */
13
15
  background?: PaperBackgroundVariant;
16
+ /** Тень */
14
17
  shadow?: PaperShadowVariant;
15
18
  };
16
19
  export type PaperProps<As extends ElementType = typeof PAPER_DEFAULT_TAG> = PolymorphicComponentPropsWithRef<PaperBaseProps, As>;
@@ -5,7 +5,7 @@ import { useThemeProps } from '../../hooks/useThemeProps';
5
5
  import { cn } from '../../utils/classname';
6
6
  import { polymorphicComponentWithRef, } from '../../utils/polymorphicComponentWithRef';
7
7
  export var PAPER_DEFAULT_TAG = 'div';
8
- export var paperRadiusVariant = ['xs', 's', 'l', 'xl'];
8
+ export var paperRadiusVariant = ['xs', 's', 'l', 'xl', '2xl'];
9
9
  export var paperBackgroundVariant = [
10
10
  'main',
11
11
  'main-inverse',
@@ -1,6 +1,7 @@
1
1
  .Theme_borderRadius_ozenDefault {
2
2
  --border-radius-l: 12px;
3
3
  --border-radius-xl: 16px;
4
+ --border-radius-2xl: 24px;
4
5
  --border-radius-m: 8px;
5
6
  --border-radius-s: 6px;
6
7
  --border-radius-xs: 4px;
@@ -1,5 +1,5 @@
1
1
  export declare const color: readonly ["--color-content-primary", "--color-content-secondary", "--color-content-tertiary", "--color-content-disabled", "--color-content-ghost-disabled", "--color-content-action", "--color-content-action-hover", "--color-content-action-pressed", "--color-content-action-dark", "--color-content-action-secondary", "--color-content-action-secondary-hover", "--color-content-action-secondary-pressed", "--color-content-action-secondary-dark", "--color-content-action-on", "--color-content-error", "--color-content-error-hover", "--color-content-error-pressed", "--color-content-error-dark", "--color-content-warning", "--color-content-warning-hover", "--color-content-warning-pressed", "--color-content-warning-dark", "--color-content-success", "--color-content-success-hover", "--color-content-success-pressed", "--color-content-success-dark", "--color-content-info", "--color-content-info-hover", "--color-content-info-pressed", "--color-content-info-dark", "--color-content-primary-inverse", "--color-content-accent-secondary", "--color-accent-main", "--color-content-accent-primary", "--color-accent-primary", "--color-content-accent-disabled", "--color-background-main", "--color-background-main-hover", "--color-background-main-pressed", "--color-background-primary", "--color-background-primary-hover", "--color-background-primary-pressed", "--color-background-secondary", "--color-background-secondary-hover", "--color-background-secondary-pressed", "--color-background-tertiary", "--color-background-tertiary-hover", "--color-background-tertiary-pressed", "--color-background-disabled", "--color-background-action", "--color-background-action-hover", "--color-background-action-pressed", "--color-background-action-active-disabled", "--color-background-action-light", "--color-background-action-light-hover", "--color-background-action-light-pressed", "--color-background-accent-action-light", "--color-background-accent-action-light-hover", "--color-background-accent-action-light-pressed", "--color-background-action-secondary", "--color-background-action-secondary-hover", "--color-background-action-secondary-pressed", "--color-background-action-secondary-active-disabled", "--color-background-action-secondary-light", "--color-background-action-secondary-light-hover", "--color-background-action-secondary-light-pressed", "--color-background-accent-action-secondary-light", "--color-background-accent-action-secondary-light-hover", "--color-background-accent-action-secondary-light-pressed", "--color-background-error", "--color-background-error-hover", "--color-background-error-pressed", "--color-background-error-light", "--color-background-error-light-hover", "--color-background-error-light-pressed", "--color-background-accent-error-light", "--color-background-accent-error-light-hover", "--color-background-accent-error-light-pressed", "--color-background-warning", "--color-background-warning-hover", "--color-background-warning-pressed", "--color-background-warning-light", "--color-background-warning-light-hover", "--color-background-warning-light-pressed", "--color-background-accent-warning-light", "--color-background-accent-warning-light-hover", "--color-background-accent-warning-light-pressed", "--color-background-success", "--color-background-success-hover", "--color-background-success-pressed", "--color-background-success-light", "--color-background-success-light-hover", "--color-background-success-light-pressed", "--color-background-accent-success-light", "--color-background-accent-success-light-hover", "--color-background-accent-success-light-pressed", "--color-background-info", "--color-background-info-hover", "--color-background-info-pressed", "--color-background-info-light", "--color-background-info-light-hover", "--color-background-info-light-pressed", "--color-background-accent-info-light", "--color-background-accent-info-light-hover", "--color-background-accent-info-light-pressed", "--color-background-main-inverse", "--color-background-overlay", "--color-background-ghost", "--color-background-ghost-hover", "--color-background-ghost-pressed", "--color-background-ghost-disabled", "--color-border-main", "--color-border-main-hover", "--color-border-main-pressed", "--color-border-secondary", "--color-border-secondary-hover", "--color-border-secondary-pressed", "--color-border-disabled", "--color-border-ghost-disabled", "--color-border-focused", "--color-border-action", "--color-border-action-hover", "--color-border-action-pressed", "--color-border-action-secondary", "--color-border-action-secondary-hover", "--color-border-action-secondary-pressed", "--color-border-error", "--color-border-warning", "--color-border-success", "--color-border-info", "--color-border-main-on", "--color-border-accent-main", "--color-border-accent-disabled", "--color-border-accent-focused", "--color-accent-main-hover", "--color-accent-main-pressed", "--color-accent-primary-hover", "--color-accent-primary-pressed", "--color-accent-secondary", "--color-accent-secondary-hover", "--color-accent-secondary-pressed", "--color-accent-tertiary", "--color-accent-tertiary-hover", "--color-accent-tertiary-pressed", "--color-accent-disabled", "--color-accent-main-inverse", "--color-additional-a1", "--color-additional-a2", "--color-additional-a3", "--color-additional-b1", "--color-additional-b2", "--color-additional-b3", "--color-additional-c1", "--color-additional-c2", "--color-additional-c3", "--color-additional-d1", "--color-additional-d2", "--color-additional-d3", "--color-additional-e1", "--color-additional-e2", "--color-additional-e3", "--color-additional-f1", "--color-additional-f2", "--color-additional-f3", "--color-additional-g1", "--color-additional-g2", "--color-additional-g3", "--color-additional-h1", "--color-additional-h2", "--color-additional-h3"];
2
- export declare const borderRadius: readonly ["--border-radius-l", "--border-radius-xl", "--border-radius-m", "--border-radius-s", "--border-radius-xs", "--border-radius-2xs"];
2
+ export declare const borderRadius: readonly ["--border-radius-l", "--border-radius-xl", "--border-radius-2xl", "--border-radius-m", "--border-radius-s", "--border-radius-xs", "--border-radius-2xs"];
3
3
  export declare const borderWidth: readonly ["--border-width-s", "--border-width-m"];
4
4
  export declare const shadow: readonly ["--shadow-l", "--shadow-m", "--shadow-s"];
5
5
  export declare const breakpoint: readonly ["--breakpoint-xs", "--breakpoint-s", "--breakpoint-m", "--breakpoint-l"];
@@ -173,6 +173,7 @@ export var color = [
173
173
  export var borderRadius = [
174
174
  '--border-radius-l',
175
175
  '--border-radius-xl',
176
+ '--border-radius-2xl',
176
177
  '--border-radius-m',
177
178
  '--border-radius-s',
178
179
  '--border-radius-xs',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozen-ui/kit",
3
- "version": "0.43.0",
3
+ "version": "0.44.0",
4
4
  "description": "React component library",
5
5
  "files": [
6
6
  "*"
@@ -27,9 +27,9 @@
27
27
  "react-popper": "^2.3.0",
28
28
  "react-transition-group": "^4.4.5",
29
29
  "tslib": "^2.6.2",
30
- "@ozen-ui/fonts": "0.43.0",
31
- "@ozen-ui/icons": "0.43.0",
32
- "@ozen-ui/logger": "0.43.0"
30
+ "@ozen-ui/fonts": "0.44.0",
31
+ "@ozen-ui/logger": "0.44.0",
32
+ "@ozen-ui/icons": "0.44.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": ">=17.0.2 <19.0.0",