@max-ts/kit 1.3.2 → 1.5.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/lib/components/Calendar/Dropdown/Dropdown.d.ts.map +1 -1
- package/lib/components/Carousel/Buttons/Buttons.d.ts +1 -1
- package/lib/components/Carousel/Buttons/Buttons.d.ts.map +1 -1
- package/lib/components/Carousel/Buttons/styles.css.d.ts +3 -3
- package/lib/components/Carousel/Buttons/styles.css.d.ts.map +1 -1
- package/lib/components/Carousel/Carousel.d.ts +14 -16
- package/lib/components/Carousel/Carousel.d.ts.map +1 -1
- package/lib/components/Carousel/CarouselContext.d.ts +3 -5
- package/lib/components/Carousel/CarouselContext.d.ts.map +1 -1
- package/lib/components/Carousel/Content/Content.d.ts +2 -1
- package/lib/components/Carousel/Content/Content.d.ts.map +1 -1
- package/lib/components/Carousel/Content/styles.css.d.ts +1 -1
- package/lib/components/Carousel/Content/styles.css.d.ts.map +1 -1
- package/lib/components/Carousel/Dots/Dots.d.ts +2 -5
- package/lib/components/Carousel/Dots/Dots.d.ts.map +1 -1
- package/lib/components/Carousel/Dots/useLogic/useLogic.d.ts.map +1 -1
- package/lib/components/Carousel/Item/Item.d.ts +2 -1
- package/lib/components/Carousel/Item/Item.d.ts.map +1 -1
- package/lib/components/Carousel/Item/styles.css.d.ts +1 -0
- package/lib/components/Carousel/Item/styles.css.d.ts.map +1 -1
- package/lib/components/Carousel/types.d.ts +16 -6
- package/lib/components/Carousel/types.d.ts.map +1 -1
- package/lib/components/Carousel/useLogic/useLogic.d.ts +13 -13
- package/lib/components/Carousel/useLogic/useLogic.d.ts.map +1 -1
- package/lib/components/PeriodPicker/YearsDropdown/YearsDropdown.d.ts.map +1 -1
- package/lib/components/Select/Select.d.ts +15 -26
- package/lib/components/Select/Select.d.ts.map +1 -1
- package/lib/components/Select/styles.css.d.ts +0 -1
- package/lib/components/Select/styles.css.d.ts.map +1 -1
- package/lib/components/Select/types.d.ts +23 -0
- package/lib/components/Select/types.d.ts.map +1 -0
- package/lib/index.mjs +347 -142
- package/lib/stories/Carousel.stories.d.ts +1 -0
- package/lib/stories/Carousel.stories.d.ts.map +1 -1
- package/lib/stories/Select.stories.d.ts +12 -4
- package/lib/stories/Select.stories.d.ts.map +1 -1
- package/lib/styles.css +100 -47
- package/package.json +1 -2
|
@@ -9,5 +9,6 @@ declare const _default: {
|
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
|
11
11
|
export declare function Demo(): import("react").JSX.Element;
|
|
12
|
+
export declare function StartAligned(): import("react").JSX.Element;
|
|
12
13
|
export declare function Vertical(): import("react").JSX.Element;
|
|
13
14
|
//# sourceMappingURL=Carousel.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Carousel.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,QAAQ,EAAE,MAAM,cAAc,CAAC;;;;;;;;;AAE9C,wBAOkC;AAElC,wBAAgB,IAAI,
|
|
1
|
+
{"version":3,"file":"Carousel.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Carousel.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,QAAQ,EAAE,MAAM,cAAc,CAAC;;;;;;;;;AAE9C,wBAOkC;AAElC,wBAAgB,IAAI,gCAkDnB;AAED,wBAAgB,YAAY,gCAkD3B;AAED,wBAAgB,QAAQ,gCAoDvB"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import type { Meta } from 'storybook-react-rsbuild';
|
|
2
1
|
import { Select } from '../components/index.ts';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: typeof Select;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
};
|
|
4
10
|
export default _default;
|
|
5
|
-
export declare function
|
|
11
|
+
export declare function Demo(): import("react").JSX.Element;
|
|
6
12
|
export declare function Sizes(): import("react").JSX.Element;
|
|
7
|
-
export declare function
|
|
13
|
+
export declare function Multiple(): import("react").JSX.Element;
|
|
14
|
+
export declare function MultipleControlled(): import("react").JSX.Element;
|
|
15
|
+
export declare function Scrollable(): import("react").JSX.Element;
|
|
8
16
|
//# sourceMappingURL=Select.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Select.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Select.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;;;;;;;;;AAsBtC,wBAOgC;AAehC,wBAAgB,IAAI,gCAWnB;AAED,wBAAgB,KAAK,gCAepB;AAED,wBAAgB,QAAQ,gCAiBvB;AAED,wBAAgB,kBAAkB,gCA4BjC;AAED,wBAAgB,UAAU,gCAgEzB"}
|
package/lib/styles.css
CHANGED
|
@@ -1916,61 +1916,104 @@ a.outline__1af895x4:hover {
|
|
|
1916
1916
|
}
|
|
1917
1917
|
|
|
1918
1918
|
.style__2d6ocq0 {
|
|
1919
|
-
|
|
1920
|
-
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
transition: opacity .2s linear;
|
|
1926
|
-
display: grid;
|
|
1919
|
+
cursor: pointer;
|
|
1920
|
+
background-color: #0000;
|
|
1921
|
+
border: none;
|
|
1922
|
+
justify-content: center;
|
|
1923
|
+
align-items: center;
|
|
1924
|
+
display: flex;
|
|
1927
1925
|
position: absolute;
|
|
1928
1926
|
}
|
|
1929
1927
|
|
|
1930
1928
|
.style__2d6ocq0:disabled {
|
|
1931
|
-
|
|
1932
|
-
|
|
1929
|
+
-webkit-user-select: none;
|
|
1930
|
+
user-select: none;
|
|
1931
|
+
cursor: default;
|
|
1932
|
+
opacity: .5;
|
|
1933
1933
|
}
|
|
1934
1934
|
|
|
1935
|
-
.
|
|
1936
|
-
|
|
1935
|
+
.style__2d6ocq1 {
|
|
1936
|
+
width: var(--spacing-8);
|
|
1937
|
+
height: var(--spacing-8);
|
|
1938
|
+
background-color: var(--colors-background-paper);
|
|
1939
|
+
border-radius: 9999px;
|
|
1940
|
+
justify-content: center;
|
|
1941
|
+
align-items: center;
|
|
1942
|
+
transition: transform .2s;
|
|
1943
|
+
display: flex;
|
|
1937
1944
|
}
|
|
1938
1945
|
|
|
1939
|
-
.style__2d6ocq1 {
|
|
1940
|
-
|
|
1941
|
-
right: 0;
|
|
1946
|
+
.style__2d6ocq0:not(:disabled):hover .style__2d6ocq1 {
|
|
1947
|
+
transform: scale(1.1);
|
|
1942
1948
|
}
|
|
1943
1949
|
|
|
1944
|
-
.
|
|
1950
|
+
.style__2d6ocq1 svg {
|
|
1951
|
+
width: var(--spacing-5);
|
|
1952
|
+
height: var(--spacing-5);
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
.horizontal__2d6ocq2 {
|
|
1956
|
+
width: clamp(2.5rem, 4vw, 4rem);
|
|
1957
|
+
height: 100%;
|
|
1945
1958
|
top: 0;
|
|
1959
|
+
right: 0;
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
.vertical__2d6ocq3 {
|
|
1963
|
+
width: 100%;
|
|
1964
|
+
height: clamp(2.5rem, 4vw, 4rem);
|
|
1965
|
+
bottom: 0;
|
|
1946
1966
|
left: 0;
|
|
1947
1967
|
}
|
|
1948
1968
|
|
|
1949
|
-
.
|
|
1950
|
-
width: clamp(
|
|
1969
|
+
.horizontal__2d6ocq4 {
|
|
1970
|
+
width: clamp(2.5rem, 4vw, 4rem);
|
|
1951
1971
|
height: 100%;
|
|
1972
|
+
top: 0;
|
|
1973
|
+
left: 0;
|
|
1952
1974
|
}
|
|
1953
1975
|
|
|
1954
|
-
.
|
|
1976
|
+
.vertical__2d6ocq5 {
|
|
1955
1977
|
width: 100%;
|
|
1956
|
-
height: clamp(
|
|
1978
|
+
height: clamp(2.5rem, 4vw, 4rem);
|
|
1979
|
+
top: 0;
|
|
1980
|
+
right: 0;
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
.vertical__2d6ocq3 svg, .vertical__2d6ocq5 svg {
|
|
1984
|
+
transform: rotate(90deg);
|
|
1957
1985
|
}
|
|
1958
1986
|
|
|
1959
1987
|
.style__i1lems0 {
|
|
1988
|
+
scroll-behavior: smooth;
|
|
1989
|
+
scrollbar-width: none;
|
|
1990
|
+
-webkit-overflow-scrolling: touch;
|
|
1960
1991
|
width: 100%;
|
|
1961
1992
|
height: 100%;
|
|
1993
|
+
display: flex;
|
|
1962
1994
|
overflow: hidden;
|
|
1963
1995
|
}
|
|
1964
1996
|
|
|
1997
|
+
.style__i1lems0::-webkit-scrollbar {
|
|
1998
|
+
display: none;
|
|
1999
|
+
}
|
|
2000
|
+
|
|
1965
2001
|
.horizontal__i1lems1 {
|
|
1966
|
-
|
|
1967
|
-
|
|
2002
|
+
scroll-snap-type: x mandatory;
|
|
2003
|
+
overscroll-behavior-x: contain;
|
|
2004
|
+
overscroll-behavior-y: auto;
|
|
2005
|
+
column-gap: var(--spacing-4);
|
|
2006
|
+
flex-direction: row;
|
|
2007
|
+
overflow: auto hidden;
|
|
1968
2008
|
}
|
|
1969
2009
|
|
|
1970
2010
|
.vertical__i1lems2 {
|
|
1971
|
-
|
|
2011
|
+
scroll-snap-type: y mandatory;
|
|
2012
|
+
overscroll-behavior-y: contain;
|
|
2013
|
+
overscroll-behavior-x: auto;
|
|
2014
|
+
row-gap: var(--spacing-4);
|
|
1972
2015
|
flex-direction: column;
|
|
1973
|
-
|
|
2016
|
+
overflow: hidden auto;
|
|
1974
2017
|
}
|
|
1975
2018
|
|
|
1976
2019
|
.style__e2zpp60 {
|
|
@@ -2043,6 +2086,16 @@ a.outline__1af895x4:hover {
|
|
|
2043
2086
|
min-width: 0;
|
|
2044
2087
|
}
|
|
2045
2088
|
|
|
2089
|
+
.horizontal__1gif6yr1 {
|
|
2090
|
+
scroll-snap-align: center;
|
|
2091
|
+
scroll-snap-stop: always;
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
.vertical__1gif6yr2 {
|
|
2095
|
+
scroll-snap-align: start;
|
|
2096
|
+
scroll-snap-stop: always;
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2046
2099
|
.Carousel__1jbydv50 {
|
|
2047
2100
|
position: relative;
|
|
2048
2101
|
}
|
|
@@ -4214,20 +4267,20 @@ a.outline__1af895x4:hover {
|
|
|
4214
4267
|
opacity: .5;
|
|
4215
4268
|
}
|
|
4216
4269
|
|
|
4217
|
-
.
|
|
4218
|
-
height:
|
|
4270
|
+
.style__5ilg7o2[data-size="small"] {
|
|
4271
|
+
height: calc(var(--spacing-6) + var(--spacing-1));
|
|
4219
4272
|
font-size: var(--fontSize-sm);
|
|
4220
4273
|
padding: var(--spacing-1) var(--spacing-2);
|
|
4221
4274
|
}
|
|
4222
4275
|
|
|
4223
|
-
.
|
|
4276
|
+
.style__5ilg7o2[data-size="medium"] {
|
|
4224
4277
|
height: var(--spacing-8);
|
|
4225
4278
|
font-size: var(--fontSize-base);
|
|
4226
4279
|
padding: var(--spacing-2) var(--spacing-2);
|
|
4227
4280
|
}
|
|
4228
4281
|
|
|
4229
|
-
.
|
|
4230
|
-
height:
|
|
4282
|
+
.style__5ilg7o2[data-size="large"] {
|
|
4283
|
+
height: calc(var(--spacing-8) + var(--spacing-1));
|
|
4231
4284
|
font-size: var(--fontSize-base);
|
|
4232
4285
|
padding: var(--spacing-2) var(--spacing-2);
|
|
4233
4286
|
}
|
|
@@ -4238,7 +4291,7 @@ a.outline__1af895x4:hover {
|
|
|
4238
4291
|
overflow: hidden;
|
|
4239
4292
|
}
|
|
4240
4293
|
|
|
4241
|
-
.
|
|
4294
|
+
.style__5ilg7o3 {
|
|
4242
4295
|
cursor: default;
|
|
4243
4296
|
padding: var(--spacing-1) 0;
|
|
4244
4297
|
justify-content: center;
|
|
@@ -4246,12 +4299,12 @@ a.outline__1af895x4:hover {
|
|
|
4246
4299
|
display: flex;
|
|
4247
4300
|
}
|
|
4248
4301
|
|
|
4249
|
-
.
|
|
4302
|
+
.style__5ilg7o4 {
|
|
4250
4303
|
isolation: isolate;
|
|
4251
4304
|
z-index: 5000;
|
|
4252
4305
|
}
|
|
4253
4306
|
|
|
4254
|
-
.
|
|
4307
|
+
.style__5ilg7o5 {
|
|
4255
4308
|
z-index: 5000;
|
|
4256
4309
|
max-height: var(--available-height, 24rem);
|
|
4257
4310
|
border-radius: var(--borderRadius-md);
|
|
@@ -4264,43 +4317,43 @@ a.outline__1af895x4:hover {
|
|
|
4264
4317
|
box-shadow: 0 2px 4px #0000001a;
|
|
4265
4318
|
}
|
|
4266
4319
|
|
|
4267
|
-
.
|
|
4320
|
+
.style__5ilg7o5[data-open] {
|
|
4268
4321
|
animation: .15s ease-out style__5ilg7o0;
|
|
4269
4322
|
}
|
|
4270
4323
|
|
|
4271
|
-
.
|
|
4324
|
+
.style__5ilg7o5[data-closed] {
|
|
4272
4325
|
animation: .15s ease-in style__5ilg7o1;
|
|
4273
4326
|
}
|
|
4274
4327
|
|
|
4275
|
-
.
|
|
4328
|
+
.style__5ilg7o5[data-side="bottom"] {
|
|
4276
4329
|
transform: translateY(4px);
|
|
4277
4330
|
}
|
|
4278
4331
|
|
|
4279
|
-
.
|
|
4332
|
+
.style__5ilg7o5[data-side="top"] {
|
|
4280
4333
|
transform: translateY(-4px);
|
|
4281
4334
|
}
|
|
4282
4335
|
|
|
4283
|
-
.
|
|
4336
|
+
.style__5ilg7o5[data-side="left"] {
|
|
4284
4337
|
transform: translateX(-4px);
|
|
4285
4338
|
}
|
|
4286
4339
|
|
|
4287
|
-
.
|
|
4340
|
+
.style__5ilg7o5[data-side="right"] {
|
|
4288
4341
|
transform: translateX(4px);
|
|
4289
4342
|
}
|
|
4290
4343
|
|
|
4291
|
-
.
|
|
4344
|
+
.style__5ilg7o6 {
|
|
4292
4345
|
padding: var(--spacing-1);
|
|
4293
4346
|
width: 100%;
|
|
4294
4347
|
min-width: var(--anchor-width, 100%);
|
|
4295
4348
|
}
|
|
4296
4349
|
|
|
4297
|
-
.
|
|
4350
|
+
.style__5ilg7o7 {
|
|
4298
4351
|
padding: var(--spacing-1) var(--spacing-2) var(--spacing-1) var(--spacing-8);
|
|
4299
4352
|
font-size: var(--fontSize-sm);
|
|
4300
4353
|
font-weight: var(--fontWeight-semibold);
|
|
4301
4354
|
}
|
|
4302
4355
|
|
|
4303
|
-
.
|
|
4356
|
+
.style__5ilg7o8 {
|
|
4304
4357
|
cursor: default;
|
|
4305
4358
|
-webkit-user-select: none;
|
|
4306
4359
|
user-select: none;
|
|
@@ -4314,17 +4367,17 @@ a.outline__1af895x4:hover {
|
|
|
4314
4367
|
position: relative;
|
|
4315
4368
|
}
|
|
4316
4369
|
|
|
4317
|
-
.
|
|
4370
|
+
.style__5ilg7o8[data-highlighted] {
|
|
4318
4371
|
background-color: var(--colors-background-elementHover);
|
|
4319
4372
|
color: var(--colors-text-primary);
|
|
4320
4373
|
}
|
|
4321
4374
|
|
|
4322
|
-
.
|
|
4375
|
+
.style__5ilg7o8[data-disabled] {
|
|
4323
4376
|
pointer-events: none;
|
|
4324
4377
|
opacity: .5;
|
|
4325
4378
|
}
|
|
4326
4379
|
|
|
4327
|
-
.
|
|
4380
|
+
.style__5ilg7o9 {
|
|
4328
4381
|
left: var(--spacing-2);
|
|
4329
4382
|
justify-content: center;
|
|
4330
4383
|
align-items: center;
|
|
@@ -4334,18 +4387,18 @@ a.outline__1af895x4:hover {
|
|
|
4334
4387
|
position: absolute;
|
|
4335
4388
|
}
|
|
4336
4389
|
|
|
4337
|
-
.
|
|
4390
|
+
.style__5ilg7oa {
|
|
4338
4391
|
margin: var(--spacing-1) calc(-1 * var(--spacing-1));
|
|
4339
4392
|
background-color: var(--colors-background-element);
|
|
4340
4393
|
height: 1px;
|
|
4341
4394
|
}
|
|
4342
4395
|
|
|
4343
|
-
.
|
|
4396
|
+
.style__5ilg7ob {
|
|
4344
4397
|
width: 1rem;
|
|
4345
4398
|
height: 1rem;
|
|
4346
4399
|
}
|
|
4347
4400
|
|
|
4348
|
-
.
|
|
4401
|
+
.style__5ilg7oc {
|
|
4349
4402
|
opacity: .5;
|
|
4350
4403
|
width: 1rem;
|
|
4351
4404
|
height: 1rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@max-ts/kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./lib/index.mjs",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"@base-ui/react": "^1.5.0",
|
|
19
19
|
"@react-input/mask": "^2.0.4",
|
|
20
20
|
"clsx": "^2.1.1",
|
|
21
|
-
"embla-carousel-react": "^8.6.0",
|
|
22
21
|
"input-otp": "^1.4.2",
|
|
23
22
|
"lucide-react": "^1.17.0",
|
|
24
23
|
"react-day-picker": "^10.0.1",
|