@de-kit/st-ui 0.1.15 → 0.1.16
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/birthday-picker/birthday-picker.scss +2 -2
- package/dist/components/button/button.scss +1 -1
- package/dist/components/hr/hr.cjs +12 -0
- package/dist/components/hr/hr.cjs.map +1 -0
- package/dist/components/hr/hr.d.cts +7 -0
- package/dist/components/hr/hr.d.ts +7 -0
- package/dist/components/hr/hr.js +12 -0
- package/dist/components/hr/hr.js.map +1 -0
- package/dist/components/hr/hr.scss +8 -0
- package/dist/components/hr/index.d.cts +2 -0
- package/dist/components/hr/index.d.ts +2 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- package/dist/styles/global.scss +2 -2
- package/dist/styles/vars.scss +11 -0
- package/package.json +1 -1
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
.birthday-picker__trigger {
|
|
6
6
|
cursor: pointer;
|
|
7
|
-
padding-right:
|
|
7
|
+
padding-right: 45px;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.birthday-picker__icon {
|
|
12
12
|
position: absolute;
|
|
13
13
|
top: 50%;
|
|
14
|
-
right:
|
|
14
|
+
right: var(--space-3);
|
|
15
15
|
transform: translateY(-50%);
|
|
16
16
|
pointer-events: none;
|
|
17
17
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const require_cn = require("../../lib/cn.cjs");
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
require("./hr.scss");
|
|
4
|
+
// src/components/hr/hr.tsx
|
|
5
|
+
/** Горизонтальный разделитель. Отступы задаёт сам компонент, переопределяются через `className`. */
|
|
6
|
+
const HR = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hr", {
|
|
7
|
+
...props,
|
|
8
|
+
className: require_cn.cn("hr", className)
|
|
9
|
+
});
|
|
10
|
+
exports.HR = HR;
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=hr.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hr.cjs","names":["cn"],"sources":["../../../src/components/hr/hr.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\n\nimport { cn } from '@/lib/cn';\nimport './hr.scss';\n\nexport interface HRProps extends Omit<\n HTMLAttributes<HTMLHRElement>,\n 'children'\n> {\n className?: string;\n}\n\n/** Горизонтальный разделитель. Отступы задаёт сам компонент, переопределяются через `className`. */\nexport const HR = ({ className, ...props }: HRProps) => (\n <hr {...props} className={cn('hr', className)} />\n);\n"],"mappings":";;;;;AAaA,MAAa,MAAM,EAAE,WAAW,GAAG,YACjC,iBAAA,GAAA,kBAAA,IAAA,CAAC,MAAD;CAAI,GAAI;CAAO,WAAWA,WAAAA,GAAG,MAAM,SAAS;AAAI,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
export interface HRProps extends Omit<HTMLAttributes<HTMLHRElement>, 'children'> {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
/** Горизонтальный разделитель. Отступы задаёт сам компонент, переопределяются через `className`. */
|
|
6
|
+
export declare const HR: ({ className, ...props }: HRProps) => import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=hr.d.cts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from "react";
|
|
2
|
+
export interface HRProps extends Omit<HTMLAttributes<HTMLHRElement>, 'children'> {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
/** Горизонтальный разделитель. Отступы задаёт сам компонент, переопределяются через `className`. */
|
|
6
|
+
export declare const HR: ({ className, ...props }: HRProps) => import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=hr.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { cn } from "../../lib/cn.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import "./hr.scss";
|
|
4
|
+
// src/components/hr/hr.tsx
|
|
5
|
+
/** Горизонтальный разделитель. Отступы задаёт сам компонент, переопределяются через `className`. */
|
|
6
|
+
const HR = ({ className, ...props }) => /* @__PURE__ */ jsx("hr", {
|
|
7
|
+
...props,
|
|
8
|
+
className: cn("hr", className)
|
|
9
|
+
});
|
|
10
|
+
export { HR };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=hr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hr.js","names":[],"sources":["../../../src/components/hr/hr.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\n\nimport { cn } from '@/lib/cn';\nimport './hr.scss';\n\nexport interface HRProps extends Omit<\n HTMLAttributes<HTMLHRElement>,\n 'children'\n> {\n className?: string;\n}\n\n/** Горизонтальный разделитель. Отступы задаёт сам компонент, переопределяются через `className`. */\nexport const HR = ({ className, ...props }: HRProps) => (\n <hr {...props} className={cn('hr', className)} />\n);\n"],"mappings":";;;;;AAaA,MAAa,MAAM,EAAE,WAAW,GAAG,YACjC,oBAAC,MAAD;CAAI,GAAI;CAAO,WAAW,GAAG,MAAM,SAAS;AAAI,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -5,6 +5,7 @@ const require_field = require("./components/field/field.cjs");
|
|
|
5
5
|
const require_form = require("./components/form/form.cjs");
|
|
6
6
|
const require_input = require("./components/input/input.cjs");
|
|
7
7
|
const require_birthday_picker = require("./components/birthday-picker/birthday-picker.cjs");
|
|
8
|
+
const require_hr = require("./components/hr/hr.cjs");
|
|
8
9
|
const require_radio = require("./components/radio/radio.cjs");
|
|
9
10
|
const require_phone_input = require("./components/phone-input/phone-input.cjs");
|
|
10
11
|
const require_spinner = require("./components/spinner/spinner.cjs");
|
|
@@ -18,6 +19,7 @@ exports.Form = require_form.Form;
|
|
|
18
19
|
exports.FormActions = require_form.FormActions;
|
|
19
20
|
exports.FormConsent = require_form.FormConsent;
|
|
20
21
|
exports.FormSubmit = require_form.FormSubmit;
|
|
22
|
+
exports.HR = require_hr.HR;
|
|
21
23
|
exports.Input = require_input.Input;
|
|
22
24
|
exports.PHONE_MASK = require_phone_input.PHONE_MASK;
|
|
23
25
|
exports.PhoneInput = require_phone_input.PhoneInput;
|
package/dist/index.d.cts
CHANGED
|
@@ -8,6 +8,8 @@ import { Form, FormActions, FormActionsProps, FormConsent, FormConsentProps, For
|
|
|
8
8
|
import "./components/form/index.cjs";
|
|
9
9
|
import { BirthdayPicker, BirthdayPickerProps } from "./components/birthday-picker/birthday-picker.cjs";
|
|
10
10
|
import "./components/birthday-picker/index.cjs";
|
|
11
|
+
import { HR, HRProps } from "./components/hr/hr.cjs";
|
|
12
|
+
import "./components/hr/index.cjs";
|
|
11
13
|
import { Input, InputProps, InputSize } from "./components/input/input.cjs";
|
|
12
14
|
import "./components/input/index.cjs";
|
|
13
15
|
import { RadioGroup, RadioGroupProps, RadioInput, RadioInputProps } from "./components/radio/radio.cjs";
|
|
@@ -18,4 +20,4 @@ import { Spinner, SpinnerPosition, SpinnerProps } from "./components/spinner/spi
|
|
|
18
20
|
import "./components/spinner/index.cjs";
|
|
19
21
|
import { TextArea, TextAreaProps, TextAreaSize } from "./components/textarea/textarea.cjs";
|
|
20
22
|
import "./components/textarea/index.cjs";
|
|
21
|
-
export { BirthdayPicker, type BirthdayPickerProps, Button, type ButtonAsChildProps, type ButtonComponentProps, type ButtonProps, type ButtonSize, type ButtonVariant, CheckboxInput, type CheckboxInputProps, Field, type FieldHintPlacement, type FieldProps, Form, FormActions, type FormActionsProps, FormConsent, type FormConsentProps, type FormProps, FormSubmit, Input, type InputProps, type InputSize, PHONE_MASK, PhoneInput, type PhoneInputProps, RadioGroup, type RadioGroupProps, RadioInput, type RadioInputProps, Spinner, type SpinnerPosition, type SpinnerProps, TextArea, type TextAreaProps, type TextAreaSize };
|
|
23
|
+
export { BirthdayPicker, type BirthdayPickerProps, Button, type ButtonAsChildProps, type ButtonComponentProps, type ButtonProps, type ButtonSize, type ButtonVariant, CheckboxInput, type CheckboxInputProps, Field, type FieldHintPlacement, type FieldProps, Form, FormActions, type FormActionsProps, FormConsent, type FormConsentProps, type FormProps, FormSubmit, HR, type HRProps, Input, type InputProps, type InputSize, PHONE_MASK, PhoneInput, type PhoneInputProps, RadioGroup, type RadioGroupProps, RadioInput, type RadioInputProps, Spinner, type SpinnerPosition, type SpinnerProps, TextArea, type TextAreaProps, type TextAreaSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ import { Form, FormActions, FormActionsProps, FormConsent, FormConsentProps, For
|
|
|
8
8
|
import "./components/form/index.js";
|
|
9
9
|
import { BirthdayPicker, BirthdayPickerProps } from "./components/birthday-picker/birthday-picker.js";
|
|
10
10
|
import "./components/birthday-picker/index.js";
|
|
11
|
+
import { HR, HRProps } from "./components/hr/hr.js";
|
|
12
|
+
import "./components/hr/index.js";
|
|
11
13
|
import { Input, InputProps, InputSize } from "./components/input/input.js";
|
|
12
14
|
import "./components/input/index.js";
|
|
13
15
|
import { RadioGroup, RadioGroupProps, RadioInput, RadioInputProps } from "./components/radio/radio.js";
|
|
@@ -18,4 +20,4 @@ import { Spinner, SpinnerPosition, SpinnerProps } from "./components/spinner/spi
|
|
|
18
20
|
import "./components/spinner/index.js";
|
|
19
21
|
import { TextArea, TextAreaProps, TextAreaSize } from "./components/textarea/textarea.js";
|
|
20
22
|
import "./components/textarea/index.js";
|
|
21
|
-
export { BirthdayPicker, type BirthdayPickerProps, Button, type ButtonAsChildProps, type ButtonComponentProps, type ButtonProps, type ButtonSize, type ButtonVariant, CheckboxInput, type CheckboxInputProps, Field, type FieldHintPlacement, type FieldProps, Form, FormActions, type FormActionsProps, FormConsent, type FormConsentProps, type FormProps, FormSubmit, Input, type InputProps, type InputSize, PHONE_MASK, PhoneInput, type PhoneInputProps, RadioGroup, type RadioGroupProps, RadioInput, type RadioInputProps, Spinner, type SpinnerPosition, type SpinnerProps, TextArea, type TextAreaProps, type TextAreaSize };
|
|
23
|
+
export { BirthdayPicker, type BirthdayPickerProps, Button, type ButtonAsChildProps, type ButtonComponentProps, type ButtonProps, type ButtonSize, type ButtonVariant, CheckboxInput, type CheckboxInputProps, Field, type FieldHintPlacement, type FieldProps, Form, FormActions, type FormActionsProps, FormConsent, type FormConsentProps, type FormProps, FormSubmit, HR, type HRProps, Input, type InputProps, type InputSize, PHONE_MASK, PhoneInput, type PhoneInputProps, RadioGroup, type RadioGroupProps, RadioInput, type RadioInputProps, Spinner, type SpinnerPosition, type SpinnerProps, TextArea, type TextAreaProps, type TextAreaSize };
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,10 @@ import { Field } from "./components/field/field.js";
|
|
|
4
4
|
import { Form, FormActions, FormConsent, FormSubmit } from "./components/form/form.js";
|
|
5
5
|
import { Input } from "./components/input/input.js";
|
|
6
6
|
import { BirthdayPicker } from "./components/birthday-picker/birthday-picker.js";
|
|
7
|
+
import { HR } from "./components/hr/hr.js";
|
|
7
8
|
import { RadioGroup, RadioInput } from "./components/radio/radio.js";
|
|
8
9
|
import { PHONE_MASK, PhoneInput } from "./components/phone-input/phone-input.js";
|
|
9
10
|
import { Spinner } from "./components/spinner/spinner.js";
|
|
10
11
|
import { TextArea } from "./components/textarea/textarea.js";
|
|
11
12
|
import "./styles/vars.scss";
|
|
12
|
-
export { BirthdayPicker, Button, CheckboxInput, Field, Form, FormActions, FormConsent, FormSubmit, Input, PHONE_MASK, PhoneInput, RadioGroup, RadioInput, Spinner, TextArea };
|
|
13
|
+
export { BirthdayPicker, Button, CheckboxInput, Field, Form, FormActions, FormConsent, FormSubmit, HR, Input, PHONE_MASK, PhoneInput, RadioGroup, RadioInput, Spinner, TextArea };
|
package/dist/styles/global.scss
CHANGED
package/dist/styles/vars.scss
CHANGED
|
@@ -69,7 +69,18 @@
|
|
|
69
69
|
--space-2: 10px;
|
|
70
70
|
--space-3: 15px;
|
|
71
71
|
--space-4: 20px;
|
|
72
|
+
--space-5: 25px;
|
|
72
73
|
--space-6: 30px;
|
|
74
|
+
--space-7: 35px;
|
|
75
|
+
--space-8: 40px;
|
|
76
|
+
--space-9: 45px;
|
|
77
|
+
--space-10: 50px;
|
|
78
|
+
--space-11: 55px;
|
|
79
|
+
--space-12: 60px;
|
|
80
|
+
--space-13: 65px;
|
|
81
|
+
--space-14: 70px;
|
|
82
|
+
--space-15: 75px;
|
|
83
|
+
--space-16: 80px;
|
|
73
84
|
|
|
74
85
|
// Фокус. Одна обводка на всю библиотеку: и box-shadow у инпута, и outline у кнопки.
|
|
75
86
|
--focus-ring-width: 1px;
|