oziko-ui-kit 0.0.39 → 0.0.41

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.
@@ -1,5 +1,6 @@
1
1
  import { TypeText } from "../../../text/Text";
2
2
  import { TypeFluidContainer } from "../../../fluid-container/FluidContainer";
3
+ import { TypeSwitch } from "../../../switch/Switch";
3
4
  import { TypeFlexElement } from "../../../flex-element/FlexElement";
4
5
  export type TypeBooleanInput = {
5
6
  checked?: boolean;
@@ -12,6 +13,7 @@ export type TypeBooleanInput = {
12
13
  labelProps?: TypeText;
13
14
  description?: string;
14
15
  onChange?: (checked: boolean) => void;
16
+ size?: TypeSwitch["size"];
15
17
  };
16
18
  declare const _default: import("react").NamedExoticComponent<TypeBooleanInput>;
17
19
  export default _default;
@@ -4,6 +4,7 @@ export type TypeSwitch = {
4
4
  disabled?: boolean;
5
5
  containerProps?: TypeFlexElement;
6
6
  onChange?: (checked: boolean) => void;
7
+ size?: "large" | "medium" | "small";
7
8
  };
8
9
  declare const _default: import("react").NamedExoticComponent<TypeSwitch>;
9
10
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { TypeCoordinates } from "../components/atoms/map/Map";
2
2
  import { ReactNode } from "react";
3
3
  import { utils } from "../utils";
4
- import { TypeLabeledValue } from "../index.export";
4
+ import { TypeLabeledValue, TypeSwitch } from "../index.export";
5
5
  export type TypeProperties = {
6
6
  [key: string]: {
7
7
  type: keyof typeof types;
@@ -27,6 +27,7 @@ export type TypeProperties = {
27
27
  loadMoreOptions?: () => Promise<TypeLabeledValue[]>;
28
28
  searchOptions?: (value: string) => Promise<TypeLabeledValue[]>;
29
29
  totalOptionsLength?: number;
30
+ size?: TypeSwitch["size"];
30
31
  };
31
32
  };
32
33
  export type TypeValueType = string | number | boolean | string[] | number[] | boolean[] | TypeRepresenterValue | TypeRepresenterValue[];
@@ -55,6 +56,7 @@ export type TypeInputProps<T> = {
55
56
  value?: T;
56
57
  className?: string;
57
58
  onChange?: ({ key, value }: TypeChangeEvent<T>) => void;
59
+ size?: TypeSwitch["size"];
58
60
  };
59
61
  export type TypeInputRepresenterError = {
60
62
  [key: string]: string | null;
package/dist/index.css CHANGED
@@ -2056,11 +2056,48 @@ svg.leaflet-image-layer.leaflet-interactive path {
2056
2056
  width: unset;
2057
2057
  -webkit-line-clamp: 1;
2058
2058
  }
2059
+ .Switch-module_switch__-4EkK.Switch-module_small__5Zk-N {
2060
+ width: 33px;
2061
+ height: 16.5px;
2062
+ }
2063
+ .Switch-module_switch__-4EkK.Switch-module_small__5Zk-N .Switch-module_slider__sHGGR::before {
2064
+ width: 12px;
2065
+ height: 12px;
2066
+ top: 2px;
2067
+ }
2068
+ .Switch-module_switch__-4EkK.Switch-module_small__5Zk-N input:checked + .Switch-module_slider__sHGGR::before {
2069
+ transform: translateX(15px);
2070
+ }
2071
+
2072
+ .Switch-module_switch__-4EkK.Switch-module_medium__dyhx- {
2073
+ width: 44px;
2074
+ height: 22px;
2075
+ }
2076
+ .Switch-module_switch__-4EkK.Switch-module_medium__dyhx- .Switch-module_slider__sHGGR::before {
2077
+ width: 16px;
2078
+ height: 16px;
2079
+ top: 3px;
2080
+ }
2081
+ .Switch-module_switch__-4EkK.Switch-module_medium__dyhx- input:checked + .Switch-module_slider__sHGGR::before {
2082
+ transform: translateX(20px);
2083
+ }
2084
+
2085
+ .Switch-module_switch__-4EkK.Switch-module_large__1uBOR {
2086
+ width: 55px;
2087
+ height: 27.5px;
2088
+ }
2089
+ .Switch-module_switch__-4EkK.Switch-module_large__1uBOR .Switch-module_slider__sHGGR::before {
2090
+ width: 20px;
2091
+ height: 20px;
2092
+ top: 4px;
2093
+ }
2094
+ .Switch-module_switch__-4EkK.Switch-module_large__1uBOR input:checked + .Switch-module_slider__sHGGR::before {
2095
+ transform: translateX(25px);
2096
+ }
2097
+
2059
2098
  .Switch-module_switch__-4EkK {
2060
2099
  position: relative;
2061
2100
  display: inline-block;
2062
- width: 44px;
2063
- height: 22px;
2064
2101
  cursor: pointer;
2065
2102
  }
2066
2103
  .Switch-module_switch__-4EkK input {
@@ -2089,9 +2126,6 @@ svg.leaflet-image-layer.leaflet-interactive path {
2089
2126
  .Switch-module_slider__sHGGR::before {
2090
2127
  content: "";
2091
2128
  position: absolute;
2092
- width: 16px;
2093
- height: 16px;
2094
- top: 3px;
2095
2129
  left: 3px;
2096
2130
  transition: transform 0.3s ease;
2097
2131
  background: var(--oziko-color-font-primary);
@@ -2103,7 +2137,6 @@ input:checked + .Switch-module_slider__sHGGR {
2103
2137
  }
2104
2138
 
2105
2139
  input:checked + .Switch-module_slider__sHGGR::before {
2106
- transform: translateX(20px);
2107
2140
  background: var(--oziko-color-primary);
2108
2141
  }
2109
2142
  .Title-module_title__X4-sx {