@cobre-npm/ds-v3 0.27.0 → 0.29.0

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.
@@ -204,6 +204,33 @@
204
204
  --cobre-tabs-disabled-radius: 0px;
205
205
  }
206
206
 
207
+ /**
208
+ * Switch
209
+ */
210
+
211
+ :root {
212
+ --cobre-switch-bg: var(--cobre-primary-40);
213
+ --cobre-switch-point-bg: var(--cobre-white);
214
+ --cobre-switch-hover-bg: var(--cobre-primary-60);
215
+ --cobre-switch-border-hover-color: var(--cobre-primary-60);
216
+ --cobre-switch-shadow: 0 0 8px rgba(99, 97, 95, 0.5);
217
+ --cobre-switch-border-color: var(--cobre-primary-40);
218
+
219
+ --cobre-switch-checked-bg: var(--cobre-secondary-50);
220
+ --cobre-switch-point-checked-bg: var(--cobre-white);
221
+ --cobre-switch-checked-disabled-bg: var(--cobre-secondary-30);
222
+ --cobre-switch-checked-disabled-border-color: var(--cobre-secondary-30);
223
+ --cobre-switch-checked-hover-bg: var(--cobre-secondary-70);
224
+ --cobre-switch-checked-border-hover-color: var(--cobre-secondary-70);
225
+ --cobre-switch-checked-shadow: 0 0 8px rgba(31, 93, 93, 0.5);
226
+ --cobre-switch-checked-border-color: var(--cobre-secondary-50);
227
+
228
+ --cobre-switch-disabled-bg: var(--cobre-primary-20);
229
+ --cobre-switch-point-disabled-bg: var(--cobre-white);
230
+ --cobre-switch-disabled-label-color: var(--cobre-primary-40);
231
+ --cobre-switch-disabled-border-color: var(--cobre-primary-20);
232
+ }
233
+
207
234
  /**
208
235
  * ACTION LIST
209
236
  */
@@ -0,0 +1,32 @@
1
+ interface Props {
2
+ modelValue: any;
3
+ disabled?: boolean;
4
+ id?: string;
5
+ label?: string;
6
+ description?: string;
7
+ }
8
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ "update:modelValue": (...args: any[]) => void;
10
+ changed: (...args: any[]) => void;
11
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {}>>> & {
12
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
13
+ onChanged?: ((...args: any[]) => any) | undefined;
14
+ }, {}, {}>;
15
+ export default _default;
16
+ type __VLS_WithDefaults<P, D> = {
17
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
18
+ default: D[K];
19
+ }> : P[K];
20
+ };
21
+ type __VLS_Prettify<T> = {
22
+ [K in keyof T]: T[K];
23
+ } & {};
24
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ type __VLS_TypePropsToOption<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: import('vue').PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
@@ -18,6 +18,7 @@ export { default as CobreToastAlert } from './atoms/CobreToastAlert/CobreToastAl
18
18
  export { default as CobreTruncateTooltipText } from './atoms/CobreTruncateTooltipText/CobreTruncateTooltipText.vue';
19
19
  export { default as CobreUploader } from './atoms/CobreUploader/CobreUploader.vue';
20
20
  export { default as CobreAlert } from './atoms/CobreAlert/CobreAlert.vue';
21
+ export { default as CobreSwitch } from './atoms/CobreSwitch/CobreSwitch.vue';
21
22
  export { default as CobreAccountButton } from './molecules/CobreAccountButton/CobreAccountButton.vue';
22
23
  export { default as CobreAccountInfoField } from './molecules/CobreAccountInfoFiled/CobreAccountInfoField.vue';
23
24
  export { default as CobreActionList } from './molecules/CobreActionList/CobreActionList.vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"