@kanso-labs/kanso-ui 0.45.21 → 0.45.22
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/calendar/index.js +119 -11
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/styles.js +19 -1
- package/dist/calendar/styles.js.map +1 -1
- package/dist/components/app-bar/index.d.ts +8 -2
- package/dist/components/app-bar/index.js +123 -73
- package/dist/components/app-bar/index.js.map +1 -1
- package/dist/components/calendar/index.d.ts +3 -3
- package/dist/components/calendar/index.js +8 -19
- package/dist/components/calendar/index.js.map +1 -1
- package/dist/components/carousel/index.d.ts +22 -3
- package/dist/components/carousel/index.js +26 -14
- package/dist/components/carousel/index.js.map +1 -1
- package/dist/components/chip-group/index.js +3 -0
- package/dist/components/chip-group/index.js.map +1 -1
- package/dist/components/color-picker/index.js +64 -46
- package/dist/components/color-picker/index.js.map +1 -1
- package/dist/components/color-swatch/index.js +20 -16
- package/dist/components/color-swatch/index.js.map +1 -1
- package/dist/components/copy-field/index.js +1 -0
- package/dist/components/copy-field/index.js.map +1 -1
- package/dist/components/date-range-picker/index.js +165 -81
- package/dist/components/date-range-picker/index.js.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/popover/index.js +14 -4
- package/dist/components/popover/index.js.map +1 -1
- package/dist/components/range-calendar/index.js +53 -80
- package/dist/components/range-calendar/index.js.map +1 -1
- package/dist/components/segmented-button/index.js +261 -145
- package/dist/components/segmented-button/index.js.map +1 -1
- package/dist/components/sheet/index.js +149 -82
- package/dist/components/sheet/index.js.map +1 -1
- package/dist/components/table/index.js +251 -123
- package/dist/components/table/index.js.map +1 -1
- package/dist/hooks/useRipple.js +3 -2
- package/dist/hooks/useRipple.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/segments/index.js +2 -1
- package/dist/segments/index.js.map +1 -1
- package/dist/segments/styles.js +5 -1
- package/dist/segments/styles.js.map +1 -1
- package/dist/styles/focus.js.map +1 -1
- package/dist/styles.css +40 -8
- package/dist/swatch/index.js +19 -0
- package/dist/swatch/index.js.map +1 -0
- package/package.json +3 -3
package/dist/styles.css
CHANGED
|
@@ -552,6 +552,10 @@
|
|
|
552
552
|
text-decoration: none;
|
|
553
553
|
}
|
|
554
554
|
|
|
555
|
+
.x91pird[data-empty] {
|
|
556
|
+
padding-inline: var(--x3km7fe);
|
|
557
|
+
}
|
|
558
|
+
|
|
555
559
|
.x9h1dke:last-child {
|
|
556
560
|
overflow: clip;
|
|
557
561
|
}
|
|
@@ -622,6 +626,10 @@
|
|
|
622
626
|
align-items: center;
|
|
623
627
|
}
|
|
624
628
|
|
|
629
|
+
.xpqajaz {
|
|
630
|
+
align-items: end;
|
|
631
|
+
}
|
|
632
|
+
|
|
625
633
|
.xuk3077 {
|
|
626
634
|
align-items: flex-end;
|
|
627
635
|
}
|
|
@@ -1694,6 +1702,10 @@
|
|
|
1694
1702
|
flex-basis: 0;
|
|
1695
1703
|
}
|
|
1696
1704
|
|
|
1705
|
+
.x1l7klhg {
|
|
1706
|
+
flex-basis: 100%;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1697
1709
|
.x4pfjvb {
|
|
1698
1710
|
flex-basis: 50%;
|
|
1699
1711
|
}
|
|
@@ -2471,6 +2483,10 @@
|
|
|
2471
2483
|
overflow-wrap: break-word;
|
|
2472
2484
|
}
|
|
2473
2485
|
|
|
2486
|
+
.x1h4wwuj {
|
|
2487
|
+
overflow-wrap: normal;
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2474
2490
|
.x2vl965 {
|
|
2475
2491
|
padding-inline-end: 10px;
|
|
2476
2492
|
}
|
|
@@ -2587,6 +2603,10 @@
|
|
|
2587
2603
|
resize: none;
|
|
2588
2604
|
}
|
|
2589
2605
|
|
|
2606
|
+
.xxs79tx {
|
|
2607
|
+
row-gap: 0;
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2590
2610
|
.xtfsegk {
|
|
2591
2611
|
row-gap: 8px;
|
|
2592
2612
|
}
|
|
@@ -2595,6 +2615,10 @@
|
|
|
2595
2615
|
scroll-behavior: smooth;
|
|
2596
2616
|
}
|
|
2597
2617
|
|
|
2618
|
+
.x37ujze {
|
|
2619
|
+
scroll-margin-inline-start: calc(18px + var(--xod9tvo));
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2598
2622
|
.x83psoy {
|
|
2599
2623
|
scroll-snap-align: end;
|
|
2600
2624
|
}
|
|
@@ -3122,6 +3146,10 @@
|
|
|
3122
3146
|
line-height: var(--x1lrg4gv);
|
|
3123
3147
|
}
|
|
3124
3148
|
|
|
3149
|
+
.xbrmr3i:has( > [role="dialog"]:focus-visible) {
|
|
3150
|
+
outline-style: solid;
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3125
3153
|
.x1kbcym6:dir(rtl) {
|
|
3126
3154
|
box-shadow: inset 1px 0 0 0 var(--x7dbk6n);
|
|
3127
3155
|
}
|
|
@@ -3385,8 +3413,8 @@
|
|
|
3385
3413
|
outline-offset: -1px;
|
|
3386
3414
|
}
|
|
3387
3415
|
|
|
3388
|
-
.
|
|
3389
|
-
outline-offset:
|
|
3416
|
+
.xs9jlpd.xs9jlpd {
|
|
3417
|
+
outline-offset: -2px;
|
|
3390
3418
|
}
|
|
3391
3419
|
|
|
3392
3420
|
.x12iqurn.x12iqurn {
|
|
@@ -4687,6 +4715,10 @@
|
|
|
4687
4715
|
}
|
|
4688
4716
|
|
|
4689
4717
|
@media (width < 840px) {
|
|
4718
|
+
.x1dstske.x1dstske {
|
|
4719
|
+
display: flex;
|
|
4720
|
+
}
|
|
4721
|
+
|
|
4690
4722
|
.x1yrkhk.x1yrkhk {
|
|
4691
4723
|
display: grid;
|
|
4692
4724
|
}
|
|
@@ -4760,12 +4792,6 @@
|
|
|
4760
4792
|
grid-area: text;
|
|
4761
4793
|
}
|
|
4762
4794
|
|
|
4763
|
-
@media (width < 840px) {
|
|
4764
|
-
.x17udjhq.x17udjhq {
|
|
4765
|
-
grid-auto-rows: 336px;
|
|
4766
|
-
}
|
|
4767
|
-
}
|
|
4768
|
-
|
|
4769
4795
|
@media (width >= 840px) {
|
|
4770
4796
|
.xkgydl7.xkgydl7 {
|
|
4771
4797
|
grid-template-columns: 360px minmax(0, 1fr);
|
|
@@ -5000,6 +5026,12 @@
|
|
|
5000
5026
|
}
|
|
5001
5027
|
}
|
|
5002
5028
|
|
|
5029
|
+
@media (width < 840px) {
|
|
5030
|
+
.x1e8x83n.x1e8x83n {
|
|
5031
|
+
min-height: auto;
|
|
5032
|
+
}
|
|
5033
|
+
}
|
|
5034
|
+
|
|
5003
5035
|
@media (width < 600px) {
|
|
5004
5036
|
.x1iob9gu.x1iob9gu {
|
|
5005
5037
|
min-height: 0;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createContext } from "react";
|
|
2
|
+
// src/swatch/index.ts
|
|
3
|
+
/**
|
|
4
|
+
* A style laid over a swatch's square by what the swatch is drawn in, after
|
|
5
|
+
* the square's own, so it can size the square. A colour picker's trigger draws
|
|
6
|
+
* its swatch at the 24dp of the label's line rather than the 40dp a swatch
|
|
7
|
+
* takes on its own.
|
|
8
|
+
*
|
|
9
|
+
* A context rather than the swatch's `className`, which is the call site's:
|
|
10
|
+
* a class from inside the library is a second StyleX call, and which of two
|
|
11
|
+
* calls setting the same property wins depends on where their rules land in
|
|
12
|
+
* the stylesheet rather than on the order the classes are written in. The
|
|
13
|
+
* trigger's 24px lost to the swatch's 40px that way. Laid over inside the
|
|
14
|
+
* swatch's own `stylex.props`, the later style wins by StyleX's own rule.
|
|
15
|
+
*/
|
|
16
|
+
const SwatchSquareContext = createContext(null);
|
|
17
|
+
export { SwatchSquareContext };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["StyleXStyles","createContext","SwatchSquareContext"],"sources":["../../src/swatch/index.ts"],"sourcesContent":["import type { StyleXStyles } from '@stylexjs/stylex';\nimport { createContext } from 'react';\n\n// What a component drawing a colour swatch can say about the square it draws.\n// Apart from the swatch itself for the reason src/badge gives: a module of its\n// own rather than a part of the one place that uses it, since the swatch\n// imports it and that place imports the swatch.\n\n/**\n * A style laid over a swatch's square by what the swatch is drawn in, after\n * the square's own, so it can size the square. A colour picker's trigger draws\n * its swatch at the 24dp of the label's line rather than the 40dp a swatch\n * takes on its own.\n *\n * A context rather than the swatch's `className`, which is the call site's:\n * a class from inside the library is a second StyleX call, and which of two\n * calls setting the same property wins depends on where their rules land in\n * the stylesheet rather than on the order the classes are written in. The\n * trigger's 24px lost to the swatch's 40px that way. Laid over inside the\n * swatch's own `stylex.props`, the later style wins by StyleX's own rule.\n */\nconst SwatchSquareContext = createContext<null | StyleXStyles>(null);\nexport { SwatchSquareContext };"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAME,sBAAsBD,cAAmC,IAAI"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanso-labs/kanso-ui",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.22",
|
|
4
4
|
"description": "A React component library built on React Aria Components primitives and styled with StyleX, with design tokens sourced from a single W3C DTCG file and compiled via Style Dictionary",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@commitlint/config-conventional": "21.2.4",
|
|
88
88
|
"@eslint/js": "10.0.1",
|
|
89
89
|
"@kanso-labs/kanso-ui-core": "0.1.11",
|
|
90
|
-
"@kanso-labs/unplugin-style-dictionary": "0.10.
|
|
90
|
+
"@kanso-labs/unplugin-style-dictionary": "0.10.54",
|
|
91
91
|
"@microsoft/api-extractor": "7.60.1",
|
|
92
92
|
"@rolldown/plugin-babel": "0.3.0",
|
|
93
93
|
"@storybook/addon-a11y": "10.6.5",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"tsdown": "0.23.5",
|
|
131
131
|
"typescript": "6.0.3",
|
|
132
132
|
"typescript-eslint": "8.72.1",
|
|
133
|
-
"vite": "8.3.
|
|
133
|
+
"vite": "8.3.6",
|
|
134
134
|
"vitest": "5.1.0"
|
|
135
135
|
},
|
|
136
136
|
"peerDependencies": {
|