@rescui/toggle 0.5.0 → 0.5.1-RUI-296-Build-docs-md-files-for-each-docs-section-2a311c841.18

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 CHANGED
@@ -1,3 +1,5 @@
1
1
  # Toggle
2
2
 
3
- * [Usage examples](./docs/demo.md)
3
+ ## LLM
4
+
5
+ To get the docs for the LLM, check out [this index](./llm/index.md).
package/lib/index.css CHANGED
@@ -1,33 +1,33 @@
1
- ._themeLight_12pqocf_6{
1
+ ._themeLight_85twx1_6{
2
2
  --rs-theme-dark:0;
3
3
  }
4
- ._themeDark_12pqocf_9{
4
+ ._themeDark_85twx1_9{
5
5
  --rs-theme-dark:1;
6
6
  }
7
- ._sizeS_12pqocf_13{
7
+ ._sizeS_85twx1_13{
8
8
  --_rs-toggle-width:20px;
9
9
  --_rs-toggle-height:12px;
10
10
  --_rs-toggle-shadow:3px;
11
11
  }
12
- ._sizeM_12pqocf_16{
12
+ ._sizeM_85twx1_16{
13
13
  --_rs-toggle-width:28px;
14
14
  --_rs-toggle-height:16px;
15
15
  --_rs-toggle-shadow:3px;
16
16
  }
17
- ._sizeL_12pqocf_19{
17
+ ._sizeL_85twx1_19{
18
18
  --_rs-toggle-width:32px;
19
19
  --_rs-toggle-height:18px;
20
20
  --_rs-toggle-shadow:4px;
21
21
  }
22
- ._classic_12pqocf_23{
22
+ ._classic_85twx1_23{
23
23
  --_rs-toggle-hover-slider-box-shadow-color:var(--_rs-color-primary-t-fog);
24
24
  --_rs-toggle-checked-slider-background-color:var(--_rs-color-primary);
25
25
  }
26
- ._rock_12pqocf_26{
26
+ ._rock_85twx1_26{
27
27
  --_rs-toggle-hover-slider-box-shadow-color:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.2);
28
28
  --_rs-toggle-checked-slider-background-color:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
29
29
  }
30
- ._main_12pqocf_30{
30
+ ._main_85twx1_30{
31
31
  --_rs-toggle-circle-border:2px;
32
32
 
33
33
  --_rs-theme-dark:var(
@@ -42,7 +42,7 @@
42
42
  --_rs-theme-light-coefficient:calc(1 - var(--_rs-theme-dark-coefficient));
43
43
  }
44
44
  @supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
45
- ._main_12pqocf_30{
45
+ ._main_85twx1_30{
46
46
  --_rs-color-primary:color-mix(in srgb, var(--rs-color-primary-light-theme, #6B57FF) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dark-theme, #8473FF) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
47
47
  --_rs-color-primary-dim:color-mix(in srgb, var(--rs-color-primary-dim-light-theme, #8979ff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dim-dark-theme, #6f61d2) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
48
48
  --_rs-color-primary-fog:color-mix(in srgb, var(--rs-color-primary-fog-light-theme, #e1ddff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-fog-dark-theme, #2e2b49) calc(100%*var(--_rs-theme-dark-coefficient, 0)));
@@ -51,7 +51,7 @@
51
51
  }
52
52
  }
53
53
  @supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
54
- ._main_12pqocf_30{
54
+ ._main_85twx1_30{
55
55
  --_rs-color-primary:rgb(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255);
56
56
  --_rs-color-primary-dim:rgb(calc(var(--_rs-theme-light-coefficient, 1)*137 + var(--_rs-theme-dark-coefficient, 0)*111), calc(var(--_rs-theme-light-coefficient, 1)*121 + var(--_rs-theme-dark-coefficient, 0)*97), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*210));
57
57
  --_rs-color-primary-fog:rgb(calc(var(--_rs-theme-light-coefficient, 1)*225 + var(--_rs-theme-dark-coefficient, 0)*46), calc(var(--_rs-theme-light-coefficient, 1)*221 + var(--_rs-theme-dark-coefficient, 0)*43), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*73));
@@ -59,7 +59,7 @@
59
59
  --_rs-color-primary-t-fog:rgba(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255, calc(var(--_rs-theme-light-coefficient, 1)*0.2 + var(--_rs-theme-dark-coefficient, 0)*0.3));
60
60
  }
61
61
  }
62
- ._main_12pqocf_30 {
62
+ ._main_85twx1_30 {
63
63
 
64
64
  position:relative;
65
65
 
@@ -71,7 +71,7 @@
71
71
 
72
72
  cursor:pointer;
73
73
  }
74
- ._main_12pqocf_30 input{
74
+ ._main_85twx1_30 input{
75
75
  position:absolute;
76
76
  z-index:-1;
77
77
 
@@ -81,11 +81,11 @@
81
81
 
82
82
  pointer-events:none;
83
83
  }
84
- ._main_12pqocf_30._disabled_12pqocf_57{
84
+ ._main_85twx1_30._disabled_85twx1_57{
85
85
  cursor:default;
86
86
  pointer-events:none;
87
87
  }
88
- ._slider_12pqocf_63{
88
+ ._slider_85twx1_63{
89
89
  position:absolute;
90
90
  top:var(--_rs-toggle-shadow);
91
91
  left:var(--_rs-toggle-shadow);
@@ -99,7 +99,7 @@
99
99
 
100
100
  transition:background-color 200ms var(--rs-transition-function, ease);
101
101
  }
102
- ._slider_12pqocf_63:after{
102
+ ._slider_85twx1_63:after{
103
103
  position:absolute;
104
104
  top:0;
105
105
  left:0;
@@ -118,15 +118,15 @@
118
118
  transition:transform 200ms var(--rs-transition-function, ease), height 200ms var(--rs-transition-function, ease), width 200ms var(--rs-transition-function, ease), border-color 200ms var(--rs-transition-function, ease);
119
119
  transform:translate(0);
120
120
  }
121
- ._disabled_12pqocf_57 ._slider_12pqocf_63{
121
+ ._disabled_85twx1_57 ._slider_85twx1_63{
122
122
  background:rgb(calc(209 - var(--_rs-theme-dark-coefficient, 0)*138), calc(209 - var(--_rs-theme-dark-coefficient, 0)*138), calc(210 - var(--_rs-theme-dark-coefficient, 0)*137));
123
123
  }
124
- ._disabled_12pqocf_57 ._slider_12pqocf_63:after{
124
+ ._disabled_85twx1_57 ._slider_85twx1_63:after{
125
125
  border-color:rgb(calc(209 - var(--_rs-theme-dark-coefficient, 0)*138), calc(209 - var(--_rs-theme-dark-coefficient, 0)*138), calc(210 - var(--_rs-theme-dark-coefficient, 0)*137));
126
126
 
127
127
  background:rgb(calc(232 - var(--_rs-theme-dark-coefficient, 0)*184), calc(232 - var(--_rs-theme-dark-coefficient, 0)*184), calc(232 - var(--_rs-theme-dark-coefficient, 0)*181));
128
128
  }
129
- input:checked + ._slider_12pqocf_63:after{
129
+ input:checked + ._slider_85twx1_63:after{
130
130
  width:calc(var(--_rs-toggle-height) + var(--_rs-toggle-circle-border));
131
131
  height:calc(var(--_rs-toggle-height) + var(--_rs-toggle-circle-border));
132
132
 
@@ -135,15 +135,15 @@ input:checked + ._slider_12pqocf_63:after{
135
135
  calc(var(--_rs-toggle-circle-border)/-2)
136
136
  );
137
137
  }
138
- ._main_12pqocf_30:not(._disabled_12pqocf_57) input:hover + ._slider_12pqocf_63{
138
+ ._main_85twx1_30:not(._disabled_85twx1_57) input:hover + ._slider_85twx1_63{
139
139
  box-shadow:var(--_rs-toggle-hover-slider-box-shadow-color) 0 0 0 var(--_rs-toggle-shadow);
140
140
  }
141
- ._main_12pqocf_30:not(._disabled_12pqocf_57) input:checked + ._slider_12pqocf_63{
141
+ ._main_85twx1_30:not(._disabled_85twx1_57) input:checked + ._slider_85twx1_63{
142
142
  background-color:var(--_rs-toggle-checked-slider-background-color);
143
143
  }
144
- ._main_12pqocf_30:not(._disabled_12pqocf_57) input:checked + ._slider_12pqocf_63:after{
144
+ ._main_85twx1_30:not(._disabled_85twx1_57) input:checked + ._slider_85twx1_63:after{
145
145
  border-color:var(--_rs-toggle-checked-slider-background-color);
146
146
  }
147
- ._main_12pqocf_30:not(._disabled_12pqocf_57) input:focus[data-focus-method='key'] + ._slider_12pqocf_63{
147
+ ._main_85twx1_30:not(._disabled_85twx1_57) input:focus[data-focus-method='key'] + ._slider_85twx1_63{
148
148
  box-shadow:0 0 0 var(--_rs-toggle-shadow) var(--_rs-color-primary-t-dim);
149
149
  }
package/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { Toggle } from './toggle';
2
- export type { ToggleProps } from './toggle';
3
- export { ToggleControl } from './toggle-control';
4
- export type { ToggleControlProps } from './toggle-control';
1
+ export { Toggle } from './toggle';
2
+ export type { ToggleProps } from './toggle';
3
+ export { ToggleControl } from './toggle-control';
4
+ export type { ToggleControlProps } from './toggle-control';
@@ -1,54 +1,54 @@
1
- import React from 'react';
2
- import { Theme } from '@rescui/ui-contexts';
3
- import type { ToggleMode, ToggleSize } from './types';
4
- export interface ToggleControlProps {
5
- /**
6
- * Additional class name
7
- */
8
- className?: string;
9
- /**
10
- * Checked state. `onChange` callback is required.
11
- */
12
- checked?: boolean;
13
- /**
14
- * Is checkbox initially checked
15
- */
16
- defaultChecked?: boolean;
17
- /**
18
- * Input name attribute
19
- */
20
- name?: string;
21
- /**
22
- * Size
23
- */
24
- size?: ToggleSize;
25
- /**
26
- * Appearance mode
27
- */
28
- mode?: ToggleMode;
29
- /**
30
- * Disabled state
31
- */
32
- disabled?: boolean;
33
- /**
34
- * Appearance theme
35
- */
36
- theme?: Theme;
37
- /**
38
- * Value of the checkbox
39
- */
40
- value?: string;
41
- tabIndex?: number;
42
- /**
43
- * Change value callback
44
- */
45
- onChange?: React.ChangeEventHandler<{
46
- checked?: boolean;
47
- }>;
48
- /**
49
- * Cancel the use of the `label` tag inside.
50
- * Set it to `true` only if the component is wrapped in a `label` on the outside.
51
- */
52
- notUseLabelTag?: boolean;
53
- }
54
- export declare const ToggleControl: React.ForwardRefExoticComponent<ToggleControlProps & React.RefAttributes<HTMLInputElement>>;
1
+ import React from 'react';
2
+ import { Theme } from '@rescui/ui-contexts';
3
+ import type { ToggleMode, ToggleSize } from './types';
4
+ export interface ToggleControlProps {
5
+ /**
6
+ * Additional class name
7
+ */
8
+ className?: string;
9
+ /**
10
+ * Checked state. `onChange` callback is required.
11
+ */
12
+ checked?: boolean;
13
+ /**
14
+ * Is checkbox initially checked
15
+ */
16
+ defaultChecked?: boolean;
17
+ /**
18
+ * Input name attribute
19
+ */
20
+ name?: string;
21
+ /**
22
+ * Size
23
+ */
24
+ size?: ToggleSize;
25
+ /**
26
+ * Appearance mode
27
+ */
28
+ mode?: ToggleMode;
29
+ /**
30
+ * Disabled state
31
+ */
32
+ disabled?: boolean;
33
+ /**
34
+ * Appearance theme
35
+ */
36
+ theme?: Theme;
37
+ /**
38
+ * Value of the checkbox
39
+ */
40
+ value?: string;
41
+ tabIndex?: number;
42
+ /**
43
+ * Change value callback
44
+ */
45
+ onChange?: React.ChangeEventHandler<{
46
+ checked?: boolean;
47
+ }>;
48
+ /**
49
+ * Cancel the use of the `label` tag inside.
50
+ * Set it to `true` only if the component is wrapped in a `label` on the outside.
51
+ */
52
+ notUseLabelTag?: boolean;
53
+ }
54
+ export declare const ToggleControl: React.ForwardRefExoticComponent<ToggleControlProps & React.RefAttributes<HTMLInputElement>>;
package/lib/toggle.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- import React from 'react';
2
- import { ToggleControlProps } from './toggle-control';
3
- import type { ToggleLabelPlacement } from './types';
4
- export interface ToggleProps extends Omit<ToggleControlProps, 'notUseLabelTag'> {
5
- /**
6
- * Label placement relative to toggle
7
- */
8
- labelPlacement?: ToggleLabelPlacement;
9
- /**
10
- * Node or text to show near the input
11
- * */
12
- children?: React.ReactNode;
13
- }
14
- export declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLInputElement>>;
1
+ import React from 'react';
2
+ import { ToggleControlProps } from './toggle-control';
3
+ import type { ToggleLabelPlacement } from './types';
4
+ export interface ToggleProps extends Omit<ToggleControlProps, 'notUseLabelTag'> {
5
+ /**
6
+ * Label placement relative to toggle
7
+ */
8
+ labelPlacement?: ToggleLabelPlacement;
9
+ /**
10
+ * Node or text to show near the input
11
+ * */
12
+ children?: React.ReactNode;
13
+ }
14
+ export declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,13 +1,13 @@
1
1
  var styles = {
2
- "themeLight": "_themeLight_12pqocf_6",
3
- "themeDark": "_themeDark_12pqocf_9",
4
- "sizeS": "_sizeS_12pqocf_13",
5
- "sizeM": "_sizeM_12pqocf_16",
6
- "sizeL": "_sizeL_12pqocf_19",
7
- "classic": "_classic_12pqocf_23",
8
- "rock": "_rock_12pqocf_26",
9
- "main": "_main_12pqocf_30",
10
- "disabled": "_disabled_12pqocf_57",
11
- "slider": "_slider_12pqocf_63"
2
+ "themeLight": "_themeLight_85twx1_6",
3
+ "themeDark": "_themeDark_85twx1_9",
4
+ "sizeS": "_sizeS_85twx1_13",
5
+ "sizeM": "_sizeM_85twx1_16",
6
+ "sizeL": "_sizeL_85twx1_19",
7
+ "classic": "_classic_85twx1_23",
8
+ "rock": "_rock_85twx1_26",
9
+ "main": "_main_85twx1_30",
10
+ "disabled": "_disabled_85twx1_57",
11
+ "slider": "_slider_85twx1_63"
12
12
  };
13
13
  export { styles as default };
package/lib/types.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export declare type ToggleSize = 's' | 'm' | 'l';
2
- export declare type ToggleMode = 'classic' | 'rock';
3
- export declare type ToggleLabelPlacement = 'left' | 'right';
1
+ export type ToggleSize = 's' | 'm' | 'l';
2
+ export type ToggleMode = 'classic' | 'rock';
3
+ export type ToggleLabelPlacement = 'left' | 'right';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rescui/toggle",
3
- "version": "0.5.0",
3
+ "version": "0.5.1-RUI-296-Build-docs-md-files-for-each-docs-section-2a311c841.18+2a311c841",
4
4
  "description": "Toggle is a control that allows you to turn elements on and off instantly",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@babel/runtime-corejs3": "^7.26.0",
19
- "@rescui/menu": "^0.13.5",
19
+ "@rescui/menu": "0.13.6-RUI-296-Build-docs-md-files-for-each-docs-section-2a311c841.18+2a311c841",
20
20
  "classnames": "^2.2.6"
21
21
  },
22
22
  "peerDependencies": {
@@ -25,9 +25,9 @@
25
25
  "react": ">=16.8.0 <20"
26
26
  },
27
27
  "devDependencies": {
28
- "@rescui/colors": "^0.3.0",
29
- "@rescui/scripts": "^0.5.1",
30
- "@rescui/visual-regression": "^0.1.4",
28
+ "@rescui/colors": "0.3.1-RUI-296-Build-docs-md-files-for-each-docs-section-2a311c841.53+2a311c841",
29
+ "@rescui/scripts": "0.5.2",
30
+ "@rescui/visual-regression": "0.1.4",
31
31
  "@types/classnames": "^2.2.11"
32
32
  },
33
33
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "build-pcss-api": "rescui-scripts build-pcss-api --file public-api.p.css"
36
36
  },
37
37
  "nx": {},
38
- "gitHead": "e9aedd97a4cc372540ec8d75dda4f122baacca10"
38
+ "gitHead": "2a311c841551a48c46895aff5609fe099bbe1a61"
39
39
  }