@companix/uikit 0.0.35 → 0.0.36
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/package.json +6 -10
- package/dist/Avatar/Avatar.scss +0 -64
- package/dist/Avatar/helpers.d.ts +0 -10
- package/dist/Avatar/index.d.ts +0 -8
- package/dist/Avatar/types.d.ts +0 -2
- package/dist/Button/Button.scss +0 -128
- package/dist/Button/index.d.ts +0 -21
- package/dist/ButtonGroup/ButtonGroup.scss +0 -18
- package/dist/ButtonGroup/index.d.ts +0 -6
- package/dist/Calendar/Calendar.d.ts +0 -14
- package/dist/Calendar/Calendar.scss +0 -125
- package/dist/Calendar/CalendarHeader.d.ts +0 -10
- package/dist/Checkbox/Checkbox.scss +0 -115
- package/dist/Checkbox/index.d.ts +0 -10
- package/dist/Countdown/index.d.ts +0 -6
- package/dist/DateInput/DateInput.scss +0 -11
- package/dist/DateInput/index.d.ts +0 -13
- package/dist/DatePicker/index.d.ts +0 -9
- package/dist/Dialog/Dialog.scss +0 -25
- package/dist/Dialog/Popup.scss +0 -55
- package/dist/Dialog/index.d.ts +0 -16
- package/dist/DialogAlert/Alert.d.ts +0 -19
- package/dist/DialogAlert/Alert.scss +0 -52
- package/dist/DialogAlert/Viewport.d.ts +0 -8
- package/dist/DialogAlert/index.d.ts +0 -11
- package/dist/Drawer/Drawer.scss +0 -112
- package/dist/Drawer/index.d.ts +0 -13
- package/dist/File/index.d.ts +0 -10
- package/dist/FormGroup/FormGroup.scss +0 -32
- package/dist/FormGroup/index.d.ts +0 -9
- package/dist/Icon/icon.scss +0 -18
- package/dist/Icon/index.d.ts +0 -6
- package/dist/Input/Form.scss +0 -67
- package/dist/Input/InlineInput.d.ts +0 -0
- package/dist/Input/Input.d.ts +0 -14
- package/dist/Input/Input.scss +0 -47
- package/dist/Input/InputContainer.d.ts +0 -11
- package/dist/Input/InputElement.d.ts +0 -9
- package/dist/LoadingButton/index.d.ts +0 -5
- package/dist/NumberInput/index.d.ts +0 -23
- package/dist/OptionItem/Option.scss +0 -89
- package/dist/OptionItem/OptionItem.d.ts +0 -6
- package/dist/OptionItem/OptionsList.d.ts +0 -7
- package/dist/Popover/Popover.scss +0 -80
- package/dist/Popover/index.d.ts +0 -27
- package/dist/Progress/Progress.scss +0 -47
- package/dist/Progress/index.d.ts +0 -5
- package/dist/Radio/Radio.scss +0 -148
- package/dist/Radio/index.d.ts +0 -20
- package/dist/Scrollable/ImitateScroll.d.ts +0 -10
- package/dist/Scrollable/Scrollable.scss +0 -50
- package/dist/Scrollable/index.d.ts +0 -33
- package/dist/Segments/Segments.scss +0 -57
- package/dist/Segments/index.d.ts +0 -11
- package/dist/Select/Select.scss +0 -80
- package/dist/Select/SelectInput.d.ts +0 -15
- package/dist/Select/SelectOptions.d.ts +0 -12
- package/dist/Select/SelectRight.d.ts +0 -8
- package/dist/Select/index.d.ts +0 -24
- package/dist/SelectTags/SelectTags.scss +0 -67
- package/dist/SelectTags/index.d.ts +0 -17
- package/dist/Spinner/Spinner.scss +0 -14
- package/dist/Spinner/index.d.ts +0 -7
- package/dist/Switch/Switch.scss +0 -102
- package/dist/Switch/index.d.ts +0 -10
- package/dist/Tabs/Tabs.scss +0 -58
- package/dist/Tabs/index.d.ts +0 -13
- package/dist/TextArea/TextArea.scss +0 -34
- package/dist/TextArea/index.d.ts +0 -7
- package/dist/ThemeProvider/helpers.d.ts +0 -4
- package/dist/ThemeProvider/index.d.ts +0 -12
- package/dist/ThemeProvider/script.d.ts +0 -8
- package/dist/ThemeProvider/types.d.ts +0 -2
- package/dist/TimePicker/index.d.ts +0 -10
- package/dist/Toaster/Toast.d.ts +0 -15
- package/dist/Toaster/Toaster.scss +0 -155
- package/dist/Toaster/Viewport.d.ts +0 -13
- package/dist/Toaster/index.d.ts +0 -20
- package/dist/Tooltip/Tooltip.scss +0 -28
- package/dist/Tooltip/index.d.ts +0 -7
- package/dist/__helpers/createDialogRegistry.d.ts +0 -26
- package/dist/__helpers/createPopoversRegistry.d.ts +0 -19
- package/dist/__hooks/use-frooze-closing.d.ts +0 -5
- package/dist/__hooks/use-input-padding.d.ts +0 -5
- package/dist/__hooks/use-loading.d.ts +0 -8
- package/dist/__hooks/use-local-storage.d.ts +0 -1
- package/dist/__hooks/use-popover-position.d.ts +0 -8
- package/dist/__hooks/use-previos.d.ts +0 -2
- package/dist/__hooks/use-resize.d.ts +0 -3
- package/dist/__hooks/use-scrollbox.d.ts +0 -7
- package/dist/__hooks/use-update.d.ts +0 -1
- package/dist/__hooks/useCalendar.d.ts +0 -17
- package/dist/__hooks/useCalendarOptions-copy.d.ts +0 -22
- package/dist/__hooks/useCalendarOptions.d.ts +0 -31
- package/dist/__libs/calendar.d.ts +0 -25
- package/dist/__utils/RemoveListener.d.ts +0 -3
- package/dist/__utils/utils.d.ts +0 -39
- package/dist/bundle.es.js +0 -88
- package/dist/bundle.es10.js +0 -82
- package/dist/bundle.es11.js +0 -28
- package/dist/bundle.es12.js +0 -77
- package/dist/bundle.es13.js +0 -43
- package/dist/bundle.es14.js +0 -38
- package/dist/bundle.es15.js +0 -58
- package/dist/bundle.es16.js +0 -23
- package/dist/bundle.es17.js +0 -35
- package/dist/bundle.es18.js +0 -27
- package/dist/bundle.es19.js +0 -47
- package/dist/bundle.es2.js +0 -44
- package/dist/bundle.es20.js +0 -25
- package/dist/bundle.es21.js +0 -31
- package/dist/bundle.es22.js +0 -40
- package/dist/bundle.es23.js +0 -18
- package/dist/bundle.es24.js +0 -36
- package/dist/bundle.es25.js +0 -23
- package/dist/bundle.es26.js +0 -44
- package/dist/bundle.es27.js +0 -118
- package/dist/bundle.es28.js +0 -123
- package/dist/bundle.es29.js +0 -76
- package/dist/bundle.es3.js +0 -4
- package/dist/bundle.es30.js +0 -35
- package/dist/bundle.es31.js +0 -14
- package/dist/bundle.es32.js +0 -88
- package/dist/bundle.es33.js +0 -24
- package/dist/bundle.es34.js +0 -9
- package/dist/bundle.es35.js +0 -37
- package/dist/bundle.es36.js +0 -24
- package/dist/bundle.es37.js +0 -13
- package/dist/bundle.es38.js +0 -27
- package/dist/bundle.es39.js +0 -41
- package/dist/bundle.es4.js +0 -47
- package/dist/bundle.es40.js +0 -53
- package/dist/bundle.es41.js +0 -45
- package/dist/bundle.es42.js +0 -11
- package/dist/bundle.es43.js +0 -27
- package/dist/bundle.es44.js +0 -26
- package/dist/bundle.es45.js +0 -89
- package/dist/bundle.es46.js +0 -20
- package/dist/bundle.es47.js +0 -22
- package/dist/bundle.es48.js +0 -26
- package/dist/bundle.es49.js +0 -41
- package/dist/bundle.es5.js +0 -10
- package/dist/bundle.es50.js +0 -5
- package/dist/bundle.es51.js +0 -7
- package/dist/bundle.es52.js +0 -16
- package/dist/bundle.es53.js +0 -16
- package/dist/bundle.es54.js +0 -5
- package/dist/bundle.es55.js +0 -5
- package/dist/bundle.es56.js +0 -72
- package/dist/bundle.es57.js +0 -70
- package/dist/bundle.es58.js +0 -72
- package/dist/bundle.es59.js +0 -14
- package/dist/bundle.es6.js +0 -13
- package/dist/bundle.es60.js +0 -45
- package/dist/bundle.es61.js +0 -17
- package/dist/bundle.es62.js +0 -34
- package/dist/bundle.es63.js +0 -72
- package/dist/bundle.es64.js +0 -16
- package/dist/bundle.es65.js +0 -22
- package/dist/bundle.es66.js +0 -4
- package/dist/bundle.es67.js +0 -78
- package/dist/bundle.es68.js +0 -51
- package/dist/bundle.es69.js +0 -22
- package/dist/bundle.es7.js +0 -87
- package/dist/bundle.es70.js +0 -4
- package/dist/bundle.es71.js +0 -23
- package/dist/bundle.es72.js +0 -4
- package/dist/bundle.es73.js +0 -22
- package/dist/bundle.es74.js +0 -16
- package/dist/bundle.es75.js +0 -4
- package/dist/bundle.es76.js +0 -5
- package/dist/bundle.es77.js +0 -5
- package/dist/bundle.es78.js +0 -22
- package/dist/bundle.es79.js +0 -4
- package/dist/bundle.es8.js +0 -87
- package/dist/bundle.es80.js +0 -22
- package/dist/bundle.es81.js +0 -4
- package/dist/bundle.es9.js +0 -24
- package/dist/css-properties.scss +0 -120
- package/dist/index.d.ts +0 -77
- package/dist/index.scss +0 -28
- package/dist/mixins.scss +0 -102
- package/dist/theme.scss +0 -101
- package/dist/types.d.ts +0 -17
package/dist/index.d.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export { Avatar } from './Avatar';
|
|
2
|
-
export type { AvatarProps } from './Avatar';
|
|
3
|
-
export type { AvatarSize } from './Avatar/types';
|
|
4
|
-
export { avatarSizes } from './Avatar/types';
|
|
5
|
-
export { Button } from './Button';
|
|
6
|
-
export type { ButtonProps, Appearance, Mode, Size } from './Button';
|
|
7
|
-
export { ButtonGroup } from './ButtonGroup';
|
|
8
|
-
export type { ButtonGroupProps } from './ButtonGroup';
|
|
9
|
-
export { Spinner } from './Spinner';
|
|
10
|
-
export type { SpinnerProps } from './Spinner';
|
|
11
|
-
export { Scrollable } from './Scrollable';
|
|
12
|
-
export { ImitateScroll } from './Scrollable/ImitateScroll';
|
|
13
|
-
export type { ImitateScrollProps } from './Scrollable/ImitateScroll';
|
|
14
|
-
export { Segments } from './Segments';
|
|
15
|
-
export type { SegmentsProps } from './Segments';
|
|
16
|
-
export { Popover } from './Popover';
|
|
17
|
-
export type { PopoverProps } from './Popover';
|
|
18
|
-
export { Tooltip } from './Tooltip';
|
|
19
|
-
export type { TooltipProps } from './Tooltip';
|
|
20
|
-
export { Select } from './Select';
|
|
21
|
-
export type { SelectProps } from './Select';
|
|
22
|
-
export { Input } from './Input/Input';
|
|
23
|
-
export type { InputProps } from './Input/Input';
|
|
24
|
-
export { OptionItem } from './OptionItem/OptionItem';
|
|
25
|
-
export type { OptionProps } from './OptionItem/OptionItem';
|
|
26
|
-
export { NumberInput } from './NumberInput';
|
|
27
|
-
export type { NumberInputProps, ReactNumberFormatParams } from './NumberInput';
|
|
28
|
-
export { OptionsList } from './OptionItem/OptionsList';
|
|
29
|
-
export type { OptionsListProps } from './OptionItem/OptionsList';
|
|
30
|
-
export { Checkbox } from './Checkbox';
|
|
31
|
-
export type { CheckboxProps } from './Checkbox';
|
|
32
|
-
export { Switch } from './Switch';
|
|
33
|
-
export type { SwitchProps } from './Switch';
|
|
34
|
-
export { Radio, RadioGroup } from './Radio';
|
|
35
|
-
export type { RadioOption, RadioGroupProps } from './Radio';
|
|
36
|
-
export { Drawer } from './Drawer';
|
|
37
|
-
export type { DrawerProps } from './Drawer';
|
|
38
|
-
export { Dialog } from './Dialog';
|
|
39
|
-
export type { DialogProps, DialogSize } from './Dialog';
|
|
40
|
-
export { AlertDialog } from './DialogAlert/Alert';
|
|
41
|
-
export type { AlertDialogProps } from './DialogAlert/Alert';
|
|
42
|
-
export { LoadingButton } from './LoadingButton';
|
|
43
|
-
export type { LoadingButtonProps } from './LoadingButton';
|
|
44
|
-
export { Tabs } from './Tabs';
|
|
45
|
-
export type { TabsProps } from './Tabs';
|
|
46
|
-
export { Countdown } from './Countdown';
|
|
47
|
-
export type { CountDownProps } from './Countdown';
|
|
48
|
-
export { TextArea } from './TextArea';
|
|
49
|
-
export type { TextAreaProps } from './TextArea';
|
|
50
|
-
export { SelectTags } from './SelectTags';
|
|
51
|
-
export type { SelectTagsProps } from './SelectTags';
|
|
52
|
-
export { DatePicker } from './DatePicker';
|
|
53
|
-
export type { DatePickerProps } from './DatePicker';
|
|
54
|
-
export { DateInput } from './DateInput';
|
|
55
|
-
export type { DateInputProps } from './DateInput';
|
|
56
|
-
export { FileOverlay } from './File';
|
|
57
|
-
export type { FileOverlayProps } from './File';
|
|
58
|
-
export { FormGroup } from './FormGroup';
|
|
59
|
-
export type { FormGroupProps } from './FormGroup';
|
|
60
|
-
export { TimePicker } from './TimePicker';
|
|
61
|
-
export type { TimePickerProps } from './TimePicker';
|
|
62
|
-
export { Icon } from './Icon';
|
|
63
|
-
export type { IconProps } from './Icon';
|
|
64
|
-
export { ProgressBar } from './Progress';
|
|
65
|
-
export type { ProgressBarProps } from './Progress';
|
|
66
|
-
export { ThemeProvider, useTheme } from './ThemeProvider';
|
|
67
|
-
export { ColorSchemeScript, colorSchemeScript } from './ThemeProvider/script';
|
|
68
|
-
export { useLocalStorage } from './__hooks/use-local-storage';
|
|
69
|
-
export { createAlertAgent } from './DialogAlert';
|
|
70
|
-
export { createToaster } from './Toaster';
|
|
71
|
-
export { Toast } from './Toaster/Toast';
|
|
72
|
-
export * from './types';
|
|
73
|
-
export type { CalendarProps } from './Calendar/Calendar';
|
|
74
|
-
export { createDialogsRegistry, DialogShell } from './__helpers/createDialogRegistry';
|
|
75
|
-
export { createPopoversRegistry } from './__helpers/createPopoversRegistry';
|
|
76
|
-
export type { PopupProps } from './__helpers/createDialogRegistry';
|
|
77
|
-
export type { PopoverContentProps } from './__helpers/createPopoversRegistry';
|
package/dist/index.scss
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
@use './Avatar/Avatar.scss';
|
|
2
|
-
@use './Button/Button.scss';
|
|
3
|
-
@use './Icon/icon.scss';
|
|
4
|
-
@use './Popover/Popover.scss';
|
|
5
|
-
@use './Tooltip/Tooltip.scss';
|
|
6
|
-
@use './Checkbox/Checkbox.scss';
|
|
7
|
-
@use './Radio/Radio.scss';
|
|
8
|
-
@use './Tabs/Tabs.scss';
|
|
9
|
-
@use './Toaster/Toaster.scss';
|
|
10
|
-
@use './Dialog/Popup.scss';
|
|
11
|
-
@use './Dialog/Dialog.scss';
|
|
12
|
-
@use './DialogAlert/Alert.scss';
|
|
13
|
-
@use './Drawer/Drawer.scss';
|
|
14
|
-
@use './Select/Select.scss';
|
|
15
|
-
@use './TextArea/TextArea.scss';
|
|
16
|
-
@use './SelectTags/SelectTags.scss';
|
|
17
|
-
@use './OptionItem/Option.scss';
|
|
18
|
-
@use './Input/Input.scss';
|
|
19
|
-
@use './Input/Form.scss';
|
|
20
|
-
@use './DateInput/DateInput.scss';
|
|
21
|
-
@use './Calendar/Calendar.scss';
|
|
22
|
-
@use './Switch/Switch.scss';
|
|
23
|
-
@use './Spinner/Spinner.scss';
|
|
24
|
-
@use './ButtonGroup/ButtonGroup.scss';
|
|
25
|
-
@use './Segments/Segments.scss';
|
|
26
|
-
@use './Scrollable/Scrollable.scss';
|
|
27
|
-
@use './FormGroup/FormGroup.scss';
|
|
28
|
-
@use './Progress/Progress.scss';
|
package/dist/mixins.scss
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
@use './theme.scss';
|
|
2
|
-
@use './css-properties.scss';
|
|
3
|
-
|
|
4
|
-
@use 'sass:map';
|
|
5
|
-
@use 'sass:list';
|
|
6
|
-
@use 'sass:meta';
|
|
7
|
-
|
|
8
|
-
@mixin height($size) {
|
|
9
|
-
height: $size;
|
|
10
|
-
min-height: $size;
|
|
11
|
-
max-height: $size;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@mixin box($size) {
|
|
15
|
-
height: $size;
|
|
16
|
-
width: $size;
|
|
17
|
-
min-width: $size;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@mixin items-spacing($spacing) {
|
|
21
|
-
& > * {
|
|
22
|
-
margin-right: $spacing;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
& > :last-child {
|
|
26
|
-
margin-right: 0;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@mixin truncate-text() {
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
text-overflow: ellipsis;
|
|
33
|
-
white-space: nowrap;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@function get-value($map, $keys...) {
|
|
37
|
-
$current: $map;
|
|
38
|
-
|
|
39
|
-
@each $key in $keys {
|
|
40
|
-
@if meta.type-of($current) != 'map' {
|
|
41
|
-
@return null;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
$current: map.get($current, $key);
|
|
45
|
-
|
|
46
|
-
@if $current == null {
|
|
47
|
-
@return null;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@return $current;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@mixin set-style($property, $source, $keys...) {
|
|
55
|
-
$path: list.append($keys, $property);
|
|
56
|
-
$var-name: get-value($source, $path...);
|
|
57
|
-
|
|
58
|
-
@if $var-name != null {
|
|
59
|
-
@if meta.type-of($var-name) != 'map' {
|
|
60
|
-
#{$property}: $var-name;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@mixin use-styles($component, $keys...) {
|
|
66
|
-
$source: map.get(theme.$tokens, $component);
|
|
67
|
-
|
|
68
|
-
@each $property, $v in css-properties.$properties {
|
|
69
|
-
@include set-style($property, $source, $keys...);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@mixin use-styles-debug($component, $keys...) {
|
|
74
|
-
$source: map.get(theme.$tokens, $component);
|
|
75
|
-
|
|
76
|
-
@debug $source;
|
|
77
|
-
|
|
78
|
-
@each $property, $v in css-properties.$properties {
|
|
79
|
-
@include set-style($property, $source, $keys...);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@function get-var-name($component, $keys...) {
|
|
84
|
-
$source: map.get(theme.$tokens, $component);
|
|
85
|
-
$var-name: get-value($source, $keys...);
|
|
86
|
-
|
|
87
|
-
@return $var-name;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
@mixin use-size($component, $keys...) {
|
|
91
|
-
$name: get-var-name($component, $keys...);
|
|
92
|
-
|
|
93
|
-
@if $name != null {
|
|
94
|
-
@if meta.type-of($name) != 'map' {
|
|
95
|
-
width: $name;
|
|
96
|
-
min-width: $name;
|
|
97
|
-
height: $name;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
$appearances: ('primary', 'neutral', 'positive', 'negative');
|
package/dist/theme.scss
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use 'sass:string';
|
|
3
|
-
@use 'sass:list';
|
|
4
|
-
|
|
5
|
-
$button-appearances: ();
|
|
6
|
-
$tokens: ();
|
|
7
|
-
|
|
8
|
-
@function str-split($string, $delimiter) {
|
|
9
|
-
$result: ();
|
|
10
|
-
$buffer: '';
|
|
11
|
-
|
|
12
|
-
@for $i from 1 through string.length($string) {
|
|
13
|
-
$char: string.slice($string, $i, $i);
|
|
14
|
-
|
|
15
|
-
@if ($char == $delimiter) {
|
|
16
|
-
$result: list.append($result, $buffer);
|
|
17
|
-
$buffer: '';
|
|
18
|
-
} @else {
|
|
19
|
-
$buffer: $buffer + $char;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
$result: list.append($result, $buffer);
|
|
24
|
-
|
|
25
|
-
@return $result;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@function list-slice($list, $start, $end: list.length($list)) {
|
|
29
|
-
$new: ();
|
|
30
|
-
|
|
31
|
-
@for $i from $start through $end {
|
|
32
|
-
$new: list.append($new, list.nth($list, $i));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@return $new;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/// Добавляет значение в многоуровневую карту
|
|
39
|
-
@function map-deep-set($map, $keys, $value) {
|
|
40
|
-
$current: $map;
|
|
41
|
-
$key: list.nth($keys, 1);
|
|
42
|
-
|
|
43
|
-
@if list.length($keys) == 1 {
|
|
44
|
-
@return map.merge(
|
|
45
|
-
$current,
|
|
46
|
-
(
|
|
47
|
-
$key: $value
|
|
48
|
-
)
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
$nested: map.get($current, $key);
|
|
53
|
-
|
|
54
|
-
@if $nested == null {
|
|
55
|
-
$nested: ();
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
$nested: map-deep-set($nested, list-slice($keys, 2), $value);
|
|
59
|
-
|
|
60
|
-
@return map.merge(
|
|
61
|
-
$current,
|
|
62
|
-
(
|
|
63
|
-
$key: $nested
|
|
64
|
-
)
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
@mixin use-button-properties($vars) {
|
|
69
|
-
@each $full-name, $v in $vars {
|
|
70
|
-
// Разбиваем путь: primary-default-enabled-background → ('primary', 'default', 'enabled', 'background')
|
|
71
|
-
$parts: str-split($full-name, '_');
|
|
72
|
-
// Создаём CSS переменную:
|
|
73
|
-
$css-var: string.unquote('var(--btn_#{$full-name})');
|
|
74
|
-
// Глубоко добавляем значение в структуру
|
|
75
|
-
$button-appearances: map-deep-set($button-appearances, $parts, $css-var) !global;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@mixin use-tokens($components) {
|
|
80
|
-
@each $component-name, $v in $components {
|
|
81
|
-
$component-vars: map.get($components, $component-name);
|
|
82
|
-
|
|
83
|
-
@each $path, $v in $component-vars {
|
|
84
|
-
$name: #{$component-name}_#{$path};
|
|
85
|
-
// Разбиваем путь: primary_default_enabled_background → ('primary', 'default', 'enabled', 'background')
|
|
86
|
-
$keys: str-split($name, '_');
|
|
87
|
-
// Создаём CSS переменную:
|
|
88
|
-
$css-var: string.unquote('var(--#{$name})');
|
|
89
|
-
// Глубоко добавляем значение в структуру
|
|
90
|
-
$tokens: map-deep-set($tokens, $keys, $css-var) !global;
|
|
91
|
-
// set scss var
|
|
92
|
-
--#{$name}: #{map.get($component-vars, $path)};
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
@mixin use-css-vars($prefix, $map) {
|
|
98
|
-
@each $name, $value in $map {
|
|
99
|
-
--#{$prefix}_#{$name}: #{$value};
|
|
100
|
-
}
|
|
101
|
-
}
|
package/dist/types.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface Option<T> {
|
|
2
|
-
title: string;
|
|
3
|
-
value: T;
|
|
4
|
-
icon?: React.ReactNode;
|
|
5
|
-
label?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface DateFormat {
|
|
10
|
-
month: number;
|
|
11
|
-
year: number;
|
|
12
|
-
day: number;
|
|
13
|
-
}
|
|
14
|
-
export interface TimeFormat {
|
|
15
|
-
hours: number;
|
|
16
|
-
minutes: number;
|
|
17
|
-
}
|