@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.
Files changed (38) hide show
  1. package/lib/components/Calendar/Dropdown/Dropdown.d.ts.map +1 -1
  2. package/lib/components/Carousel/Buttons/Buttons.d.ts +1 -1
  3. package/lib/components/Carousel/Buttons/Buttons.d.ts.map +1 -1
  4. package/lib/components/Carousel/Buttons/styles.css.d.ts +3 -3
  5. package/lib/components/Carousel/Buttons/styles.css.d.ts.map +1 -1
  6. package/lib/components/Carousel/Carousel.d.ts +14 -16
  7. package/lib/components/Carousel/Carousel.d.ts.map +1 -1
  8. package/lib/components/Carousel/CarouselContext.d.ts +3 -5
  9. package/lib/components/Carousel/CarouselContext.d.ts.map +1 -1
  10. package/lib/components/Carousel/Content/Content.d.ts +2 -1
  11. package/lib/components/Carousel/Content/Content.d.ts.map +1 -1
  12. package/lib/components/Carousel/Content/styles.css.d.ts +1 -1
  13. package/lib/components/Carousel/Content/styles.css.d.ts.map +1 -1
  14. package/lib/components/Carousel/Dots/Dots.d.ts +2 -5
  15. package/lib/components/Carousel/Dots/Dots.d.ts.map +1 -1
  16. package/lib/components/Carousel/Dots/useLogic/useLogic.d.ts.map +1 -1
  17. package/lib/components/Carousel/Item/Item.d.ts +2 -1
  18. package/lib/components/Carousel/Item/Item.d.ts.map +1 -1
  19. package/lib/components/Carousel/Item/styles.css.d.ts +1 -0
  20. package/lib/components/Carousel/Item/styles.css.d.ts.map +1 -1
  21. package/lib/components/Carousel/types.d.ts +16 -6
  22. package/lib/components/Carousel/types.d.ts.map +1 -1
  23. package/lib/components/Carousel/useLogic/useLogic.d.ts +13 -13
  24. package/lib/components/Carousel/useLogic/useLogic.d.ts.map +1 -1
  25. package/lib/components/PeriodPicker/YearsDropdown/YearsDropdown.d.ts.map +1 -1
  26. package/lib/components/Select/Select.d.ts +15 -26
  27. package/lib/components/Select/Select.d.ts.map +1 -1
  28. package/lib/components/Select/styles.css.d.ts +0 -1
  29. package/lib/components/Select/styles.css.d.ts.map +1 -1
  30. package/lib/components/Select/types.d.ts +23 -0
  31. package/lib/components/Select/types.d.ts.map +1 -0
  32. package/lib/index.mjs +347 -142
  33. package/lib/stories/Carousel.stories.d.ts +1 -0
  34. package/lib/stories/Carousel.stories.d.ts.map +1 -1
  35. package/lib/stories/Select.stories.d.ts +12 -4
  36. package/lib/stories/Select.stories.d.ts.map +1 -1
  37. package/lib/styles.css +100 -47
  38. 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,gCAiDnB;AAED,wBAAgB,QAAQ,gCAqDvB"}
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: Meta<typeof Select>;
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 SelectDemo(): import("react").JSX.Element;
11
+ export declare function Demo(): import("react").JSX.Element;
6
12
  export declare function Sizes(): import("react").JSX.Element;
7
- export declare function SelectScrollable(): import("react").JSX.Element;
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":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EACN,MAAM,EAON,MAAM,cAAc,CAAC;wBASjB,IAAI,CAAC,OAAO,MAAM,CAAC;AAPxB,wBAOyB;AAEzB,wBAAgB,UAAU,gCAkBzB;AAED,wBAAgB,KAAK,gCAmCpB;AAED,wBAAgB,gBAAgB,gCA8D/B"}
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
- opacity: .4;
1920
- -webkit-user-select: none;
1921
- user-select: none;
1922
- border-radius: var(--borderRadius-md);
1923
- color: var(--colors-primary);
1924
- place-items: center;
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
- pointer-events: none;
1932
- opacity: .2;
1929
+ -webkit-user-select: none;
1930
+ user-select: none;
1931
+ cursor: default;
1932
+ opacity: .5;
1933
1933
  }
1934
1934
 
1935
- .style__2d6ocq0:hover {
1936
- opacity: 1;
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
- bottom: 0;
1941
- right: 0;
1946
+ .style__2d6ocq0:not(:disabled):hover .style__2d6ocq1 {
1947
+ transform: scale(1.1);
1942
1948
  }
1943
1949
 
1944
- .style__2d6ocq2 {
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
- .horizontal__2d6ocq3 {
1950
- width: clamp(35px, 15%, 55px);
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
- .vertical__2d6ocq4 {
1976
+ .vertical__2d6ocq5 {
1955
1977
  width: 100%;
1956
- height: clamp(35px, 15%, 55px);
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
- gap: var(--spacing-4);
1967
- display: flex;
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
- gap: var(--spacing-4);
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
- display: flex;
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
- .small__5ilg7o3 {
4218
- height: 28px;
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
- .medium__5ilg7o4 {
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
- .large__5ilg7o5 {
4230
- height: 36px;
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
- .style__5ilg7o6 {
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
- .style__5ilg7o7 {
4302
+ .style__5ilg7o4 {
4250
4303
  isolation: isolate;
4251
4304
  z-index: 5000;
4252
4305
  }
4253
4306
 
4254
- .style__5ilg7o8 {
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
- .style__5ilg7o8[data-open] {
4320
+ .style__5ilg7o5[data-open] {
4268
4321
  animation: .15s ease-out style__5ilg7o0;
4269
4322
  }
4270
4323
 
4271
- .style__5ilg7o8[data-closed] {
4324
+ .style__5ilg7o5[data-closed] {
4272
4325
  animation: .15s ease-in style__5ilg7o1;
4273
4326
  }
4274
4327
 
4275
- .style__5ilg7o8[data-side="bottom"] {
4328
+ .style__5ilg7o5[data-side="bottom"] {
4276
4329
  transform: translateY(4px);
4277
4330
  }
4278
4331
 
4279
- .style__5ilg7o8[data-side="top"] {
4332
+ .style__5ilg7o5[data-side="top"] {
4280
4333
  transform: translateY(-4px);
4281
4334
  }
4282
4335
 
4283
- .style__5ilg7o8[data-side="left"] {
4336
+ .style__5ilg7o5[data-side="left"] {
4284
4337
  transform: translateX(-4px);
4285
4338
  }
4286
4339
 
4287
- .style__5ilg7o8[data-side="right"] {
4340
+ .style__5ilg7o5[data-side="right"] {
4288
4341
  transform: translateX(4px);
4289
4342
  }
4290
4343
 
4291
- .style__5ilg7o9 {
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
- .style__5ilg7oa {
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
- .style__5ilg7ob {
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
- .style__5ilg7ob[data-highlighted] {
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
- .style__5ilg7ob[data-disabled] {
4375
+ .style__5ilg7o8[data-disabled] {
4323
4376
  pointer-events: none;
4324
4377
  opacity: .5;
4325
4378
  }
4326
4379
 
4327
- .style__5ilg7oc {
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
- .style__5ilg7od {
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
- .style__5ilg7oe {
4396
+ .style__5ilg7ob {
4344
4397
  width: 1rem;
4345
4398
  height: 1rem;
4346
4399
  }
4347
4400
 
4348
- .style__5ilg7of {
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.2",
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",