@cuby-ui/core 0.0.193 → 0.0.194
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/README.md +24 -24
- package/animations/animations.d.ts +36 -36
- package/animations/index.d.ts +1 -1
- package/classes/accessors.d.ts +17 -17
- package/classes/driver.d.ts +16 -16
- package/classes/index.d.ts +3 -3
- package/classes/vehicle.d.ts +6 -6
- package/components/accordion/accordion-item/accordion-item.component.d.ts +11 -11
- package/components/accordion/accordion.component.d.ts +5 -5
- package/components/accordion/accordion.module.d.ts +11 -11
- package/components/accordion/index.d.ts +3 -3
- package/components/alert/alert.component.d.ts +13 -13
- package/components/alert/alert.interfaces.d.ts +9 -9
- package/components/alert/alert.module.d.ts +11 -11
- package/components/alert/alert.service.d.ts +7 -7
- package/components/alert/alert.tokens.d.ts +16 -16
- package/components/alert/alert.types.d.ts +3 -3
- package/components/alert/alerts.component.d.ts +17 -17
- package/components/alert/index.d.ts +8 -8
- package/components/badge/badge.component.d.ts +10 -10
- package/components/badge/badge.module.d.ts +8 -8
- package/components/badge/badge.options.d.ts +8 -8
- package/components/badge/index.d.ts +2 -2
- package/components/banner/banner.component.d.ts +21 -21
- package/components/banner/banner.module.d.ts +11 -11
- package/components/banner/banner.options.d.ts +13 -13
- package/components/banner/index.d.ts +3 -3
- package/components/breadcrumbs/breadcrumb/breadcrumb.component.d.ts +6 -6
- package/components/breadcrumbs/breadcrumbs.component.d.ts +7 -7
- package/components/breadcrumbs/breadcrumbs.module.d.ts +10 -10
- package/components/breadcrumbs/index.d.ts +3 -3
- package/components/button/button.component.d.ts +38 -38
- package/components/button/button.module.d.ts +9 -9
- package/components/button/button.options.d.ts +9 -9
- package/components/button/index.d.ts +3 -3
- package/components/button-group/button-group.component.d.ts +5 -5
- package/components/button-group/button-group.module.d.ts +7 -7
- package/components/button-group/index.d.ts +2 -2
- package/components/checkbox/checkbox.component.d.ts +5 -5
- package/components/checkbox/checkbox.module.d.ts +7 -7
- package/components/checkbox/index.d.ts +2 -2
- package/components/context-menu/context-menu.component.d.ts +39 -39
- package/components/context-menu/context-menu.module.d.ts +9 -9
- package/components/context-menu/index.d.ts +2 -2
- package/components/dialog/dialog-actions/dialog-actions.component.d.ts +5 -5
- package/components/dialog/dialog-header/dialog-header.component.d.ts +13 -13
- package/components/dialog/dialog.component.d.ts +33 -33
- package/components/dialog/dialog.interfaces.d.ts +11 -11
- package/components/dialog/dialog.module.d.ts +14 -14
- package/components/dialog/dialog.service.d.ts +7 -7
- package/components/dialog/dialog.tokens.d.ts +8 -8
- package/components/dialog/dialogs.component.d.ts +18 -18
- package/components/dialog/index.d.ts +8 -8
- package/components/form-field/form-field.component.d.ts +5 -5
- package/components/form-field/form-field.module.d.ts +7 -7
- package/components/form-field/index.d.ts +2 -2
- package/components/hint/hint.component.d.ts +7 -7
- package/components/hint/hint.module.d.ts +7 -7
- package/components/hint/index.d.ts +2 -2
- package/components/icon-button/icon-button.component.d.ts +13 -13
- package/components/icon-button/icon-button.module.d.ts +9 -9
- package/components/icon-button/index.d.ts +2 -2
- package/components/index.d.ts +26 -26
- package/components/input-number/index.d.ts +2 -2
- package/components/input-number/input-number.component.d.ts +38 -38
- package/components/input-number/input-number.module.d.ts +12 -12
- package/components/input-password/index.d.ts +2 -2
- package/components/input-password/input-password.component.d.ts +31 -31
- package/components/input-password/input-password.module.d.ts +11 -11
- package/components/input-text/index.d.ts +2 -2
- package/components/input-text/input-text.component.d.ts +31 -31
- package/components/input-text/input-text.module.d.ts +11 -11
- package/components/input-time/index.d.ts +3 -3
- package/components/input-time/input-time.component.d.ts +36 -36
- package/components/input-time/input-time.module.d.ts +12 -12
- package/components/input-time/input-time.options.d.ts +7 -7
- package/components/label/index.d.ts +2 -2
- package/components/label/label.component.d.ts +6 -6
- package/components/label/label.module.d.ts +8 -8
- package/components/notification/index.d.ts +3 -3
- package/components/notification/notification.component.d.ts +18 -18
- package/components/notification/notification.module.d.ts +9 -9
- package/components/notification/notification.options.d.ts +17 -17
- package/components/radio/index.d.ts +2 -2
- package/components/radio/radio.component.d.ts +5 -5
- package/components/radio/radio.module.d.ts +7 -7
- package/components/root/index.d.ts +3 -3
- package/components/root/root.component.d.ts +11 -11
- package/components/root/root.module.d.ts +11 -11
- package/components/root/root.options.d.ts +1 -1
- package/components/select/index.d.ts +2 -2
- package/components/select/select.component.d.ts +53 -53
- package/components/select/select.module.d.ts +11 -11
- package/components/svg/index.d.ts +2 -2
- package/components/svg/svg.component.d.ts +16 -16
- package/components/svg/svg.module.d.ts +8 -8
- package/components/tabs/index.d.ts +3 -3
- package/components/tabs/tab/index.d.ts +1 -1
- package/components/tabs/tab/tab.component.d.ts +8 -8
- package/components/tabs/tabs.component.d.ts +16 -16
- package/components/tabs/tabs.module.d.ts +8 -8
- package/components/textarea/index.d.ts +2 -2
- package/components/textarea/textarea.component.d.ts +10 -10
- package/components/textarea/textarea.module.d.ts +7 -7
- package/components/toggle/index.d.ts +2 -2
- package/components/toggle/toggle.component.d.ts +5 -5
- package/components/toggle/toggle.module.d.ts +7 -7
- package/directives/index.d.ts +2 -2
- package/directives/text-field-controller/index.d.ts +8 -8
- package/directives/text-field-controller/text-field-controller.module.d.ts +11 -11
- package/directives/text-field-controller/text-field-controller.provider.d.ts +4 -4
- package/directives/text-field-controller/text-field-icon-left.directive.d.ts +9 -9
- package/directives/text-field-controller/text-field-id.directive.d.ts +8 -8
- package/directives/text-field-controller/text-field-is-error.directive.d.ts +8 -8
- package/directives/text-field-controller/text-field-placeholder.directive.d.ts +8 -8
- package/directives/text-field-controller/text-field-size.directive.d.ts +9 -9
- package/directives/text-field-controller/text-field.controller.d.ts +20 -20
- package/directives/tooltip/index.d.ts +16 -16
- package/directives/tooltip/tooltip-describe.directive.d.ts +16 -16
- package/directives/tooltip/tooltip-driver.directive.d.ts +7 -7
- package/directives/tooltip/tooltip-host.directive.d.ts +9 -9
- package/directives/tooltip/tooltip-hover.directive.d.ts +21 -21
- package/directives/tooltip/tooltip-manual.directive.d.ts +13 -13
- package/directives/tooltip/tooltip-options.directive.d.ts +36 -36
- package/directives/tooltip/tooltip-overflow.directive.d.ts +8 -8
- package/directives/tooltip/tooltip-pointer.directive.d.ts +10 -10
- package/directives/tooltip/tooltip-position.directive.d.ts +20 -20
- package/directives/tooltip/tooltip-unstyled.component.d.ts +17 -17
- package/directives/tooltip/tooltip.component.d.ts +33 -33
- package/directives/tooltip/tooltip.d.ts +13 -13
- package/directives/tooltip/tooltip.directive.d.ts +26 -26
- package/directives/tooltip/tooltip.providers.d.ts +5 -5
- package/directives/tooltip/tooltip.service.d.ts +13 -13
- package/directives/tooltip/tooltips.component.d.ts +12 -12
- package/esm2022/animations/animations.mjs +272 -272
- package/esm2022/animations/index.mjs +1 -1
- package/esm2022/classes/accessors.mjs +31 -31
- package/esm2022/classes/driver.mjs +35 -35
- package/esm2022/classes/index.mjs +4 -4
- package/esm2022/classes/vehicle.mjs +7 -7
- package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +28 -28
- package/esm2022/components/accordion/accordion.component.mjs +11 -11
- package/esm2022/components/accordion/accordion.module.mjs +37 -37
- package/esm2022/components/accordion/index.mjs +4 -4
- package/esm2022/components/alert/alert.component.mjs +36 -36
- package/esm2022/components/alert/alert.interfaces.mjs +2 -2
- package/esm2022/components/alert/alert.module.mjs +40 -40
- package/esm2022/components/alert/alert.service.mjs +17 -17
- package/esm2022/components/alert/alert.tokens.mjs +20 -20
- package/esm2022/components/alert/alert.types.mjs +2 -2
- package/esm2022/components/alert/alerts.component.mjs +36 -36
- package/esm2022/components/alert/index.mjs +9 -9
- package/esm2022/components/badge/badge.component.mjs +31 -31
- package/esm2022/components/badge/badge.module.mjs +18 -18
- package/esm2022/components/badge/badge.options.mjs +8 -8
- package/esm2022/components/badge/index.mjs +3 -3
- package/esm2022/components/banner/banner.component.mjs +68 -68
- package/esm2022/components/banner/banner.module.mjs +31 -31
- package/esm2022/components/banner/banner.options.mjs +6 -6
- package/esm2022/components/banner/index.mjs +4 -4
- package/esm2022/components/breadcrumbs/breadcrumb/breadcrumb.component.mjs +16 -16
- package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +17 -17
- package/esm2022/components/breadcrumbs/breadcrumbs.module.mjs +33 -33
- package/esm2022/components/breadcrumbs/index.mjs +4 -4
- package/esm2022/components/button/button.component.mjs +138 -138
- package/esm2022/components/button/button.module.mjs +24 -24
- package/esm2022/components/button/button.options.mjs +10 -10
- package/esm2022/components/button/index.mjs +4 -4
- package/esm2022/components/button-group/button-group.component.mjs +11 -11
- package/esm2022/components/button-group/button-group.module.mjs +16 -16
- package/esm2022/components/button-group/index.mjs +3 -3
- package/esm2022/components/checkbox/checkbox.component.mjs +11 -11
- package/esm2022/components/checkbox/checkbox.module.mjs +16 -16
- package/esm2022/components/checkbox/index.mjs +3 -3
- package/esm2022/components/context-menu/context-menu.component.mjs +148 -146
- package/esm2022/components/context-menu/context-menu.module.mjs +24 -24
- package/esm2022/components/context-menu/index.mjs +3 -3
- package/esm2022/components/dialog/dialog-actions/dialog-actions.component.mjs +11 -11
- package/esm2022/components/dialog/dialog-header/dialog-header.component.mjs +28 -28
- package/esm2022/components/dialog/dialog.component.mjs +67 -67
- package/esm2022/components/dialog/dialog.interfaces.mjs +2 -2
- package/esm2022/components/dialog/dialog.module.mjs +49 -49
- package/esm2022/components/dialog/dialog.service.mjs +17 -17
- package/esm2022/components/dialog/dialog.tokens.mjs +12 -12
- package/esm2022/components/dialog/dialogs.component.mjs +51 -51
- package/esm2022/components/dialog/index.mjs +9 -9
- package/esm2022/components/form-field/form-field.component.mjs +11 -11
- package/esm2022/components/form-field/form-field.module.mjs +16 -16
- package/esm2022/components/form-field/index.mjs +3 -3
- package/esm2022/components/hint/hint.component.mjs +19 -19
- package/esm2022/components/hint/hint.module.mjs +16 -16
- package/esm2022/components/hint/index.mjs +3 -3
- package/esm2022/components/icon-button/icon-button.component.mjs +32 -32
- package/esm2022/components/icon-button/icon-button.module.mjs +24 -24
- package/esm2022/components/icon-button/index.mjs +3 -3
- package/esm2022/components/index.mjs +27 -27
- package/esm2022/components/input-number/index.mjs +3 -3
- package/esm2022/components/input-number/input-number.component.mjs +113 -113
- package/esm2022/components/input-number/input-number.module.mjs +36 -36
- package/esm2022/components/input-password/index.mjs +3 -3
- package/esm2022/components/input-password/input-password.component.mjs +89 -89
- package/esm2022/components/input-password/input-password.module.mjs +33 -33
- package/esm2022/components/input-text/index.mjs +3 -3
- package/esm2022/components/input-text/input-text.component.mjs +87 -87
- package/esm2022/components/input-text/input-text.module.mjs +33 -33
- package/esm2022/components/input-time/index.mjs +4 -4
- package/esm2022/components/input-time/input-time.component.mjs +99 -99
- package/esm2022/components/input-time/input-time.module.mjs +36 -36
- package/esm2022/components/input-time/input-time.options.mjs +8 -8
- package/esm2022/components/label/index.mjs +3 -3
- package/esm2022/components/label/label.component.mjs +17 -17
- package/esm2022/components/label/label.module.mjs +18 -18
- package/esm2022/components/notification/index.mjs +4 -4
- package/esm2022/components/notification/notification.component.mjs +47 -47
- package/esm2022/components/notification/notification.module.mjs +24 -24
- package/esm2022/components/notification/notification.options.mjs +53 -53
- package/esm2022/components/radio/index.mjs +3 -3
- package/esm2022/components/radio/radio.component.mjs +11 -11
- package/esm2022/components/radio/radio.module.mjs +16 -16
- package/esm2022/components/root/index.mjs +4 -4
- package/esm2022/components/root/root.component.mjs +32 -32
- package/esm2022/components/root/root.module.mjs +31 -31
- package/esm2022/components/root/root.options.mjs +1 -1
- package/esm2022/components/select/index.mjs +3 -3
- package/esm2022/components/select/select.component.mjs +172 -172
- package/esm2022/components/select/select.module.mjs +32 -32
- package/esm2022/components/svg/index.mjs +3 -3
- package/esm2022/components/svg/svg.component.mjs +50 -50
- package/esm2022/components/svg/svg.module.mjs +18 -18
- package/esm2022/components/tabs/index.mjs +4 -4
- package/esm2022/components/tabs/tab/index.mjs +1 -1
- package/esm2022/components/tabs/tab/tab.component.mjs +21 -21
- package/esm2022/components/tabs/tabs.component.mjs +49 -49
- package/esm2022/components/tabs/tabs.module.mjs +18 -18
- package/esm2022/components/textarea/index.mjs +3 -3
- package/esm2022/components/textarea/textarea.component.mjs +35 -35
- package/esm2022/components/textarea/textarea.module.mjs +16 -16
- package/esm2022/components/toggle/index.mjs +3 -3
- package/esm2022/components/toggle/toggle.component.mjs +11 -11
- package/esm2022/components/toggle/toggle.module.mjs +16 -16
- package/esm2022/cuby-ui-core.mjs +4 -4
- package/esm2022/directives/index.mjs +3 -3
- package/esm2022/directives/text-field-controller/index.mjs +9 -9
- package/esm2022/directives/text-field-controller/text-field-controller.module.mjs +40 -40
- package/esm2022/directives/text-field-controller/text-field-controller.provider.mjs +24 -24
- package/esm2022/directives/text-field-controller/text-field-icon-left.directive.mjs +21 -21
- package/esm2022/directives/text-field-controller/text-field-id.directive.mjs +21 -21
- package/esm2022/directives/text-field-controller/text-field-is-error.directive.mjs +24 -24
- package/esm2022/directives/text-field-controller/text-field-placeholder.directive.mjs +21 -21
- package/esm2022/directives/text-field-controller/text-field-size.directive.mjs +24 -24
- package/esm2022/directives/text-field-controller/text-field.controller.mjs +25 -25
- package/esm2022/directives/tooltip/index.mjs +17 -17
- package/esm2022/directives/tooltip/tooltip-describe.directive.mjs +45 -45
- package/esm2022/directives/tooltip/tooltip-driver.directive.mjs +18 -18
- package/esm2022/directives/tooltip/tooltip-host.directive.mjs +26 -26
- package/esm2022/directives/tooltip/tooltip-hover.directive.mjs +53 -53
- package/esm2022/directives/tooltip/tooltip-manual.directive.mjs +31 -31
- package/esm2022/directives/tooltip/tooltip-options.directive.mjs +83 -83
- package/esm2022/directives/tooltip/tooltip-overflow.directive.mjs +31 -31
- package/esm2022/directives/tooltip/tooltip-pointer.directive.mjs +31 -31
- package/esm2022/directives/tooltip/tooltip-position.directive.mjs +96 -96
- package/esm2022/directives/tooltip/tooltip-unstyled.component.mjs +40 -40
- package/esm2022/directives/tooltip/tooltip.component.mjs +110 -110
- package/esm2022/directives/tooltip/tooltip.directive.mjs +92 -92
- package/esm2022/directives/tooltip/tooltip.mjs +27 -27
- package/esm2022/directives/tooltip/tooltip.providers.mjs +7 -7
- package/esm2022/directives/tooltip/tooltip.service.mjs +28 -28
- package/esm2022/directives/tooltip/tooltips.component.mjs +33 -33
- package/esm2022/index.mjs +7 -7
- package/esm2022/interfaces/context-menu-item.mjs +2 -2
- package/esm2022/interfaces/index.mjs +3 -3
- package/esm2022/interfaces/option.mjs +2 -2
- package/esm2022/services/index.mjs +5 -5
- package/esm2022/services/position.service.mjs +23 -23
- package/esm2022/services/theme.options.mjs +6 -6
- package/esm2022/services/theme.service.mjs +30 -30
- package/esm2022/services/visual-viewport.service.mjs +28 -28
- package/esm2022/tokens/animations-speed.mjs +8 -8
- package/esm2022/tokens/index.mjs +4 -4
- package/esm2022/tokens/reduced-motion.mjs +6 -6
- package/esm2022/tokens/viewport.mjs +31 -31
- package/esm2022/types/appearance.mjs +2 -2
- package/esm2022/types/hint-type.mjs +2 -2
- package/esm2022/types/index.mjs +10 -10
- package/esm2022/types/point.mjs +2 -2
- package/esm2022/types/portal-item.mjs +2 -2
- package/esm2022/types/position.mjs +2 -2
- package/esm2022/types/resizing.mjs +2 -2
- package/esm2022/types/shape.mjs +2 -2
- package/esm2022/types/size.mjs +2 -2
- package/esm2022/types/status.mjs +2 -2
- package/esm2022/utils/format/index.mjs +3 -3
- package/esm2022/utils/format/remove-spaces.mjs +4 -4
- package/esm2022/utils/format/replace.mjs +5 -5
- package/esm2022/utils/index.mjs +3 -3
- package/esm2022/utils/miscellaneous/index.mjs +4 -4
- package/esm2022/utils/miscellaneous/is-obscured.mjs +8 -8
- package/esm2022/utils/miscellaneous/override-options.mjs +11 -11
- package/esm2022/utils/miscellaneous/to-animation-options.mjs +14 -14
- package/fesm2022/cuby-ui-core.mjs +3195 -3193
- package/fesm2022/cuby-ui-core.mjs.map +1 -1
- package/fonts/Inter-Bold.svg +25443 -25443
- package/fonts/Inter-Medium.svg +25400 -25400
- package/fonts/Inter-Regular.svg +24341 -24341
- package/fonts/Inter-SemiBold.svg +25459 -25459
- package/index.d.ts +6 -6
- package/interfaces/context-menu-item.d.ts +7 -7
- package/interfaces/index.d.ts +2 -2
- package/interfaces/option.d.ts +5 -5
- package/package.json +3 -3
- package/services/index.d.ts +4 -4
- package/services/position.service.d.ts +10 -10
- package/services/theme.options.d.ts +5 -5
- package/services/theme.service.d.ts +12 -12
- package/services/visual-viewport.service.d.ts +9 -9
- package/styles/fonts.scss +51 -51
- package/styles/global.scss +9 -9
- package/styles/mixins/buttons.scss +13 -13
- package/styles/mixins/headings.scss +115 -115
- package/styles/mixins/inputs.scss +91 -91
- package/styles/mixins/lists.scss +5 -5
- package/styles/mixins/paddings.scss +35 -35
- package/styles/mixins/shadows.scss +38 -38
- package/styles/mixins/texts.scss +225 -225
- package/styles/theme.scss +385 -385
- package/styles/variables/colors.scss +253 -253
- package/tokens/animations-speed.d.ts +4 -4
- package/tokens/index.d.ts +3 -3
- package/tokens/reduced-motion.d.ts +1 -1
- package/tokens/viewport.d.ts +7 -7
- package/types/appearance.d.ts +8 -8
- package/types/hint-type.d.ts +1 -1
- package/types/index.d.ts +9 -9
- package/types/point.d.ts +1 -1
- package/types/portal-item.d.ts +9 -9
- package/types/position.d.ts +2 -2
- package/types/resizing.d.ts +2 -2
- package/types/shape.d.ts +1 -1
- package/types/size.d.ts +4 -4
- package/types/status.d.ts +1 -1
- package/utils/format/index.d.ts +2 -2
- package/utils/format/remove-spaces.d.ts +1 -1
- package/utils/format/replace.d.ts +1 -1
- package/utils/index.d.ts +2 -2
- package/utils/miscellaneous/index.d.ts +3 -3
- package/utils/miscellaneous/is-obscured.d.ts +4 -4
- package/utils/miscellaneous/override-options.d.ts +1 -1
- package/utils/miscellaneous/to-animation-options.d.ts +4 -4
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
@use '../variables/colors' as colors;
|
|
2
|
-
@use '../variables/fonts' as fonts;
|
|
3
|
-
@use './texts' as texts;
|
|
4
|
-
@use './paddings' as paddings;
|
|
5
|
-
@use './shadows' as shadows;
|
|
6
|
-
@use './buttons' as buttons;
|
|
7
|
-
|
|
8
|
-
@mixin cui-clear-input() {
|
|
9
|
-
padding: 0;
|
|
10
|
-
outline: none;
|
|
11
|
-
margin: 0;
|
|
12
|
-
border-width: 0;
|
|
13
|
-
appearance: none;
|
|
14
|
-
caret-color: currentColor;
|
|
15
|
-
background: none;
|
|
16
|
-
color: inherit;
|
|
17
|
-
font: inherit;
|
|
18
|
-
line-height: inherit;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@mixin cui-default-input() {
|
|
22
|
-
:host {
|
|
23
|
-
$border-width: 1px;
|
|
24
|
-
|
|
25
|
-
@include paddings.cui-padding(horizontal, 1.75, $border-width);
|
|
26
|
-
@include texts.cui-text-sm-regular();
|
|
27
|
-
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
gap: 8px;
|
|
31
|
-
border: $border-width solid colors.$cui-base-200;
|
|
32
|
-
border-radius: 8px;
|
|
33
|
-
cursor: text;
|
|
34
|
-
background: colors.$cui-input;
|
|
35
|
-
color: colors.$cui-base-900;
|
|
36
|
-
font-family: fonts.$cui-main-font;
|
|
37
|
-
|
|
38
|
-
&:hover {
|
|
39
|
-
border-color: colors.$cui-base-300;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&:focus-within {
|
|
43
|
-
@include shadows.cui-shadow-focused();
|
|
44
|
-
|
|
45
|
-
border-color: colors.$cui-info;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&[data-size='sm'] {
|
|
49
|
-
@include paddings.cui-padding(vertical, 1, $border-width);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&[data-size='md'] {
|
|
53
|
-
@include paddings.cui-padding(vertical, 1.125, $border-width);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&._disabled {
|
|
57
|
-
cursor: not-allowed;
|
|
58
|
-
opacity: 0.5;
|
|
59
|
-
background: colors.$cui-base-50;
|
|
60
|
-
border-color: colors.$cui-base-200;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&._with-error {
|
|
64
|
-
border-color: colors.$cui-danger;
|
|
65
|
-
|
|
66
|
-
&:focus-within {
|
|
67
|
-
@include shadows.cui-shadow-error-focused();
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.c-input {
|
|
73
|
-
@include cui-clear-input();
|
|
74
|
-
|
|
75
|
-
width: 100%;
|
|
76
|
-
|
|
77
|
-
&:disabled {
|
|
78
|
-
cursor: not-allowed;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&::placeholder {
|
|
82
|
-
color: colors.$cui-base-400;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.c-button {
|
|
87
|
-
@include buttons.cui-clear-button();
|
|
88
|
-
|
|
89
|
-
display: flex;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
1
|
+
@use '../variables/colors' as colors;
|
|
2
|
+
@use '../variables/fonts' as fonts;
|
|
3
|
+
@use './texts' as texts;
|
|
4
|
+
@use './paddings' as paddings;
|
|
5
|
+
@use './shadows' as shadows;
|
|
6
|
+
@use './buttons' as buttons;
|
|
7
|
+
|
|
8
|
+
@mixin cui-clear-input() {
|
|
9
|
+
padding: 0;
|
|
10
|
+
outline: none;
|
|
11
|
+
margin: 0;
|
|
12
|
+
border-width: 0;
|
|
13
|
+
appearance: none;
|
|
14
|
+
caret-color: currentColor;
|
|
15
|
+
background: none;
|
|
16
|
+
color: inherit;
|
|
17
|
+
font: inherit;
|
|
18
|
+
line-height: inherit;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin cui-default-input() {
|
|
22
|
+
:host {
|
|
23
|
+
$border-width: 1px;
|
|
24
|
+
|
|
25
|
+
@include paddings.cui-padding(horizontal, 1.75, $border-width);
|
|
26
|
+
@include texts.cui-text-sm-regular();
|
|
27
|
+
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: 8px;
|
|
31
|
+
border: $border-width solid colors.$cui-base-200;
|
|
32
|
+
border-radius: 8px;
|
|
33
|
+
cursor: text;
|
|
34
|
+
background: colors.$cui-input;
|
|
35
|
+
color: colors.$cui-base-900;
|
|
36
|
+
font-family: fonts.$cui-main-font;
|
|
37
|
+
|
|
38
|
+
&:hover {
|
|
39
|
+
border-color: colors.$cui-base-300;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:focus-within {
|
|
43
|
+
@include shadows.cui-shadow-focused();
|
|
44
|
+
|
|
45
|
+
border-color: colors.$cui-info;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[data-size='sm'] {
|
|
49
|
+
@include paddings.cui-padding(vertical, 1, $border-width);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[data-size='md'] {
|
|
53
|
+
@include paddings.cui-padding(vertical, 1.125, $border-width);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&._disabled {
|
|
57
|
+
cursor: not-allowed;
|
|
58
|
+
opacity: 0.5;
|
|
59
|
+
background: colors.$cui-base-50;
|
|
60
|
+
border-color: colors.$cui-base-200;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&._with-error {
|
|
64
|
+
border-color: colors.$cui-danger;
|
|
65
|
+
|
|
66
|
+
&:focus-within {
|
|
67
|
+
@include shadows.cui-shadow-error-focused();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.c-input {
|
|
73
|
+
@include cui-clear-input();
|
|
74
|
+
|
|
75
|
+
width: 100%;
|
|
76
|
+
|
|
77
|
+
&:disabled {
|
|
78
|
+
cursor: not-allowed;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&::placeholder {
|
|
82
|
+
color: colors.$cui-base-400;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.c-button {
|
|
87
|
+
@include buttons.cui-clear-button();
|
|
88
|
+
|
|
89
|
+
display: flex;
|
|
90
|
+
}
|
|
91
|
+
}
|
package/styles/mixins/lists.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@mixin cui-clear-list() {
|
|
2
|
-
padding: 0;
|
|
3
|
-
margin: 0;
|
|
4
|
-
list-style: none;
|
|
5
|
-
}
|
|
1
|
+
@mixin cui-clear-list() {
|
|
2
|
+
padding: 0;
|
|
3
|
+
margin: 0;
|
|
4
|
+
list-style: none;
|
|
5
|
+
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
$space: 8px;
|
|
2
|
-
|
|
3
|
-
@mixin cui-padding($direction, $size, $offset: 0) {
|
|
4
|
-
$padding: $space * $size - $offset;
|
|
5
|
-
|
|
6
|
-
@if ($direction == all) {
|
|
7
|
-
padding: $padding;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@if ($direction == top) {
|
|
11
|
-
padding-top: $padding;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@if ($direction == bottom) {
|
|
15
|
-
padding-bottom: $padding;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@if ($direction == vertical) {
|
|
19
|
-
padding-top: $padding;
|
|
20
|
-
padding-bottom: $padding;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@if ($direction == left) {
|
|
24
|
-
padding-left: $padding;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@if ($direction == right) {
|
|
28
|
-
padding-right: $padding;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@if ($direction == horizontal) {
|
|
32
|
-
padding-right: $padding;
|
|
33
|
-
padding-left: $padding;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
$space: 8px;
|
|
2
|
+
|
|
3
|
+
@mixin cui-padding($direction, $size, $offset: 0) {
|
|
4
|
+
$padding: $space * $size - $offset;
|
|
5
|
+
|
|
6
|
+
@if ($direction == all) {
|
|
7
|
+
padding: $padding;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@if ($direction == top) {
|
|
11
|
+
padding-top: $padding;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@if ($direction == bottom) {
|
|
15
|
+
padding-bottom: $padding;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@if ($direction == vertical) {
|
|
19
|
+
padding-top: $padding;
|
|
20
|
+
padding-bottom: $padding;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@if ($direction == left) {
|
|
24
|
+
padding-left: $padding;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@if ($direction == right) {
|
|
28
|
+
padding-right: $padding;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@if ($direction == horizontal) {
|
|
32
|
+
padding-right: $padding;
|
|
33
|
+
padding-left: $padding;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
@use '../variables/colors' as colors;
|
|
2
|
-
// TODO: вынести все цвета в перемнные
|
|
3
|
-
|
|
4
|
-
@mixin cui-shadow-10() {
|
|
5
|
-
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.04),
|
|
6
|
-
0 1px 4px 0 rgba(0, 0, 0, 0.04);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@mixin cui-shadow-15() {
|
|
10
|
-
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06),
|
|
11
|
-
0 1px 3px 0 rgba(0, 0, 0, 0.10);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@mixin cui-shadow-20() {
|
|
15
|
-
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06),
|
|
16
|
-
0 4px 6px -1px rgba(0, 0, 0, 0.10);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@mixin cui-shadow-25() {
|
|
20
|
-
box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05),
|
|
21
|
-
0 10px 15px -3px rgba(0, 0, 0, 0.10);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@mixin cui-shadow-right() {
|
|
25
|
-
box-shadow: 5px 0 4px 0 rgba(0, 0, 0, 0.05);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@mixin cui-shadow-left() {
|
|
29
|
-
box-shadow: -5px 0 4px 0 rgba(0, 0, 0, 0.05);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@mixin cui-shadow-focused() {
|
|
33
|
-
box-shadow: 0 0 0 2px colors.$cui-focus;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@mixin cui-shadow-error-focused() {
|
|
37
|
-
box-shadow: 0 0 0 2px rgba(217, 45, 32, 0.25);
|
|
38
|
-
}
|
|
1
|
+
@use '../variables/colors' as colors;
|
|
2
|
+
// TODO: вынести все цвета в перемнные
|
|
3
|
+
|
|
4
|
+
@mixin cui-shadow-10() {
|
|
5
|
+
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.04),
|
|
6
|
+
0 1px 4px 0 rgba(0, 0, 0, 0.04);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin cui-shadow-15() {
|
|
10
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06),
|
|
11
|
+
0 1px 3px 0 rgba(0, 0, 0, 0.10);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin cui-shadow-20() {
|
|
15
|
+
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06),
|
|
16
|
+
0 4px 6px -1px rgba(0, 0, 0, 0.10);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@mixin cui-shadow-25() {
|
|
20
|
+
box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05),
|
|
21
|
+
0 10px 15px -3px rgba(0, 0, 0, 0.10);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin cui-shadow-right() {
|
|
25
|
+
box-shadow: 5px 0 4px 0 rgba(0, 0, 0, 0.05);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin cui-shadow-left() {
|
|
29
|
+
box-shadow: -5px 0 4px 0 rgba(0, 0, 0, 0.05);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin cui-shadow-focused() {
|
|
33
|
+
box-shadow: 0 0 0 2px colors.$cui-focus;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@mixin cui-shadow-error-focused() {
|
|
37
|
+
box-shadow: 0 0 0 2px rgba(217, 45, 32, 0.25);
|
|
38
|
+
}
|