toku-ui 4.2.0 → 4.3.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.
- package/dist/components/TFileUpload/TFileUpload.vue.d.ts.map +1 -1
- package/dist/components/TSwitch/TSwitch.stories.d.ts +124 -7
- package/dist/components/TSwitch/TSwitch.stories.d.ts.map +1 -1
- package/dist/components/TSwitch/TSwitch.vue.d.ts +95 -0
- package/dist/components/TSwitch/TSwitch.vue.d.ts.map +1 -0
- package/dist/components/TSwitch/index.d.ts +2 -2
- package/dist/components/TSwitch/index.d.ts.map +1 -1
- package/dist/composables/forwardedAttrs.d.ts +15 -0
- package/dist/composables/forwardedAttrs.d.ts.map +1 -0
- package/dist/index.es.js +637 -664
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -3
- package/dist/components/TSwitch/TSwitch.d.ts +0 -22
- package/dist/components/TSwitch/TSwitch.d.ts.map +0 -1
- package/dist/components/TSwitch/TSwitch.styles.d.ts +0 -2
- package/dist/components/TSwitch/TSwitch.styles.d.ts.map +0 -1
- package/dist/components/TSwitch/TSwitch.types.d.ts +0 -9
- package/dist/components/TSwitch/TSwitch.types.d.ts.map +0 -1
package/dist/style.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[data-v-519905d4]{box-sizing:border-box;margin:0}.t-chip[data-v-519905d4]{border:.5px solid var(--v3457cee4);background-color:var(--v38cf7840);border-radius:32px;align-items:center;gap:4px;padding:4px 8px;display:inline-flex}.t-chip[data-v-519905d4] *{color:var(--v3457cee4);font-size:.75rem;line-height:18px}.t-chip--active[data-v-519905d4]{border:.5px solid var(--v2d9fac57);background-color:var(--v4320e4fd)}.t-chip--active[data-v-519905d4] *{color:var(--v2d9fac57)}.t-file-upload[data-v-
|
|
1
|
+
[data-v-519905d4]{box-sizing:border-box;margin:0}.t-chip[data-v-519905d4]{border:.5px solid var(--v3457cee4);background-color:var(--v38cf7840);border-radius:32px;align-items:center;gap:4px;padding:4px 8px;display:inline-flex}.t-chip[data-v-519905d4] *{color:var(--v3457cee4);font-size:.75rem;line-height:18px}.t-chip--active[data-v-519905d4]{border:.5px solid var(--v2d9fac57);background-color:var(--v4320e4fd)}.t-chip--active[data-v-519905d4] *{color:var(--v2d9fac57)}.t-file-upload[data-v-c773adff]{gap:var(--space-2);flex-direction:column;width:100%;display:flex}.t-file-upload[data-disabled] .t-file-upload__box[data-state=empty][data-v-c773adff]{cursor:not-allowed;opacity:.5}.t-file-upload[data-disabled] .t-file-upload__box[data-state=empty][data-v-c773adff]:hover{background-color:#0000}.t-file-upload[data-disabled] .t-file-upload__remove[data-v-c773adff]{cursor:not-allowed;opacity:.5}.t-file-upload:focus-within .t-file-upload__box[data-state=empty][data-v-c773adff]{border:1px dashed var(--color-brand-9);background-color:var(--color-brand-1);outline:none}.t-file-upload__label[data-v-c773adff]{display:flex}.t-file-upload__box[data-v-c773adff]{justify-content:center;align-items:center;gap:var(--space-2);padding:var(--space-5) var(--space-4);border-radius:var(--radius-md);transition:background-color .15s,border-color .15s;display:flex;position:relative}.t-file-upload__box[data-state=empty][data-v-c773adff]{border:1px dashed var(--color-gray-4);cursor:pointer;background-color:#0000}.t-file-upload__box[data-state=empty][data-v-c773adff]:hover{background-color:var(--color-gray-1)}.t-file-upload__box[data-state=loading][data-v-c773adff]{border:1px dashed var(--color-brand-9);background-color:var(--color-brand-1)}.t-file-upload__box[data-state=loaded][data-v-c773adff]{border:1px solid var(--color-brand-9);background-color:var(--color-brand-1);padding:var(--space-2) var(--space-4)}.t-file-upload__input[data-v-c773adff]{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.t-file-upload__cta-text[data-v-c773adff]{text-decoration:underline}.t-file-upload__filename[data-v-c773adff]{min-width:0;overflow:hidden}.t-file-upload__filename-text[data-v-c773adff]{text-overflow:ellipsis;white-space:nowrap;text-decoration:underline;overflow:hidden}.t-file-upload__remove[data-v-c773adff]{top:calc(-1 * var(--space-2));background:radial-gradient(circle, var(--color-brand-9) 0, var(--color-brand-9) 6px, transparent 7.5px);border-radius:var(--radius-full);cursor:pointer;box-sizing:border-box;border:none;justify-content:center;align-items:center;width:18px;height:18px;padding:0;display:flex;position:absolute;right:-2px}.t-file-upload__hints[data-v-c773adff]{justify-content:space-between;gap:var(--space-4);display:flex}.t-switch[data-v-f80e4486]{align-items:center;gap:var(--space-2);display:inline-flex}.t-switch[data-label-position=left][data-v-f80e4486]{flex-direction:row-reverse}.t-switch[data-disabled][data-v-f80e4486]{cursor:not-allowed;opacity:var(--opacity-disabled)}.t-switch-track[data-v-f80e4486]{border-radius:var(--radius-pill-default);background:var(--color-gray-3);cursor:pointer;outline:var(--focus-ring-width) solid transparent;outline-offset:var(--focus-ring-offset);width:2.5rem;height:1.25rem;transition:background-color var(--motion-control-duration) var(--motion-control-easing), outline-color var(--motion-control-duration) var(--motion-control-easing), box-shadow var(--motion-control-duration) var(--motion-control-easing);border:0;flex-shrink:0;padding:0;display:inline-flex;position:relative}.t-switch-track[data-state=checked][data-v-f80e4486]{background:var(--color-bg-primary-default)}.t-switch-track[data-v-f80e4486]:not([data-disabled]):hover{background:var(--color-gray-4)}.t-switch-track:not([data-disabled]):hover[data-state=checked][data-v-f80e4486]{background:var(--color-bg-primary-hover)}.t-switch-track[data-disabled][data-v-f80e4486]:not([data-state=checked]){background:var(--color-gray-2)}.t-switch-track[data-disabled][data-v-f80e4486]{cursor:not-allowed}.t-switch-track[data-v-f80e4486]:focus-visible{outline-color:var(--color-ring-focus-default);box-shadow:0 0 0 var(--focus-ring-halo-width) var(--color-ring-focus-halo-default)}.t-switch-thumb[data-v-f80e4486]{border-radius:var(--radius-pill-default);background:var(--color-bg-surface-raised-default);width:1rem;height:1rem;box-shadow:var(--shadow-sm);transition:transform var(--motion-control-duration) var(--motion-control-easing), box-shadow var(--motion-control-duration) var(--motion-control-easing);will-change:transform;margin:2px;display:block}.t-switch-thumb[data-state=checked][data-v-f80e4486]{transform:translate(calc(1.5rem - 4px))}.t-switch-track:not([data-disabled]):active .t-switch-thumb[data-v-f80e4486],.t-switch-track[data-disabled] .t-switch-thumb[data-v-f80e4486]{box-shadow:none}.t-switch-label[data-v-f80e4486]{font-family:var(--font-family-base);font-size:var(--font-b2-font-size);line-height:var(--font-b2-line-height);font-weight:var(--font-weight-regular);color:var(--color-text-default-default);cursor:pointer;-webkit-user-select:none;user-select:none}.t-switch[data-disabled] .t-switch-label[data-v-f80e4486]{cursor:not-allowed;color:var(--color-text-disabled-default)}
|
|
2
2
|
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toku-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.3.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
@@ -70,10 +70,12 @@
|
|
|
70
70
|
"*.{ts,tsx,vue}": "eslint --fix",
|
|
71
71
|
"*.{vue,css,scss}": "stylelint --fix --allow-empty-input"
|
|
72
72
|
},
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"reka-ui": "^2.9.0"
|
|
75
|
+
},
|
|
73
76
|
"peerDependencies": {
|
|
74
77
|
"@emotion/css": ">=11.0.0",
|
|
75
78
|
"@iconify/vue": "^4.1.1",
|
|
76
|
-
"reka-ui": "^2.0.0",
|
|
77
79
|
"vue": "^3.5.0"
|
|
78
80
|
},
|
|
79
81
|
"devDependencies": {
|
|
@@ -108,7 +110,6 @@
|
|
|
108
110
|
"postcss-html": "1.8.1",
|
|
109
111
|
"prettier": "3.8.3",
|
|
110
112
|
"publint": "0.3.21",
|
|
111
|
-
"reka-ui": "2.9.9",
|
|
112
113
|
"sass": "1.71.1",
|
|
113
114
|
"simple-git-hooks": "2.13.1",
|
|
114
115
|
"size-limit": "12.1.0",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { PropType } from 'vue';
|
|
2
|
-
import type { TSwitchProps } from './TSwitch.types';
|
|
3
|
-
export declare const TSwitch: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
-
label: PropType<TSwitchProps["label"]>;
|
|
5
|
-
disabled: PropType<TSwitchProps["disabled"]>;
|
|
6
|
-
value: PropType<TSwitchProps["value"]>;
|
|
7
|
-
modelValue: PropType<TSwitchProps["modelValue"]>;
|
|
8
|
-
labelPosition: PropType<TSwitchProps["labelPosition"]>;
|
|
9
|
-
id: PropType<TSwitchProps["id"]>;
|
|
10
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "change" | "update:modelValue")[], "input" | "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
-
label: PropType<TSwitchProps["label"]>;
|
|
12
|
-
disabled: PropType<TSwitchProps["disabled"]>;
|
|
13
|
-
value: PropType<TSwitchProps["value"]>;
|
|
14
|
-
modelValue: PropType<TSwitchProps["modelValue"]>;
|
|
15
|
-
labelPosition: PropType<TSwitchProps["labelPosition"]>;
|
|
16
|
-
id: PropType<TSwitchProps["id"]>;
|
|
17
|
-
}>> & Readonly<{
|
|
18
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
19
|
-
onInput?: ((...args: any[]) => any) | undefined;
|
|
20
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
21
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
-
//# sourceMappingURL=TSwitch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TSwitch.d.ts","sourceRoot":"","sources":["../../../src/components/TSwitch/TSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AASpD,eAAO,MAAM,OAAO;WAGC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;cAC3B,QAAQ,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;WACrC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;gBAC1B,QAAQ,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;mBAClC,QAAQ,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;QAClD,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;;WALzB,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;cAC3B,QAAQ,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;WACrC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;gBAC1B,QAAQ,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;mBAClC,QAAQ,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;QAClD,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;;;;;iFA8D5C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TSwitch.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TSwitch/TSwitch.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,yCAuDrB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes } from 'vue';
|
|
2
|
-
export interface TSwitchProps extends HTMLAttributes {
|
|
3
|
-
label?: string;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
value?: boolean;
|
|
6
|
-
modelValue?: boolean;
|
|
7
|
-
labelPosition?: 'left' | 'right';
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=TSwitch.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TSwitch.types.d.ts","sourceRoot":"","sources":["../../../src/components/TSwitch/TSwitch.types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C,MAAM,WAAW,YAAa,SAAQ,cAAc;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAClC"}
|