@alfalab/core-components 47.0.0-beta.1 → 47.0.0-beta.2
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/base-modal/Component.js +2 -1
- package/base-modal/cssm/Component.js +2 -1
- package/base-modal/esm/Component.js +2 -1
- package/base-modal/esm/index.js +1 -0
- package/base-modal/modern/Component.js +2 -1
- package/base-modal/modern/index.js +1 -0
- package/calendar-range/utils.js +3 -1
- package/gallery/components/header/Component.js +1 -1
- package/gallery/components/header/buttons.js +1 -1
- package/gallery/components/image-viewer/component.js +1 -1
- package/gallery/components/image-viewer/slide.js +1 -1
- package/gallery/esm/Component.js +2 -2
- package/gallery/esm/components/header/Component.js +1 -1
- package/gallery/esm/components/header/buttons.js +1 -1
- package/gallery/esm/components/header/index.js +1 -1
- package/gallery/esm/components/image-preview/Component.js +1 -1
- package/gallery/esm/components/image-preview/index.js +1 -1
- package/gallery/esm/components/image-viewer/component.js +1 -1
- package/gallery/esm/components/image-viewer/index.js +1 -1
- package/gallery/esm/components/image-viewer/slide.js +1 -1
- package/gallery/esm/components/index.js +2 -2
- package/gallery/esm/components/navigation-bar/Component.js +1 -1
- package/gallery/esm/components/navigation-bar/index.js +1 -1
- package/gallery/esm/index.js +2 -2
- package/gallery/modern/Component.js +2 -2
- package/gallery/modern/components/header/Component.js +1 -1
- package/gallery/modern/components/header/buttons.js +1 -1
- package/gallery/modern/components/header/index.js +1 -1
- package/gallery/modern/components/image-preview/Component.js +1 -1
- package/gallery/modern/components/image-preview/index.js +1 -1
- package/gallery/modern/components/image-viewer/component.js +1 -1
- package/gallery/modern/components/image-viewer/index.js +1 -1
- package/gallery/modern/components/image-viewer/slide.js +1 -1
- package/gallery/modern/components/index.js +2 -2
- package/gallery/modern/components/navigation-bar/Component.js +1 -1
- package/gallery/modern/components/navigation-bar/index.js +1 -1
- package/gallery/modern/index.js +2 -2
- package/icon-button/Component.d.ts +10 -0
- package/icon-button/Component.js +4 -3
- package/icon-button/cssm/Component.d.ts +10 -0
- package/icon-button/cssm/Component.js +2 -1
- package/icon-button/cssm/default.module.css +35 -3
- package/icon-button/cssm/inverted.module.css +35 -3
- package/icon-button/default.css +35 -3
- package/icon-button/esm/Component.d.ts +10 -0
- package/icon-button/esm/Component.js +4 -3
- package/icon-button/esm/default.css +35 -3
- package/icon-button/esm/inverted.css +35 -3
- package/icon-button/inverted.css +35 -3
- package/icon-button/modern/Component.d.ts +10 -0
- package/icon-button/modern/Component.js +4 -3
- package/icon-button/modern/default.css +35 -3
- package/icon-button/modern/inverted.css +35 -3
- package/input/components/base-input/Component.d.ts +2 -2
- package/input/cssm/components/base-input/Component.d.ts +2 -2
- package/input/esm/components/base-input/Component.d.ts +2 -2
- package/input/modern/components/base-input/Component.d.ts +2 -2
- package/international-phone-input/{Component-1fe708ea.d.ts → Component-0f35b62f.d.ts} +1 -1
- package/international-phone-input/Component.responsive.d.ts +4 -4
- package/international-phone-input/components/base-international-phone-input/Component.d.ts +1 -1
- package/international-phone-input/cssm/{Component-1fe708ea.d.ts → Component-0f35b62f.d.ts} +1 -1
- package/international-phone-input/cssm/Component.responsive.d.ts +4 -4
- package/international-phone-input/cssm/components/base-international-phone-input/Component.d.ts +1 -1
- package/international-phone-input/cssm/index-7ca84eff.d.ts +15 -0
- package/international-phone-input/cssm/types.d.ts +1 -1
- package/international-phone-input/cssm/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +38 -0
- package/international-phone-input/cssm/utils-89376c31.d.ts +1 -1
- package/international-phone-input/esm/{Component-1fe708ea.d.ts → Component-0f35b62f.d.ts} +1 -1
- package/international-phone-input/esm/Component.responsive.d.ts +4 -4
- package/international-phone-input/esm/components/base-international-phone-input/Component.d.ts +1 -1
- package/international-phone-input/esm/index-7ca84eff.d.ts +15 -0
- package/international-phone-input/esm/types.d.ts +1 -1
- package/international-phone-input/esm/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +38 -0
- package/international-phone-input/esm/utils-89376c31.d.ts +1 -1
- package/international-phone-input/index-7ca84eff.d.ts +15 -0
- package/international-phone-input/modern/{Component-1fe708ea.d.ts → Component-0f35b62f.d.ts} +1 -1
- package/international-phone-input/modern/Component.responsive.d.ts +4 -4
- package/international-phone-input/modern/components/base-international-phone-input/Component.d.ts +1 -1
- package/international-phone-input/modern/index-7ca84eff.d.ts +15 -0
- package/international-phone-input/modern/types.d.ts +1 -1
- package/international-phone-input/modern/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +38 -0
- package/international-phone-input/modern/utils-89376c31.d.ts +1 -1
- package/international-phone-input/types.d.ts +1 -1
- package/international-phone-input/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +38 -0
- package/international-phone-input/utils-89376c31.d.ts +1 -1
- package/modal/components/controls/Component.js +1 -1
- package/modal/components/footer/Component.js +1 -1
- package/modal/esm/Component.responsive.js +1 -1
- package/modal/esm/components/controls/Component.js +1 -1
- package/modal/esm/components/controls/index.js +1 -1
- package/modal/esm/components/footer/Component.js +1 -1
- package/modal/esm/desktop/Component.desktop.js +1 -1
- package/modal/esm/desktop/index.js +1 -1
- package/modal/esm/index.js +1 -1
- package/modal/esm/mobile/Component.mobile.js +1 -1
- package/modal/esm/mobile/index.js +1 -1
- package/modal/modern/Component.responsive.js +1 -1
- package/modal/modern/components/controls/Component.js +1 -1
- package/modal/modern/components/controls/index.js +1 -1
- package/modal/modern/components/footer/Component.js +1 -1
- package/modal/modern/desktop/Component.desktop.js +1 -1
- package/modal/modern/desktop/index.js +1 -1
- package/modal/modern/index.js +1 -1
- package/modal/modern/mobile/Component.mobile.js +1 -1
- package/modal/modern/mobile/index.js +1 -1
- package/notification/Component.js +2 -1
- package/notification/cssm/Component.js +2 -1
- package/notification/esm/Component.js +2 -1
- package/notification/esm/index.js +1 -0
- package/notification/modern/Component.js +2 -1
- package/notification/modern/index.js +1 -0
- package/notification-manager/component.js +2 -1
- package/notification-manager/cssm/component.js +2 -1
- package/notification-manager/esm/component.js +2 -1
- package/notification-manager/esm/index.js +1 -0
- package/notification-manager/modern/component.js +2 -1
- package/notification-manager/modern/index.js +1 -0
- package/package.json +2 -1
- package/picker-button/Component-0f35b62f.d.ts +5 -0
- package/picker-button/Component-c44170fe.d.ts +2 -2
- package/picker-button/cssm/Component-0f35b62f.d.ts +5 -0
- package/picker-button/cssm/Component-c44170fe.d.ts +2 -2
- package/picker-button/cssm/field/Component.d.ts +1 -1
- package/picker-button/cssm/index-bdb4c6b9.d.ts +1 -13
- package/picker-button/cssm/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +32 -0
- package/picker-button/cssm/utils-89376c31.d.ts +1 -1
- package/picker-button/esm/Component-0f35b62f.d.ts +5 -0
- package/picker-button/esm/Component-c44170fe.d.ts +2 -2
- package/picker-button/esm/field/Component.d.ts +1 -1
- package/picker-button/esm/index-bdb4c6b9.d.ts +1 -13
- package/picker-button/esm/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +32 -0
- package/picker-button/esm/utils-89376c31.d.ts +1 -1
- package/picker-button/field/Component.d.ts +1 -1
- package/picker-button/index-bdb4c6b9.d.ts +1 -13
- package/picker-button/modern/Component-0f35b62f.d.ts +5 -0
- package/picker-button/modern/Component-c44170fe.d.ts +2 -2
- package/picker-button/modern/field/Component.d.ts +1 -1
- package/picker-button/modern/index-bdb4c6b9.d.ts +1 -13
- package/picker-button/modern/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +32 -0
- package/picker-button/modern/utils-89376c31.d.ts +1 -1
- package/picker-button/{typings-1fe708ea.d.ts → typings-0f35b62f.d.ts} +32 -0
- package/picker-button/utils-89376c31.d.ts +1 -1
- package/popover/Component.js +2 -1
- package/popover/cssm/Component.js +2 -1
- package/popover/esm/Component.js +2 -1
- package/popover/esm/index.js +1 -0
- package/popover/modern/Component.js +2 -1
- package/popover/modern/index.js +1 -0
- package/select/components/base-select/Component.js +2 -2
- package/select/components/options-list/Component.js +2 -2
- package/select/components/virtual-options-list/Component.js +4 -2
- package/select/cssm/components/base-select/Component.js +2 -2
- package/select/cssm/components/options-list/Component.js +2 -2
- package/select/cssm/components/virtual-options-list/Component.js +4 -2
- package/select/cssm/typings.d.ts +32 -0
- package/select/esm/components/base-select/Component.js +2 -2
- package/select/esm/components/options-list/Component.js +2 -2
- package/select/esm/components/virtual-options-list/Component.js +4 -2
- package/select/esm/typings.d.ts +32 -0
- package/select/modern/components/base-select/Component.js +2 -2
- package/select/modern/components/options-list/Component.js +2 -2
- package/select/modern/components/virtual-options-list/Component.js +2 -2
- package/select/modern/typings.d.ts +32 -0
- package/select/typings.d.ts +32 -0
- package/stack/component.js +4 -4
- package/stack/cssm/component.js +4 -4
- package/stack/cssm/index.d.ts +0 -1
- package/stack/cssm/index.js +0 -3
- package/stack/esm/component.js +1 -1
- package/stack/esm/index.d.ts +0 -1
- package/stack/esm/index.js +1 -1
- package/stack/index.d.ts +0 -1
- package/stack/index.js +0 -3
- package/stack/modern/component.js +1 -1
- package/stack/modern/index.d.ts +0 -1
- package/stack/modern/index.js +1 -1
- package/status/Component.d.ts +2 -1
- package/status/Component.js +2 -2
- package/status/cssm/Component.d.ts +2 -1
- package/status/cssm/Component.js +1 -1
- package/status/cssm/index.module.css +74 -29
- package/status/esm/Component.d.ts +2 -1
- package/status/esm/Component.js +2 -2
- package/status/esm/index.css +55 -27
- package/status/index.css +55 -27
- package/status/modern/Component.d.ts +2 -1
- package/status/modern/Component.js +2 -2
- package/status/modern/index.css +55 -27
- package/themes/click.css +0 -1516
- package/themes/compiled/mobile-dark-bluetint.css +210 -50
- package/themes/corp.css +0 -1516
- package/themes/intranet.css +0 -1516
- package/themes/mobile.css +0 -1516
- package/themes/site.css +0 -1516
- package/toast/components/base-toast/component.js +2 -1
- package/toast/cssm/components/base-toast/component.js +2 -1
- package/toast/esm/Component.responsive.js +1 -0
- package/toast/esm/components/base-toast/component.js +2 -1
- package/toast/esm/components/base-toast/index.js +1 -0
- package/toast/esm/desktop/Component.desktop.js +1 -0
- package/toast/esm/desktop/index.js +1 -0
- package/toast/esm/index.js +1 -0
- package/toast/esm/mobile/Component.mobile.js +1 -0
- package/toast/esm/mobile/index.js +1 -0
- package/toast/modern/Component.responsive.js +1 -0
- package/toast/modern/components/base-toast/component.js +2 -1
- package/toast/modern/components/base-toast/index.js +1 -0
- package/toast/modern/desktop/Component.desktop.js +1 -0
- package/toast/modern/desktop/index.js +1 -0
- package/toast/modern/index.js +1 -0
- package/toast/modern/mobile/Component.mobile.js +1 -0
- package/toast/modern/mobile/index.js +1 -0
- package/toast-plate/components/base-toast-plate/component.js +1 -1
- package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +1 -1
- package/toast-plate/esm/Component.responsive.js +1 -1
- package/toast-plate/esm/components/base-toast-plate/component.js +1 -1
- package/toast-plate/esm/components/base-toast-plate/index.js +1 -1
- package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +1 -1
- package/toast-plate/esm/desktop/Component.desktop.js +1 -1
- package/toast-plate/esm/desktop/index.js +1 -1
- package/toast-plate/esm/index-307da6d7.d.ts +1 -1
- package/toast-plate/esm/index.js +1 -1
- package/toast-plate/esm/mobile/Component.mobile.js +1 -1
- package/toast-plate/esm/mobile/index.js +1 -1
- package/toast-plate/index-307da6d7.d.ts +1 -1
- package/toast-plate/modern/Component.responsive.js +1 -1
- package/toast-plate/modern/components/base-toast-plate/component.js +1 -1
- package/toast-plate/modern/components/base-toast-plate/index.js +1 -1
- package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +1 -1
- package/toast-plate/modern/desktop/Component.desktop.js +1 -1
- package/toast-plate/modern/desktop/index.js +1 -1
- package/toast-plate/modern/index-307da6d7.d.ts +1 -1
- package/toast-plate/modern/index.js +1 -1
- package/toast-plate/modern/mobile/Component.mobile.js +1 -1
- package/toast-plate/modern/mobile/index.js +1 -1
- package/universal-date-input/cssm/index-5712fce2.d.ts +1 -13
- package/universal-date-input/esm/index-5712fce2.d.ts +1 -13
- package/universal-date-input/index-5712fce2.d.ts +1 -13
- package/universal-date-input/modern/index-5712fce2.d.ts +1 -13
- package/international-phone-input/cssm/index-136acbb1.d.ts +0 -28
- package/international-phone-input/esm/index-136acbb1.d.ts +0 -28
- package/international-phone-input/index-136acbb1.d.ts +0 -28
- package/international-phone-input/modern/index-136acbb1.d.ts +0 -28
- package/picker-button/Component-1fe708ea.d.ts +0 -5
- package/picker-button/cssm/Component-1fe708ea.d.ts +0 -5
- package/picker-button/esm/Component-1fe708ea.d.ts +0 -5
- package/picker-button/modern/Component-1fe708ea.d.ts +0 -5
- package/stack/context.d.ts +0 -29
- package/stack/context.js +0 -34
- package/stack/cssm/context.d.ts +0 -29
- package/stack/cssm/context.js +0 -34
- package/stack/esm/context.d.ts +0 -29
- package/stack/esm/context.js +0 -31
- package/stack/modern/context.d.ts +0 -29
- package/stack/modern/context.js +0 -31
- /package/gallery/{buttons-36b3ca68.d.ts → buttons-2c587253.d.ts} +0 -0
- /package/gallery/{buttons-36b3ca68.js → buttons-2c587253.js} +0 -0
- /package/gallery/esm/{buttons-49e609ab.d.ts → buttons-fb317559.d.ts} +0 -0
- /package/gallery/esm/{buttons-49e609ab.js → buttons-fb317559.js} +0 -0
- /package/gallery/esm/{slide-01af06f1.d.ts → slide-cb44c8ba.d.ts} +0 -0
- /package/gallery/esm/{slide-01af06f1.js → slide-cb44c8ba.js} +0 -0
- /package/gallery/modern/{buttons-9e01c41d.d.ts → buttons-0d4c9cc6.d.ts} +0 -0
- /package/gallery/modern/{buttons-9e01c41d.js → buttons-0d4c9cc6.js} +0 -0
- /package/gallery/modern/{slide-0932c021.d.ts → slide-3771e01f.d.ts} +0 -0
- /package/gallery/modern/{slide-0932c021.js → slide-3771e01f.js} +0 -0
- /package/gallery/{slide-cbb98cfd.d.ts → slide-a4b1c89f.d.ts} +0 -0
- /package/gallery/{slide-cbb98cfd.js → slide-a4b1c89f.js} +0 -0
- /package/modal/esm/{layout.module-8f4bb5c4.js → layout.module-5977466c.js} +0 -0
- /package/modal/{layout.module-dd4e6f62.js → layout.module-74b07012.js} +0 -0
- /package/modal/modern/{layout.module-6bc66458.js → layout.module-565c309a.js} +0 -0
- /package/toast-plate/esm/{getDataTestId-1e8085ca.d.ts → getDataTestId-32922464.d.ts} +0 -0
- /package/toast-plate/esm/{getDataTestId-1e8085ca.js → getDataTestId-32922464.js} +0 -0
- /package/toast-plate/{getDataTestId-4ff6c5ff.d.ts → getDataTestId-64de4ccf.d.ts} +0 -0
- /package/toast-plate/{getDataTestId-4ff6c5ff.js → getDataTestId-64de4ccf.js} +0 -0
- /package/toast-plate/modern/{getDataTestId-11ebf806.d.ts → getDataTestId-4d724a67.d.ts} +0 -0
- /package/toast-plate/modern/{getDataTestId-11ebf806.js → getDataTestId-4d724a67.js} +0 -0
|
@@ -6,7 +6,13 @@
|
|
|
6
6
|
--color-light-neutral-translucent-500-inverted: rgba(228, 228, 251, 0.28);
|
|
7
7
|
--color-light-status-negative-inverted: #ff4837;
|
|
8
8
|
--color-light-status-negative-inverted-hover: #ff755e;
|
|
9
|
-
--color-light-status-negative-inverted-press: #ff8d79;
|
|
9
|
+
--color-light-status-negative-inverted-press: #ff8d79;
|
|
10
|
+
--color-light-text-negative-inverted: #ff4837;
|
|
11
|
+
--color-light-text-primary-inverted: rgba(255, 255, 255, 0.94);
|
|
12
|
+
--color-light-text-secondary-inverted: rgba(238, 238, 251, 0.55);
|
|
13
|
+
--color-light-text-tertiary-inverted: rgba(233, 233, 250, 0.37);
|
|
14
|
+
--color-light-transparent-default-inverted-hover: rgba(214, 214, 229, 0.07);
|
|
15
|
+
--color-light-transparent-default-inverted-press: rgba(225, 225, 248, 0.09); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
10
16
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
11
17
|
} :root {
|
|
12
18
|
} :root {
|
|
@@ -103,7 +109,31 @@
|
|
|
103
109
|
color: var(--icon-button-inverted-tertiary-hover-color);
|
|
104
110
|
} :global(.cc-icon-button).tertiary:active {
|
|
105
111
|
color: var(--icon-button-inverted-tertiary-active-color);
|
|
106
|
-
} :global(.cc-icon-button).
|
|
112
|
+
} :global(.cc-icon-button).transparentBg.primary {
|
|
113
|
+
color: var(--color-light-text-primary-inverted)
|
|
114
|
+
} :global(.cc-icon-button).transparentBg.primary:hover {
|
|
115
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
116
|
+
} :global(.cc-icon-button).transparentBg.primary:active {
|
|
117
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
118
|
+
} :global(.cc-icon-button).transparentBg.secondary {
|
|
119
|
+
color: var(--color-light-text-secondary-inverted)
|
|
120
|
+
} :global(.cc-icon-button).transparentBg.secondary:hover {
|
|
121
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
122
|
+
} :global(.cc-icon-button).transparentBg.secondary:active {
|
|
123
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
124
|
+
} :global(.cc-icon-button).transparentBg.negative {
|
|
125
|
+
color: var(--color-light-text-negative-inverted)
|
|
126
|
+
} :global(.cc-icon-button).transparentBg.negative:hover {
|
|
127
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
128
|
+
} :global(.cc-icon-button).transparentBg.negative:active {
|
|
129
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
130
|
+
} :global(.cc-icon-button).transparentBg.tertiary {
|
|
131
|
+
color: var(--color-light-text-tertiary-inverted)
|
|
132
|
+
} :global(.cc-icon-button).transparentBg.tertiary:hover {
|
|
133
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
134
|
+
} :global(.cc-icon-button).transparentBg.tertiary:active {
|
|
135
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
136
|
+
} :global(.cc-icon-button).component:disabled.primary {
|
|
107
137
|
color: var(--icon-button-inverted-primary-disabled-color)
|
|
108
138
|
} :global(.cc-icon-button).component:disabled.primary.loader {
|
|
109
139
|
color: var(--icon-button-inverted-primary-base-color);
|
|
@@ -119,4 +149,6 @@
|
|
|
119
149
|
color: var(--icon-button-inverted-tertiary-disabled-color)
|
|
120
150
|
} :global(.cc-icon-button).component:disabled.tertiary.loader {
|
|
121
151
|
color: var(--icon-button-inverted-tertiary-base-color);
|
|
122
|
-
}
|
|
152
|
+
} :global(.cc-icon-button).component:disabled.transparentBg {
|
|
153
|
+
background: transparent;
|
|
154
|
+
}
|
package/icon-button/default.css
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
--color-light-neutral-translucent-700-press: rgba(1, 1, 12, 0.63);
|
|
14
14
|
--color-light-status-negative: #ff4837;
|
|
15
15
|
--color-light-status-negative-hover: #ec2d20;
|
|
16
|
-
--color-light-status-negative-press: #c7241f;
|
|
16
|
+
--color-light-status-negative-press: #c7241f;
|
|
17
|
+
--color-light-text-negative: #ec2d20;
|
|
18
|
+
--color-light-text-primary: rgba(3, 3, 6, 0.88);
|
|
19
|
+
--color-light-text-secondary: rgba(4, 4, 19, 0.55);
|
|
20
|
+
--color-light-text-tertiary: rgba(5, 8, 29, 0.38);
|
|
21
|
+
--color-light-transparent-default-hover: rgba(38, 55, 88, 0.06);
|
|
22
|
+
--color-light-transparent-default-press: rgba(30, 43, 68, 0.08); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
17
23
|
--color-light-graphic-primary-alpha-30: rgba(14, 14, 14, 0.3);
|
|
18
24
|
--color-light-graphic-primary-alpha-40: rgba(14, 14, 14, 0.4);
|
|
19
25
|
--color-light-graphic-primary-alpha-50: rgba(14, 14, 14, 0.5);
|
|
@@ -89,7 +95,31 @@
|
|
|
89
95
|
color: var(--icon-button-tertiary-hover-color);
|
|
90
96
|
} .cc-icon-button.icon-button__tertiary_4tbui:active {
|
|
91
97
|
color: var(--icon-button-tertiary-active-color);
|
|
92
|
-
} .cc-icon-button.icon-
|
|
98
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__primary_4tbui {
|
|
99
|
+
color: var(--color-light-text-primary)
|
|
100
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__primary_4tbui:hover {
|
|
101
|
+
background: var(--color-light-transparent-default-hover);
|
|
102
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__primary_4tbui:active {
|
|
103
|
+
background: var(--color-light-transparent-default-press);
|
|
104
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__secondary_4tbui {
|
|
105
|
+
color: var(--color-light-text-secondary)
|
|
106
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__secondary_4tbui:hover {
|
|
107
|
+
background: var(--color-light-transparent-default-hover);
|
|
108
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__secondary_4tbui:active {
|
|
109
|
+
background: var(--color-light-transparent-default-press);
|
|
110
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__negative_4tbui {
|
|
111
|
+
color: var(--color-light-text-negative)
|
|
112
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__negative_4tbui:hover {
|
|
113
|
+
background: var(--color-light-transparent-default-hover);
|
|
114
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__negative_4tbui:active {
|
|
115
|
+
background: var(--color-light-transparent-default-press);
|
|
116
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__tertiary_4tbui {
|
|
117
|
+
color: var(--color-light-text-tertiary)
|
|
118
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__tertiary_4tbui:hover {
|
|
119
|
+
background: var(--color-light-transparent-default-hover);
|
|
120
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__tertiary_4tbui:active {
|
|
121
|
+
background: var(--color-light-transparent-default-press);
|
|
122
|
+
} .cc-icon-button.icon-button__component_4tbui:disabled.icon-button__primary_4tbui {
|
|
93
123
|
color: var(--icon-button-primary-disabled-color)
|
|
94
124
|
} .cc-icon-button.icon-button__component_4tbui:disabled.icon-button__primary_4tbui.icon-button__loader_4tbui {
|
|
95
125
|
color: var(--icon-button-primary-base-color);
|
|
@@ -105,4 +135,6 @@
|
|
|
105
135
|
color: var(--icon-button-tertiary-disabled-color)
|
|
106
136
|
} .cc-icon-button.icon-button__component_4tbui:disabled.icon-button__tertiary_4tbui.icon-button__loader_4tbui {
|
|
107
137
|
color: var(--icon-button-tertiary-base-color);
|
|
108
|
-
}
|
|
138
|
+
} .cc-icon-button.icon-button__component_4tbui:disabled.icon-button__transparentBg_4tbui {
|
|
139
|
+
background: transparent;
|
|
140
|
+
}
|
|
@@ -22,6 +22,11 @@ type IconButtonProps = {
|
|
|
22
22
|
* Дополнительный класс
|
|
23
23
|
*/
|
|
24
24
|
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Включает прозрачный фон
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
transparentBg?: boolean;
|
|
25
30
|
/**
|
|
26
31
|
* Выравнивание иконки
|
|
27
32
|
* @default 'center'
|
|
@@ -56,6 +61,11 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
56
61
|
* Дополнительный класс
|
|
57
62
|
*/
|
|
58
63
|
className?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Включает прозрачный фон
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
transparentBg?: boolean | undefined;
|
|
59
69
|
/**
|
|
60
70
|
* Выравнивание иконки
|
|
61
71
|
* @default 'center'
|
|
@@ -3,13 +3,13 @@ import React, { forwardRef } from 'react';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Button } from '../../button/esm';
|
|
5
5
|
|
|
6
|
-
var defaultColors = {"primary":"icon-button__primary_4tbui","secondary":"icon-button__secondary_4tbui","transparent":"icon-button__transparent_4tbui","negative":"icon-button__negative_4tbui","tertiary":"icon-button__tertiary_4tbui","component":"icon-button__component_4tbui","loader":"icon-button__loader_4tbui"};
|
|
6
|
+
var defaultColors = {"primary":"icon-button__primary_4tbui","secondary":"icon-button__secondary_4tbui","transparent":"icon-button__transparent_4tbui","negative":"icon-button__negative_4tbui","tertiary":"icon-button__tertiary_4tbui","transparentBg":"icon-button__transparentBg_4tbui","component":"icon-button__component_4tbui","loader":"icon-button__loader_4tbui"};
|
|
7
7
|
require('./default.css');
|
|
8
8
|
|
|
9
9
|
var styles = {"size-24":"icon-button__size-24_1s5jk","size-32":"icon-button__size-32_1s5jk","size-40":"icon-button__size-40_1s5jk","size-48":"icon-button__size-48_1s5jk","size-56":"icon-button__size-56_1s5jk","iconWrapper":"icon-button__iconWrapper_1s5jk","center":"icon-button__center_1s5jk","left":"icon-button__left_1s5jk","right":"icon-button__right_1s5jk","icon":"icon-button__icon_1s5jk"};
|
|
10
10
|
require('./index.css');
|
|
11
11
|
|
|
12
|
-
var invertedColors = {"primary":"icon-button__primary_gkd4v","secondary":"icon-button__secondary_gkd4v","transparent":"icon-button__transparent_gkd4v","negative":"icon-button__negative_gkd4v","tertiary":"icon-button__tertiary_gkd4v","component":"icon-button__component_gkd4v","loader":"icon-button__loader_gkd4v"};
|
|
12
|
+
var invertedColors = {"primary":"icon-button__primary_gkd4v","secondary":"icon-button__secondary_gkd4v","transparent":"icon-button__transparent_gkd4v","negative":"icon-button__negative_gkd4v","tertiary":"icon-button__tertiary_gkd4v","transparentBg":"icon-button__transparentBg_gkd4v","component":"icon-button__component_gkd4v","loader":"icon-button__loader_gkd4v"};
|
|
13
13
|
require('./inverted.css');
|
|
14
14
|
|
|
15
15
|
var colorStyles = {
|
|
@@ -28,9 +28,10 @@ var SIZE_TO_CLASSNAME_MAP = {
|
|
|
28
28
|
};
|
|
29
29
|
var IconButton = forwardRef(function (_a, ref) {
|
|
30
30
|
var _b;
|
|
31
|
-
var className = _a.className, Icon = _a.icon, _c = _a.view, view = _c === void 0 ? 'primary' : _c, _d = _a.size, size = _d === void 0 ? 48 : _d, _e = _a.colors, colors = _e === void 0 ? 'default' : _e, _f = _a.alignIcon, alignIcon = _f === void 0 ? 'center' : _f, restProps = __rest(_a, ["className", "icon", "view", "size", "colors", "alignIcon"]);
|
|
31
|
+
var className = _a.className, Icon = _a.icon, _c = _a.view, view = _c === void 0 ? 'primary' : _c, _d = _a.size, size = _d === void 0 ? 48 : _d, _e = _a.colors, colors = _e === void 0 ? 'default' : _e, _f = _a.alignIcon, alignIcon = _f === void 0 ? 'center' : _f, _g = _a.transparentBg, transparentBg = _g === void 0 ? false : _g, restProps = __rest(_a, ["className", "icon", "view", "size", "colors", "alignIcon", "transparentBg"]);
|
|
32
32
|
return (React.createElement(Button, __assign({}, restProps, { ref: ref, view: 'text', className: cn('cc-icon-button', className, colorStyles[colors][view], colorStyles[colors].component, (_b = {},
|
|
33
33
|
_b[colorStyles[colors].loader] = restProps.loading,
|
|
34
|
+
_b[colorStyles[colors].transparentBg] = transparentBg,
|
|
34
35
|
_b)), size: 's' }),
|
|
35
36
|
React.createElement("span", { className: cn(styles.iconWrapper, styles[SIZE_TO_CLASSNAME_MAP[size]], styles[alignIcon]) }, React.isValidElement(Icon) ? (React.cloneElement(Icon, { className: cn(styles.icon, Icon.props.className) })) : (React.createElement(Icon, { className: styles.icon })))));
|
|
36
37
|
});
|
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
--color-light-neutral-translucent-700-press: rgba(1, 1, 12, 0.63);
|
|
14
14
|
--color-light-status-negative: #ff4837;
|
|
15
15
|
--color-light-status-negative-hover: #ec2d20;
|
|
16
|
-
--color-light-status-negative-press: #c7241f;
|
|
16
|
+
--color-light-status-negative-press: #c7241f;
|
|
17
|
+
--color-light-text-negative: #ec2d20;
|
|
18
|
+
--color-light-text-primary: rgba(3, 3, 6, 0.88);
|
|
19
|
+
--color-light-text-secondary: rgba(4, 4, 19, 0.55);
|
|
20
|
+
--color-light-text-tertiary: rgba(5, 8, 29, 0.38);
|
|
21
|
+
--color-light-transparent-default-hover: rgba(38, 55, 88, 0.06);
|
|
22
|
+
--color-light-transparent-default-press: rgba(30, 43, 68, 0.08); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
17
23
|
--color-light-graphic-primary-alpha-30: rgba(14, 14, 14, 0.3);
|
|
18
24
|
--color-light-graphic-primary-alpha-40: rgba(14, 14, 14, 0.4);
|
|
19
25
|
--color-light-graphic-primary-alpha-50: rgba(14, 14, 14, 0.5);
|
|
@@ -89,7 +95,31 @@
|
|
|
89
95
|
color: var(--icon-button-tertiary-hover-color);
|
|
90
96
|
} .cc-icon-button.icon-button__tertiary_4tbui:active {
|
|
91
97
|
color: var(--icon-button-tertiary-active-color);
|
|
92
|
-
} .cc-icon-button.icon-
|
|
98
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__primary_4tbui {
|
|
99
|
+
color: var(--color-light-text-primary)
|
|
100
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__primary_4tbui:hover {
|
|
101
|
+
background: var(--color-light-transparent-default-hover);
|
|
102
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__primary_4tbui:active {
|
|
103
|
+
background: var(--color-light-transparent-default-press);
|
|
104
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__secondary_4tbui {
|
|
105
|
+
color: var(--color-light-text-secondary)
|
|
106
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__secondary_4tbui:hover {
|
|
107
|
+
background: var(--color-light-transparent-default-hover);
|
|
108
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__secondary_4tbui:active {
|
|
109
|
+
background: var(--color-light-transparent-default-press);
|
|
110
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__negative_4tbui {
|
|
111
|
+
color: var(--color-light-text-negative)
|
|
112
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__negative_4tbui:hover {
|
|
113
|
+
background: var(--color-light-transparent-default-hover);
|
|
114
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__negative_4tbui:active {
|
|
115
|
+
background: var(--color-light-transparent-default-press);
|
|
116
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__tertiary_4tbui {
|
|
117
|
+
color: var(--color-light-text-tertiary)
|
|
118
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__tertiary_4tbui:hover {
|
|
119
|
+
background: var(--color-light-transparent-default-hover);
|
|
120
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__tertiary_4tbui:active {
|
|
121
|
+
background: var(--color-light-transparent-default-press);
|
|
122
|
+
} .cc-icon-button.icon-button__component_4tbui:disabled.icon-button__primary_4tbui {
|
|
93
123
|
color: var(--icon-button-primary-disabled-color)
|
|
94
124
|
} .cc-icon-button.icon-button__component_4tbui:disabled.icon-button__primary_4tbui.icon-button__loader_4tbui {
|
|
95
125
|
color: var(--icon-button-primary-base-color);
|
|
@@ -105,4 +135,6 @@
|
|
|
105
135
|
color: var(--icon-button-tertiary-disabled-color)
|
|
106
136
|
} .cc-icon-button.icon-button__component_4tbui:disabled.icon-button__tertiary_4tbui.icon-button__loader_4tbui {
|
|
107
137
|
color: var(--icon-button-tertiary-base-color);
|
|
108
|
-
}
|
|
138
|
+
} .cc-icon-button.icon-button__component_4tbui:disabled.icon-button__transparentBg_4tbui {
|
|
139
|
+
background: transparent;
|
|
140
|
+
}
|
|
@@ -7,7 +7,13 @@
|
|
|
7
7
|
--color-light-neutral-translucent-500-inverted: rgba(228, 228, 251, 0.28);
|
|
8
8
|
--color-light-status-negative-inverted: #ff4837;
|
|
9
9
|
--color-light-status-negative-inverted-hover: #ff755e;
|
|
10
|
-
--color-light-status-negative-inverted-press: #ff8d79;
|
|
10
|
+
--color-light-status-negative-inverted-press: #ff8d79;
|
|
11
|
+
--color-light-text-negative-inverted: #ff4837;
|
|
12
|
+
--color-light-text-primary-inverted: rgba(255, 255, 255, 0.94);
|
|
13
|
+
--color-light-text-secondary-inverted: rgba(238, 238, 251, 0.55);
|
|
14
|
+
--color-light-text-tertiary-inverted: rgba(233, 233, 250, 0.37);
|
|
15
|
+
--color-light-transparent-default-inverted-hover: rgba(214, 214, 229, 0.07);
|
|
16
|
+
--color-light-transparent-default-inverted-press: rgba(225, 225, 248, 0.09); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
11
17
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
12
18
|
} :root {
|
|
13
19
|
} :root {
|
|
@@ -104,7 +110,31 @@
|
|
|
104
110
|
color: var(--icon-button-inverted-tertiary-hover-color);
|
|
105
111
|
} .cc-icon-button.icon-button__tertiary_gkd4v:active {
|
|
106
112
|
color: var(--icon-button-inverted-tertiary-active-color);
|
|
107
|
-
} .cc-icon-button.icon-
|
|
113
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__primary_gkd4v {
|
|
114
|
+
color: var(--color-light-text-primary-inverted)
|
|
115
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__primary_gkd4v:hover {
|
|
116
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
117
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__primary_gkd4v:active {
|
|
118
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
119
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__secondary_gkd4v {
|
|
120
|
+
color: var(--color-light-text-secondary-inverted)
|
|
121
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__secondary_gkd4v:hover {
|
|
122
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
123
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__secondary_gkd4v:active {
|
|
124
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
125
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__negative_gkd4v {
|
|
126
|
+
color: var(--color-light-text-negative-inverted)
|
|
127
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__negative_gkd4v:hover {
|
|
128
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
129
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__negative_gkd4v:active {
|
|
130
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
131
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__tertiary_gkd4v {
|
|
132
|
+
color: var(--color-light-text-tertiary-inverted)
|
|
133
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__tertiary_gkd4v:hover {
|
|
134
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
135
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__tertiary_gkd4v:active {
|
|
136
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
137
|
+
} .cc-icon-button.icon-button__component_gkd4v:disabled.icon-button__primary_gkd4v {
|
|
108
138
|
color: var(--icon-button-inverted-primary-disabled-color)
|
|
109
139
|
} .cc-icon-button.icon-button__component_gkd4v:disabled.icon-button__primary_gkd4v.icon-button__loader_gkd4v {
|
|
110
140
|
color: var(--icon-button-inverted-primary-base-color);
|
|
@@ -120,4 +150,6 @@
|
|
|
120
150
|
color: var(--icon-button-inverted-tertiary-disabled-color)
|
|
121
151
|
} .cc-icon-button.icon-button__component_gkd4v:disabled.icon-button__tertiary_gkd4v.icon-button__loader_gkd4v {
|
|
122
152
|
color: var(--icon-button-inverted-tertiary-base-color);
|
|
123
|
-
}
|
|
153
|
+
} .cc-icon-button.icon-button__component_gkd4v:disabled.icon-button__transparentBg_gkd4v {
|
|
154
|
+
background: transparent;
|
|
155
|
+
}
|
package/icon-button/inverted.css
CHANGED
|
@@ -7,7 +7,13 @@
|
|
|
7
7
|
--color-light-neutral-translucent-500-inverted: rgba(228, 228, 251, 0.28);
|
|
8
8
|
--color-light-status-negative-inverted: #ff4837;
|
|
9
9
|
--color-light-status-negative-inverted-hover: #ff755e;
|
|
10
|
-
--color-light-status-negative-inverted-press: #ff8d79;
|
|
10
|
+
--color-light-status-negative-inverted-press: #ff8d79;
|
|
11
|
+
--color-light-text-negative-inverted: #ff4837;
|
|
12
|
+
--color-light-text-primary-inverted: rgba(255, 255, 255, 0.94);
|
|
13
|
+
--color-light-text-secondary-inverted: rgba(238, 238, 251, 0.55);
|
|
14
|
+
--color-light-text-tertiary-inverted: rgba(233, 233, 250, 0.37);
|
|
15
|
+
--color-light-transparent-default-inverted-hover: rgba(214, 214, 229, 0.07);
|
|
16
|
+
--color-light-transparent-default-inverted-press: rgba(225, 225, 248, 0.09); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
11
17
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
12
18
|
} :root {
|
|
13
19
|
} :root {
|
|
@@ -104,7 +110,31 @@
|
|
|
104
110
|
color: var(--icon-button-inverted-tertiary-hover-color);
|
|
105
111
|
} .cc-icon-button.icon-button__tertiary_gkd4v:active {
|
|
106
112
|
color: var(--icon-button-inverted-tertiary-active-color);
|
|
107
|
-
} .cc-icon-button.icon-
|
|
113
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__primary_gkd4v {
|
|
114
|
+
color: var(--color-light-text-primary-inverted)
|
|
115
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__primary_gkd4v:hover {
|
|
116
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
117
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__primary_gkd4v:active {
|
|
118
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
119
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__secondary_gkd4v {
|
|
120
|
+
color: var(--color-light-text-secondary-inverted)
|
|
121
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__secondary_gkd4v:hover {
|
|
122
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
123
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__secondary_gkd4v:active {
|
|
124
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
125
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__negative_gkd4v {
|
|
126
|
+
color: var(--color-light-text-negative-inverted)
|
|
127
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__negative_gkd4v:hover {
|
|
128
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
129
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__negative_gkd4v:active {
|
|
130
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
131
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__tertiary_gkd4v {
|
|
132
|
+
color: var(--color-light-text-tertiary-inverted)
|
|
133
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__tertiary_gkd4v:hover {
|
|
134
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
135
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__tertiary_gkd4v:active {
|
|
136
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
137
|
+
} .cc-icon-button.icon-button__component_gkd4v:disabled.icon-button__primary_gkd4v {
|
|
108
138
|
color: var(--icon-button-inverted-primary-disabled-color)
|
|
109
139
|
} .cc-icon-button.icon-button__component_gkd4v:disabled.icon-button__primary_gkd4v.icon-button__loader_gkd4v {
|
|
110
140
|
color: var(--icon-button-inverted-primary-base-color);
|
|
@@ -120,4 +150,6 @@
|
|
|
120
150
|
color: var(--icon-button-inverted-tertiary-disabled-color)
|
|
121
151
|
} .cc-icon-button.icon-button__component_gkd4v:disabled.icon-button__tertiary_gkd4v.icon-button__loader_gkd4v {
|
|
122
152
|
color: var(--icon-button-inverted-tertiary-base-color);
|
|
123
|
-
}
|
|
153
|
+
} .cc-icon-button.icon-button__component_gkd4v:disabled.icon-button__transparentBg_gkd4v {
|
|
154
|
+
background: transparent;
|
|
155
|
+
}
|
|
@@ -22,6 +22,11 @@ type IconButtonProps = {
|
|
|
22
22
|
* Дополнительный класс
|
|
23
23
|
*/
|
|
24
24
|
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Включает прозрачный фон
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
transparentBg?: boolean;
|
|
25
30
|
/**
|
|
26
31
|
* Выравнивание иконки
|
|
27
32
|
* @default 'center'
|
|
@@ -56,6 +61,11 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
56
61
|
* Дополнительный класс
|
|
57
62
|
*/
|
|
58
63
|
className?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Включает прозрачный фон
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
transparentBg?: boolean | undefined;
|
|
59
69
|
/**
|
|
60
70
|
* Выравнивание иконки
|
|
61
71
|
* @default 'center'
|
|
@@ -2,13 +2,13 @@ import React, { forwardRef } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Button } from '../../button/modern';
|
|
4
4
|
|
|
5
|
-
const defaultColors = {"primary":"icon-button__primary_4tbui","secondary":"icon-button__secondary_4tbui","transparent":"icon-button__transparent_4tbui","negative":"icon-button__negative_4tbui","tertiary":"icon-button__tertiary_4tbui","component":"icon-button__component_4tbui","loader":"icon-button__loader_4tbui"};
|
|
5
|
+
const defaultColors = {"primary":"icon-button__primary_4tbui","secondary":"icon-button__secondary_4tbui","transparent":"icon-button__transparent_4tbui","negative":"icon-button__negative_4tbui","tertiary":"icon-button__tertiary_4tbui","transparentBg":"icon-button__transparentBg_4tbui","component":"icon-button__component_4tbui","loader":"icon-button__loader_4tbui"};
|
|
6
6
|
require('./default.css');
|
|
7
7
|
|
|
8
8
|
const styles = {"size-24":"icon-button__size-24_1s5jk","size-32":"icon-button__size-32_1s5jk","size-40":"icon-button__size-40_1s5jk","size-48":"icon-button__size-48_1s5jk","size-56":"icon-button__size-56_1s5jk","iconWrapper":"icon-button__iconWrapper_1s5jk","center":"icon-button__center_1s5jk","left":"icon-button__left_1s5jk","right":"icon-button__right_1s5jk","icon":"icon-button__icon_1s5jk"};
|
|
9
9
|
require('./index.css');
|
|
10
10
|
|
|
11
|
-
const invertedColors = {"primary":"icon-button__primary_gkd4v","secondary":"icon-button__secondary_gkd4v","transparent":"icon-button__transparent_gkd4v","negative":"icon-button__negative_gkd4v","tertiary":"icon-button__tertiary_gkd4v","component":"icon-button__component_gkd4v","loader":"icon-button__loader_gkd4v"};
|
|
11
|
+
const invertedColors = {"primary":"icon-button__primary_gkd4v","secondary":"icon-button__secondary_gkd4v","transparent":"icon-button__transparent_gkd4v","negative":"icon-button__negative_gkd4v","tertiary":"icon-button__tertiary_gkd4v","transparentBg":"icon-button__transparentBg_gkd4v","component":"icon-button__component_gkd4v","loader":"icon-button__loader_gkd4v"};
|
|
12
12
|
require('./inverted.css');
|
|
13
13
|
|
|
14
14
|
const colorStyles = {
|
|
@@ -25,8 +25,9 @@ const SIZE_TO_CLASSNAME_MAP = {
|
|
|
25
25
|
48: 'size-48',
|
|
26
26
|
56: 'size-56',
|
|
27
27
|
};
|
|
28
|
-
const IconButton = forwardRef(({ className, icon: Icon, view = 'primary', size = 48, colors = 'default', alignIcon = 'center', ...restProps }, ref) => (React.createElement(Button, { ...restProps, ref: ref, view: 'text', className: cn('cc-icon-button', className, colorStyles[colors][view], colorStyles[colors].component, {
|
|
28
|
+
const IconButton = forwardRef(({ className, icon: Icon, view = 'primary', size = 48, colors = 'default', alignIcon = 'center', transparentBg = false, ...restProps }, ref) => (React.createElement(Button, { ...restProps, ref: ref, view: 'text', className: cn('cc-icon-button', className, colorStyles[colors][view], colorStyles[colors].component, {
|
|
29
29
|
[colorStyles[colors].loader]: restProps.loading,
|
|
30
|
+
[colorStyles[colors].transparentBg]: transparentBg,
|
|
30
31
|
}), size: 's' },
|
|
31
32
|
React.createElement("span", { className: cn(styles.iconWrapper, styles[SIZE_TO_CLASSNAME_MAP[size]], styles[alignIcon]) }, React.isValidElement(Icon) ? (React.cloneElement(Icon, { className: cn(styles.icon, Icon.props.className) })) : (React.createElement(Icon, { className: styles.icon }))))));
|
|
32
33
|
|
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
--color-light-neutral-translucent-700-press: rgba(1, 1, 12, 0.63);
|
|
14
14
|
--color-light-status-negative: #ff4837;
|
|
15
15
|
--color-light-status-negative-hover: #ec2d20;
|
|
16
|
-
--color-light-status-negative-press: #c7241f;
|
|
16
|
+
--color-light-status-negative-press: #c7241f;
|
|
17
|
+
--color-light-text-negative: #ec2d20;
|
|
18
|
+
--color-light-text-primary: rgba(3, 3, 6, 0.88);
|
|
19
|
+
--color-light-text-secondary: rgba(4, 4, 19, 0.55);
|
|
20
|
+
--color-light-text-tertiary: rgba(5, 8, 29, 0.38);
|
|
21
|
+
--color-light-transparent-default-hover: rgba(38, 55, 88, 0.06);
|
|
22
|
+
--color-light-transparent-default-press: rgba(30, 43, 68, 0.08); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
17
23
|
--color-light-graphic-primary-alpha-30: rgba(14, 14, 14, 0.3);
|
|
18
24
|
--color-light-graphic-primary-alpha-40: rgba(14, 14, 14, 0.4);
|
|
19
25
|
--color-light-graphic-primary-alpha-50: rgba(14, 14, 14, 0.5);
|
|
@@ -89,7 +95,31 @@
|
|
|
89
95
|
color: var(--icon-button-tertiary-hover-color);
|
|
90
96
|
} .cc-icon-button.icon-button__tertiary_4tbui:active {
|
|
91
97
|
color: var(--icon-button-tertiary-active-color);
|
|
92
|
-
} .cc-icon-button.icon-
|
|
98
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__primary_4tbui {
|
|
99
|
+
color: var(--color-light-text-primary)
|
|
100
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__primary_4tbui:hover {
|
|
101
|
+
background: var(--color-light-transparent-default-hover);
|
|
102
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__primary_4tbui:active {
|
|
103
|
+
background: var(--color-light-transparent-default-press);
|
|
104
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__secondary_4tbui {
|
|
105
|
+
color: var(--color-light-text-secondary)
|
|
106
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__secondary_4tbui:hover {
|
|
107
|
+
background: var(--color-light-transparent-default-hover);
|
|
108
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__secondary_4tbui:active {
|
|
109
|
+
background: var(--color-light-transparent-default-press);
|
|
110
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__negative_4tbui {
|
|
111
|
+
color: var(--color-light-text-negative)
|
|
112
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__negative_4tbui:hover {
|
|
113
|
+
background: var(--color-light-transparent-default-hover);
|
|
114
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__negative_4tbui:active {
|
|
115
|
+
background: var(--color-light-transparent-default-press);
|
|
116
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__tertiary_4tbui {
|
|
117
|
+
color: var(--color-light-text-tertiary)
|
|
118
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__tertiary_4tbui:hover {
|
|
119
|
+
background: var(--color-light-transparent-default-hover);
|
|
120
|
+
} .cc-icon-button.icon-button__transparentBg_4tbui.icon-button__tertiary_4tbui:active {
|
|
121
|
+
background: var(--color-light-transparent-default-press);
|
|
122
|
+
} .cc-icon-button.icon-button__component_4tbui:disabled.icon-button__primary_4tbui {
|
|
93
123
|
color: var(--icon-button-primary-disabled-color)
|
|
94
124
|
} .cc-icon-button.icon-button__component_4tbui:disabled.icon-button__primary_4tbui.icon-button__loader_4tbui {
|
|
95
125
|
color: var(--icon-button-primary-base-color);
|
|
@@ -105,4 +135,6 @@
|
|
|
105
135
|
color: var(--icon-button-tertiary-disabled-color)
|
|
106
136
|
} .cc-icon-button.icon-button__component_4tbui:disabled.icon-button__tertiary_4tbui.icon-button__loader_4tbui {
|
|
107
137
|
color: var(--icon-button-tertiary-base-color);
|
|
108
|
-
}
|
|
138
|
+
} .cc-icon-button.icon-button__component_4tbui:disabled.icon-button__transparentBg_4tbui {
|
|
139
|
+
background: transparent;
|
|
140
|
+
}
|
|
@@ -7,7 +7,13 @@
|
|
|
7
7
|
--color-light-neutral-translucent-500-inverted: rgba(228, 228, 251, 0.28);
|
|
8
8
|
--color-light-status-negative-inverted: #ff4837;
|
|
9
9
|
--color-light-status-negative-inverted-hover: #ff755e;
|
|
10
|
-
--color-light-status-negative-inverted-press: #ff8d79;
|
|
10
|
+
--color-light-status-negative-inverted-press: #ff8d79;
|
|
11
|
+
--color-light-text-negative-inverted: #ff4837;
|
|
12
|
+
--color-light-text-primary-inverted: rgba(255, 255, 255, 0.94);
|
|
13
|
+
--color-light-text-secondary-inverted: rgba(238, 238, 251, 0.55);
|
|
14
|
+
--color-light-text-tertiary-inverted: rgba(233, 233, 250, 0.37);
|
|
15
|
+
--color-light-transparent-default-inverted-hover: rgba(214, 214, 229, 0.07);
|
|
16
|
+
--color-light-transparent-default-inverted-press: rgba(225, 225, 248, 0.09); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
11
17
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
12
18
|
} :root {
|
|
13
19
|
} :root {
|
|
@@ -104,7 +110,31 @@
|
|
|
104
110
|
color: var(--icon-button-inverted-tertiary-hover-color);
|
|
105
111
|
} .cc-icon-button.icon-button__tertiary_gkd4v:active {
|
|
106
112
|
color: var(--icon-button-inverted-tertiary-active-color);
|
|
107
|
-
} .cc-icon-button.icon-
|
|
113
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__primary_gkd4v {
|
|
114
|
+
color: var(--color-light-text-primary-inverted)
|
|
115
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__primary_gkd4v:hover {
|
|
116
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
117
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__primary_gkd4v:active {
|
|
118
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
119
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__secondary_gkd4v {
|
|
120
|
+
color: var(--color-light-text-secondary-inverted)
|
|
121
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__secondary_gkd4v:hover {
|
|
122
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
123
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__secondary_gkd4v:active {
|
|
124
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
125
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__negative_gkd4v {
|
|
126
|
+
color: var(--color-light-text-negative-inverted)
|
|
127
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__negative_gkd4v:hover {
|
|
128
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
129
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__negative_gkd4v:active {
|
|
130
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
131
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__tertiary_gkd4v {
|
|
132
|
+
color: var(--color-light-text-tertiary-inverted)
|
|
133
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__tertiary_gkd4v:hover {
|
|
134
|
+
background: var(--color-light-transparent-default-inverted-hover);
|
|
135
|
+
} .cc-icon-button.icon-button__transparentBg_gkd4v.icon-button__tertiary_gkd4v:active {
|
|
136
|
+
background: var(--color-light-transparent-default-inverted-press);
|
|
137
|
+
} .cc-icon-button.icon-button__component_gkd4v:disabled.icon-button__primary_gkd4v {
|
|
108
138
|
color: var(--icon-button-inverted-primary-disabled-color)
|
|
109
139
|
} .cc-icon-button.icon-button__component_gkd4v:disabled.icon-button__primary_gkd4v.icon-button__loader_gkd4v {
|
|
110
140
|
color: var(--icon-button-inverted-primary-base-color);
|
|
@@ -120,4 +150,6 @@
|
|
|
120
150
|
color: var(--icon-button-inverted-tertiary-disabled-color)
|
|
121
151
|
} .cc-icon-button.icon-button__component_gkd4v:disabled.icon-button__tertiary_gkd4v.icon-button__loader_gkd4v {
|
|
122
152
|
color: var(--icon-button-inverted-tertiary-base-color);
|
|
123
|
-
}
|
|
153
|
+
} .cc-icon-button.icon-button__component_gkd4v:disabled.icon-button__transparentBg_gkd4v {
|
|
154
|
+
background: transparent;
|
|
155
|
+
}
|
|
@@ -51,7 +51,7 @@ type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type
|
|
|
51
51
|
/**
|
|
52
52
|
* Атрибут type
|
|
53
53
|
*/
|
|
54
|
-
type?: 'number' | '
|
|
54
|
+
type?: 'number' | 'email' | 'money' | 'password' | 'tel' | 'text';
|
|
55
55
|
/**
|
|
56
56
|
* Ref для обертки input
|
|
57
57
|
*/
|
|
@@ -189,7 +189,7 @@ declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAtt
|
|
|
189
189
|
/**
|
|
190
190
|
* Атрибут type
|
|
191
191
|
*/
|
|
192
|
-
type?: "number" | "text" | "tel" | "email" | "
|
|
192
|
+
type?: "number" | "text" | "tel" | "email" | "money" | "password" | undefined;
|
|
193
193
|
/**
|
|
194
194
|
* Ref для обертки input
|
|
195
195
|
*/
|
|
@@ -51,7 +51,7 @@ type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type
|
|
|
51
51
|
/**
|
|
52
52
|
* Атрибут type
|
|
53
53
|
*/
|
|
54
|
-
type?: 'number' | '
|
|
54
|
+
type?: 'number' | 'email' | 'money' | 'password' | 'tel' | 'text';
|
|
55
55
|
/**
|
|
56
56
|
* Ref для обертки input
|
|
57
57
|
*/
|
|
@@ -189,7 +189,7 @@ declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAtt
|
|
|
189
189
|
/**
|
|
190
190
|
* Атрибут type
|
|
191
191
|
*/
|
|
192
|
-
type?: "number" | "text" | "tel" | "email" | "
|
|
192
|
+
type?: "number" | "text" | "tel" | "email" | "money" | "password" | undefined;
|
|
193
193
|
/**
|
|
194
194
|
* Ref для обертки input
|
|
195
195
|
*/
|
|
@@ -51,7 +51,7 @@ type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type
|
|
|
51
51
|
/**
|
|
52
52
|
* Атрибут type
|
|
53
53
|
*/
|
|
54
|
-
type?: 'number' | '
|
|
54
|
+
type?: 'number' | 'email' | 'money' | 'password' | 'tel' | 'text';
|
|
55
55
|
/**
|
|
56
56
|
* Ref для обертки input
|
|
57
57
|
*/
|
|
@@ -189,7 +189,7 @@ declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAtt
|
|
|
189
189
|
/**
|
|
190
190
|
* Атрибут type
|
|
191
191
|
*/
|
|
192
|
-
type?: "number" | "text" | "tel" | "email" | "
|
|
192
|
+
type?: "number" | "text" | "tel" | "email" | "money" | "password" | undefined;
|
|
193
193
|
/**
|
|
194
194
|
* Ref для обертки input
|
|
195
195
|
*/
|
|
@@ -51,7 +51,7 @@ type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type
|
|
|
51
51
|
/**
|
|
52
52
|
* Атрибут type
|
|
53
53
|
*/
|
|
54
|
-
type?: 'number' | '
|
|
54
|
+
type?: 'number' | 'email' | 'money' | 'password' | 'tel' | 'text';
|
|
55
55
|
/**
|
|
56
56
|
* Ref для обертки input
|
|
57
57
|
*/
|
|
@@ -189,7 +189,7 @@ declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAtt
|
|
|
189
189
|
/**
|
|
190
190
|
* Атрибут type
|
|
191
191
|
*/
|
|
192
|
-
type?: "number" | "text" | "tel" | "email" | "
|
|
192
|
+
type?: "number" | "text" | "tel" | "email" | "money" | "password" | undefined;
|
|
193
193
|
/**
|
|
194
194
|
* Ref для обертки input
|
|
195
195
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { OptgroupProps } from "./typings-
|
|
3
|
+
import { OptgroupProps } from "./typings-0f35b62f";
|
|
4
4
|
declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
|
|
5
5
|
export { Optgroup };
|