@kanso-labs/kanso-ui 0.47.2 → 0.47.3
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/color-slider/index.d.ts +4 -2
- package/dist/components/color-slider/index.js +103 -60
- package/dist/components/color-slider/index.js.map +1 -1
- package/dist/components/dialog/index.d.ts +13 -6
- package/dist/components/dialog/index.js +96 -47
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.js.map +1 -1
- package/dist/components/navigation-bar/index.js.map +1 -1
- package/dist/components/navigation-rail/index.js.map +1 -1
- package/dist/components/tabs/index.js +26 -19
- package/dist/components/tabs/index.js.map +1 -1
- package/dist/hooks/useEnlargedText.js +58 -0
- package/dist/hooks/useEnlargedText.js.map +1 -0
- package/dist/navigation/index.js +5 -3
- package/dist/navigation/index.js.map +1 -1
- package/dist/navigation/styles.js +15 -0
- package/dist/navigation/styles.js.map +1 -1
- package/dist/row/styles.js +2 -0
- package/dist/row/styles.js.map +1 -1
- package/dist/styles/text-scale.js +18 -0
- package/dist/styles/text-scale.js.map +1 -0
- package/dist/styles.css +36 -0
- package/package.json +6 -6
package/dist/row/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","names":["rowStyles","base","kGNEyG","kWkggS","kMzoRj","kB7OPa","kMwMTN","k1xSpc","kOIVth","kzqmXN","k3XXqK","k8WAf4","kg3NbH","kVAEAm","k9WMMc","kMnn75","$$css","disabled","kkrTdU","kAXs8y","dragging","kKwaWg","kGVxlE","kY2c9j","drawer","kaIpWk","kUOVxO","kAzted","drawerSurface","dropTarget","kjBf7l","kInvED","kMeerF","focusVisible","focusVisibleSelected","headlineEmphasis","k63SB2","headlineList","kMv6JI","kGuDYH","kb6lSQ","kLWn49","kHjlTd","headlineMenu","headlineOnValueLine","kVQacm","kg5iWk","khDVqt","hovered","interactive","kVVagm","interactiveLayers","list","main","kXwgrk","kzQI83","k7Eaqz","menu","overline","pressed","selectedDrawer","selectedList","selectedMenu","slot","kmuXW","slotDisabled","kSiTet","slotSelected","supporting","supportingInherit","supportingSelectedDrawer","supportingSelectedList","supportingSelectedMenu","threeLine","twoLine","supportingTone","variant","isDisabled","isSelected"],"sources":["../../src/row/styles.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport type { RowVariant } from '.';\nimport '../tokens/design.tokens.stylex';\nimport { colors, radii, shadows, sizing, spacing, stateLayerOpacity, typography } from '../tokens/design.tokens.stylex';\n\n// The row every list draws: ListItem's, and from here on the item of every\n// collection the coverage plan adds — ListBox, Menu, List, Tree, the options\n// of Select and ComboBox. Apart from the RowContent component in ./index.tsx\n// so that file exports components alone, which is what keeps fast refresh\n// working for it.\n//\n// Three variants, because three spec pages draw three rows. The lists page\n// gives a list item a 56dp floor, a body-large headline and a body-medium\n// supporting line, and primary container when selected. The menus page gives\n// a menu item 48dp, a label-large label, and tertiary container when\n// selected. The navigation drawer page gives its row 56dp too, with a\n// label-large label like a menu's, and marks the current one with a\n// secondary-container pill held 12dp off each edge — 336dp of indicator in a\n// 360dp container, which is what that inset comes to. The layout, the\n// padding, the state layers and the disabled treatment are one row; `list`,\n// `menu` and `drawer` carry only what the three pages disagree on, and a\n// consumer applies one of them beside `base`.\n//\n// The block padding is the lists page's 8dp, which is what puts a row's\n// 40dp leading element — an avatar, a selection checkbox — on the 56dp\n// one-line height, and a 56dp one on 72. The page pads a three-line row 12dp\n// instead, which `threeLine` carries. A menu item and a drawer row hold one\n// line of text inside a taller floor, so their padding shows only on a label\n// that wraps.\n//\n// Laid out with flex rather than the grid the design draws. The design's\n// three columns are `auto 1fr auto`, which is what flex does natively — and\n// unlike a fixed three-column grid it stays correct when a row has no leading\n// or no trailing content, where the remaining children would otherwise slide\n// into the wrong columns.\n//\n// Rows align with each other through their leading content being the same\n// size, not through a fixed column width: a list of Avatars all at one size\n// lines up, and that is the same thing the design's 40px column achieves.\n//\n// The state layer composites over `transparent` rather than over a container\n// colour, because a row's own background is transparent and it therefore\n// tints whatever it happens to be sitting on — a card, a menu, or the page.\n// The two selected states are the ones that bring a container of their own.\n\n// A pointer that can hover, for `interactiveLayers` — a plain element with no\n// render state, so its hover layer is a pseudo-class, and Chromium leaves\n// `:hover` on whatever a touch last tapped. Inside this query a touch screen\n// draws no hover at all; a touchscreen laptop still matches it for its\n// trackpad.\nconst HOVER_CAPABLE = '@media (hover: hover)';\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\nconst rowStyles = {\n base: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"xjbqb8w\",\n kMzoRj: \"xc342km\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x139gbkf xs5hli\",\n k1xSpc: \"x78zum5\",\n kOIVth: \"xxj4525\",\n kzqmXN: \"xh8yej3\",\n k3XXqK: \"x1t137rt\",\n k8WAf4: \"x1cmllll\",\n kg3NbH: \"x790zyz\",\n kVAEAm: \"x1n2onr6\",\n k9WMMc: \"x1yc453h\",\n kMnn75: \"xkrqix3\",\n $$css: true\n },\n disabled: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x1xj74d8 x1bhcspo\",\n kkrTdU: \"x1h6gzvc\",\n kAXs8y: \"xr5dkdi\",\n $$css: true\n },\n dragging: {\n kWkggS: \"x14s9m32\",\n kKwaWg: \"xdiex0u\",\n kGVxlE: \"x4r79n0\",\n kY2c9j: \"x1vjfegm\",\n $$css: true\n },\n drawer: {\n kaIpWk: \"x1dkaolv\",\n kzqmXN: \"x14atkfc\",\n kUOVxO: \"xd2r6sq\",\n kAzted: \"xyax5pk\",\n $$css: true\n },\n drawerSurface: {\n kaIpWk: \"x1dkaolv\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"xjp7ctv\",\n $$css: true\n },\n dropTarget: {\n kKwaWg: \"xu73ib2\",\n kjBf7l: \"xrgy624 x1x84bn5\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"xaatb59\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n focusVisible: {\n kKwaWg: \"x17vw94z\",\n kjBf7l: \"xrgy624 x1v8yhc2\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"xaatb59\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n focusVisibleSelected: {\n kInvED: \"x2ssjo2 xzpfk5o\",\n $$css: true\n },\n headlineEmphasis: {\n k63SB2: \"x1sfltvt\",\n $$css: true\n },\n headlineList: {\n kMv6JI: \"x16svsjw\",\n kGuDYH: \"x1848etk\",\n k63SB2: \"x1c52epr\",\n kb6lSQ: \"x1qn8t5l\",\n kLWn49: \"xh7dzej\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n headlineMenu: {\n kMv6JI: \"xkknnkr\",\n kGuDYH: \"x14zspaw\",\n k63SB2: \"x1v9cpvo\",\n kb6lSQ: \"x155f00i\",\n kLWn49: \"x1lz68p4\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n headlineOnValueLine: {\n kVQacm: \"xb3r6kr\",\n kg5iWk: \"xlyipyv\",\n khDVqt: \"xuxw1ft\",\n $$css: true\n },\n hovered: {\n kKwaWg: \"xbmfk57\",\n kkrTdU: \"x1ypdohk\",\n $$css: true\n },\n interactive: {\n kkrTdU: \"x1ypdohk\",\n kVVagm: \"xln7xf2\",\n kjBf7l: \"xrgy624\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"x9v5kkp x1t137rt\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n interactiveLayers: {\n kWkggS: \"x83qkoq x1yl1wq7 x10oam47 xkl27de xjqqt44 xjbqb8w\",\n $$css: true\n },\n list: {\n kAzted: \"xyax5pk\",\n $$css: true\n },\n main: {\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kzQI83: \"x1iyjqo2\",\n kOIVth: \"x14qo01y\",\n k7Eaqz: \"xeuugli\",\n $$css: true\n },\n menu: {\n kAzted: \"x1ddmzdj\",\n $$css: true\n },\n overline: {\n kMwMTN: \"x1w5n3ug\",\n kMv6JI: \"xs1w0rn\",\n kGuDYH: \"x1n35her\",\n k63SB2: \"x1su64ma\",\n kb6lSQ: \"xdlnduh\",\n kLWn49: \"xaomhve\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n pressed: {\n kKwaWg: \"xdiex0u\",\n $$css: true\n },\n selectedDrawer: {\n kWkggS: \"x15dekr4 x1jzqe4\",\n kMwMTN: \"x1sawysd x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n selectedList: {\n kWkggS: \"xp89om9 x1jzqe4\",\n kMwMTN: \"xscdzaa x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n selectedMenu: {\n kWkggS: \"xs6yvni x1jzqe4\",\n kMwMTN: \"x3cbcwg x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n slot: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n $$css: true\n },\n slotDisabled: {\n kMwMTN: \"x139gbkf x1bhcspo\",\n kSiTet: \"x1ppv7y9 x1tbh5bv\",\n $$css: true\n },\n slotSelected: {\n kAXs8y: \"xr5dkdi\",\n $$css: true\n },\n supporting: {\n kMwMTN: \"x1w5n3ug\",\n kMv6JI: \"xpo2rfv\",\n kGuDYH: \"x193rfdd\",\n k63SB2: \"x1hews6w\",\n kb6lSQ: \"xn43zvd\",\n kLWn49: \"xv61bfh\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n supportingInherit: {\n kMwMTN: \"x1heor9g\",\n $$css: true\n },\n supportingSelectedDrawer: {\n kMwMTN: \"x1sawysd x1k5gbb1\",\n $$css: true\n },\n supportingSelectedList: {\n kMwMTN: \"xscdzaa x1k5gbb1\",\n $$css: true\n },\n supportingSelectedMenu: {\n kMwMTN: \"x3cbcwg x1k5gbb1\",\n $$css: true\n },\n threeLine: {\n kGNEyG: \"x1cy8zhl\",\n kAzted: \"x1bt55z4\",\n k8WAf4: \"x1uvvd8r\",\n $$css: true\n },\n twoLine: {\n kAzted: \"x304zwk\",\n $$css: true\n }\n};\n\n/**\n * The tone a row's muted text takes over its own muted style: the supporting\n * line and the overline, and a menu item's shortcut. Nothing while the row is\n * drawn on the surface, where the muted style's on surface variant holds;\n * the selected container's own on-colour while selected; and the row's own\n * colour while disabled. Disabled is asked first, since a disabled row's own\n * colour is already the faded one and so wins over the selected container's\n * content role. One function for every caller, so a shortcut and the\n * supporting line beside it cannot come to disagree.\n */\nfunction supportingTone(variant: RowVariant, {\n isDisabled,\n isSelected\n}: {\n isDisabled: boolean;\n isSelected: boolean;\n}) {\n if (isDisabled) {\n return rowStyles.supportingInherit;\n }\n if (!isSelected) {\n return null;\n }\n // Each variant's container is a different colour family, and the muted\n // role is not guaranteed to be readable over any of them.\n if (variant === 'drawer') {\n return rowStyles.supportingSelectedDrawer;\n }\n if (variant === 'menu') {\n return rowStyles.supportingSelectedMenu;\n }\n return rowStyles.supportingSelectedList;\n}\nexport { rowStyles, supportingTone };"],"mappings":";AAyDA,MAAMA,YAAY;CAChBC,MAAM;EACJC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,UAAU;EACRd,QAAQ;EACRG,QAAQ;EACRY,QAAQ;EACRC,QAAQ;EACRH,OAAO;CACT;CACAI,UAAU;EACRjB,QAAQ;EACRkB,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRP,OAAO;CACT;CACAQ,QAAQ;EACNC,QAAQ;EACRhB,QAAQ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","kOIVth","kzqmXN","k3XXqK","k8WAf4","kg3NbH","kVAEAm","k9WMMc","kMnn75","$$css","disabled","kkrTdU","kAXs8y","dragging","kKwaWg","kGVxlE","kY2c9j","drawer","kaIpWk","kUOVxO","kAzted","drawerSurface","dropTarget","kjBf7l","kInvED","kMeerF","focusVisible","focusVisibleSelected","headlineEmphasis","k63SB2","headlineList","kMv6JI","kGuDYH","kb6lSQ","kLWn49","kHjlTd","headlineMenu","headlineOnValueLine","kVQacm","kg5iWk","khDVqt","hovered","interactive","kVVagm","interactiveLayers","list","main","kXwgrk","kzQI83","k7Eaqz","menu","overline","pressed","selectedDrawer","selectedList","selectedMenu","slot","kmuXW","slotDisabled","kSiTet","slotSelected","supporting","supportingInherit","supportingSelectedDrawer","supportingSelectedList","supportingSelectedMenu","threeLine","twoLine","supportingTone","variant","isDisabled","isSelected"],"sources":["../../src/row/styles.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport type { RowVariant } from '.';\nimport '../tokens/design.tokens.stylex';\nimport { colors, radii, shadows, sizing, spacing, stateLayerOpacity, typography } from '../tokens/design.tokens.stylex';\n\n// The row every list draws: ListItem's, and from here on the item of every\n// collection the coverage plan adds — ListBox, Menu, List, Tree, the options\n// of Select and ComboBox. Apart from the RowContent component in ./index.tsx\n// so that file exports components alone, which is what keeps fast refresh\n// working for it.\n//\n// Three variants, because three spec pages draw three rows. The lists page\n// gives a list item a 56dp floor, a body-large headline and a body-medium\n// supporting line, and primary container when selected. The menus page gives\n// a menu item 48dp, a label-large label, 12dp of inline padding and of room\n// after its leading icon where the lists page gives 16, and tertiary\n// container when selected. The navigation drawer page gives its row 56dp too, with a\n// label-large label like a menu's, and marks the current one with a\n// secondary-container pill held 12dp off each edge — 336dp of indicator in a\n// 360dp container, which is what that inset comes to. The layout, the\n// padding, the state layers and the disabled treatment are one row; `list`,\n// `menu` and `drawer` carry only what the three pages disagree on, and a\n// consumer applies one of them beside `base`.\n//\n// The block padding is the lists page's 8dp, which is what puts a row's\n// 40dp leading element — an avatar, a selection checkbox — on the 56dp\n// one-line height, and a 56dp one on 72. The page pads a three-line row 12dp\n// instead, which `threeLine` carries. A menu item and a drawer row hold one\n// line of text inside a taller floor, so their padding shows only on a label\n// that wraps.\n//\n// Laid out with flex rather than the grid the design draws. The design's\n// three columns are `auto 1fr auto`, which is what flex does natively — and\n// unlike a fixed three-column grid it stays correct when a row has no leading\n// or no trailing content, where the remaining children would otherwise slide\n// into the wrong columns.\n//\n// Rows align with each other through their leading content being the same\n// size, not through a fixed column width: a list of Avatars all at one size\n// lines up, and that is the same thing the design's 40px column achieves.\n//\n// The state layer composites over `transparent` rather than over a container\n// colour, because a row's own background is transparent and it therefore\n// tints whatever it happens to be sitting on — a card, a menu, or the page.\n// The two selected states are the ones that bring a container of their own.\n\n// A pointer that can hover, for `interactiveLayers` — a plain element with no\n// render state, so its hover layer is a pseudo-class, and Chromium leaves\n// `:hover` on whatever a touch last tapped. Inside this query a touch screen\n// draws no hover at all; a touchscreen laptop still matches it for its\n// trackpad.\nconst HOVER_CAPABLE = '@media (hover: hover)';\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\nconst rowStyles = {\n base: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"xjbqb8w\",\n kMzoRj: \"xc342km\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x139gbkf xs5hli\",\n k1xSpc: \"x78zum5\",\n kOIVth: \"xxj4525\",\n kzqmXN: \"xh8yej3\",\n k3XXqK: \"x1t137rt\",\n k8WAf4: \"x1cmllll\",\n kg3NbH: \"x790zyz\",\n kVAEAm: \"x1n2onr6\",\n k9WMMc: \"x1yc453h\",\n kMnn75: \"xkrqix3\",\n $$css: true\n },\n disabled: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x1xj74d8 x1bhcspo\",\n kkrTdU: \"x1h6gzvc\",\n kAXs8y: \"xr5dkdi\",\n $$css: true\n },\n dragging: {\n kWkggS: \"x14s9m32\",\n kKwaWg: \"xdiex0u\",\n kGVxlE: \"x4r79n0\",\n kY2c9j: \"x1vjfegm\",\n $$css: true\n },\n drawer: {\n kaIpWk: \"x1dkaolv\",\n kzqmXN: \"x14atkfc\",\n kUOVxO: \"xd2r6sq\",\n kAzted: \"xyax5pk\",\n $$css: true\n },\n drawerSurface: {\n kaIpWk: \"x1dkaolv\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"xjp7ctv\",\n $$css: true\n },\n dropTarget: {\n kKwaWg: \"xu73ib2\",\n kjBf7l: \"xrgy624 x1x84bn5\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"xaatb59\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n focusVisible: {\n kKwaWg: \"x17vw94z\",\n kjBf7l: \"xrgy624 x1v8yhc2\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"xaatb59\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n focusVisibleSelected: {\n kInvED: \"x2ssjo2 xzpfk5o\",\n $$css: true\n },\n headlineEmphasis: {\n k63SB2: \"x1sfltvt\",\n $$css: true\n },\n headlineList: {\n kMv6JI: \"x16svsjw\",\n kGuDYH: \"x1848etk\",\n k63SB2: \"x1c52epr\",\n kb6lSQ: \"x1qn8t5l\",\n kLWn49: \"xh7dzej\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n headlineMenu: {\n kMv6JI: \"xkknnkr\",\n kGuDYH: \"x14zspaw\",\n k63SB2: \"x1v9cpvo\",\n kb6lSQ: \"x155f00i\",\n kLWn49: \"x1lz68p4\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n headlineOnValueLine: {\n kVQacm: \"xb3r6kr\",\n kg5iWk: \"xlyipyv\",\n khDVqt: \"xuxw1ft\",\n $$css: true\n },\n hovered: {\n kKwaWg: \"xbmfk57\",\n kkrTdU: \"x1ypdohk\",\n $$css: true\n },\n interactive: {\n kkrTdU: \"x1ypdohk\",\n kVVagm: \"xln7xf2\",\n kjBf7l: \"xrgy624\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"x9v5kkp x1t137rt\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n interactiveLayers: {\n kWkggS: \"x83qkoq x1yl1wq7 x10oam47 xkl27de xjqqt44 xjbqb8w\",\n $$css: true\n },\n list: {\n kAzted: \"xyax5pk\",\n $$css: true\n },\n main: {\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kzQI83: \"x1iyjqo2\",\n kOIVth: \"x14qo01y\",\n k7Eaqz: \"xeuugli\",\n $$css: true\n },\n menu: {\n kOIVth: \"x1gka490\",\n kAzted: \"x1ddmzdj\",\n kg3NbH: \"x18fpw6u\",\n $$css: true\n },\n overline: {\n kMwMTN: \"x1w5n3ug\",\n kMv6JI: \"xs1w0rn\",\n kGuDYH: \"x1n35her\",\n k63SB2: \"x1su64ma\",\n kb6lSQ: \"xdlnduh\",\n kLWn49: \"xaomhve\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n pressed: {\n kKwaWg: \"xdiex0u\",\n $$css: true\n },\n selectedDrawer: {\n kWkggS: \"x15dekr4 x1jzqe4\",\n kMwMTN: \"x1sawysd x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n selectedList: {\n kWkggS: \"xp89om9 x1jzqe4\",\n kMwMTN: \"xscdzaa x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n selectedMenu: {\n kWkggS: \"xs6yvni x1jzqe4\",\n kMwMTN: \"x3cbcwg x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n slot: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n $$css: true\n },\n slotDisabled: {\n kMwMTN: \"x139gbkf x1bhcspo\",\n kSiTet: \"x1ppv7y9 x1tbh5bv\",\n $$css: true\n },\n slotSelected: {\n kAXs8y: \"xr5dkdi\",\n $$css: true\n },\n supporting: {\n kMwMTN: \"x1w5n3ug\",\n kMv6JI: \"xpo2rfv\",\n kGuDYH: \"x193rfdd\",\n k63SB2: \"x1hews6w\",\n kb6lSQ: \"xn43zvd\",\n kLWn49: \"xv61bfh\",\n kHjlTd: \"xj0a0fe\",\n $$css: true\n },\n supportingInherit: {\n kMwMTN: \"x1heor9g\",\n $$css: true\n },\n supportingSelectedDrawer: {\n kMwMTN: \"x1sawysd x1k5gbb1\",\n $$css: true\n },\n supportingSelectedList: {\n kMwMTN: \"xscdzaa x1k5gbb1\",\n $$css: true\n },\n supportingSelectedMenu: {\n kMwMTN: \"x3cbcwg x1k5gbb1\",\n $$css: true\n },\n threeLine: {\n kGNEyG: \"x1cy8zhl\",\n kAzted: \"x1bt55z4\",\n k8WAf4: \"x1uvvd8r\",\n $$css: true\n },\n twoLine: {\n kAzted: \"x304zwk\",\n $$css: true\n }\n};\n\n/**\n * The tone a row's muted text takes over its own muted style: the supporting\n * line and the overline, and a menu item's shortcut. Nothing while the row is\n * drawn on the surface, where the muted style's on surface variant holds;\n * the selected container's own on-colour while selected; and the row's own\n * colour while disabled. Disabled is asked first, since a disabled row's own\n * colour is already the faded one and so wins over the selected container's\n * content role. One function for every caller, so a shortcut and the\n * supporting line beside it cannot come to disagree.\n */\nfunction supportingTone(variant: RowVariant, {\n isDisabled,\n isSelected\n}: {\n isDisabled: boolean;\n isSelected: boolean;\n}) {\n if (isDisabled) {\n return rowStyles.supportingInherit;\n }\n if (!isSelected) {\n return null;\n }\n // Each variant's container is a different colour family, and the muted\n // role is not guaranteed to be readable over any of them.\n if (variant === 'drawer') {\n return rowStyles.supportingSelectedDrawer;\n }\n if (variant === 'menu') {\n return rowStyles.supportingSelectedMenu;\n }\n return rowStyles.supportingSelectedList;\n}\nexport { rowStyles, supportingTone };"],"mappings":";AA0DA,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O;CACT;CACAyD,WAAW;EACTvE,QAAQ;EACRyB,QAAQ;EACRhB,QAAQ;EACRK,OAAO;CACT;CACA0D,SAAS;EACP/C,QAAQ;EACRX,OAAO;CACT;AACF;;;;;;;;;;;AAYA,SAAS2D,eAAeC,SAAqB,EAC3CC,YACAC,cAIC;CACD,IAAID,YACF,OAAO7E,UAAUqE;CAEnB,IAAI,CAACS,YACH,OAAO;CAIT,IAAIF,YAAY,UACd,OAAO5E,UAAUsE;CAEnB,IAAIM,YAAY,QACd,OAAO5E,UAAUwE;CAEnB,OAAOxE,UAAUuE;AACnB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/styles/text-scale.ts
|
|
2
|
+
const textScaleStyles = { probe: {
|
|
3
|
+
kZKoxP: "xzabkev",
|
|
4
|
+
kB7OPa: "x9f619",
|
|
5
|
+
k1xSpc: "x1lliihq",
|
|
6
|
+
kGuDYH: "xkucv67",
|
|
7
|
+
kzqmXN: "x15vhz18",
|
|
8
|
+
k87sOh: "x13vifvy",
|
|
9
|
+
kLqNvP: "x1o0tod",
|
|
10
|
+
kfzvcC: "x47corl",
|
|
11
|
+
kVAEAm: "xixxii4",
|
|
12
|
+
k33iCy: "xlshs6z",
|
|
13
|
+
kW8zPn: "x1li4cp8",
|
|
14
|
+
$$css: true
|
|
15
|
+
} };
|
|
16
|
+
export { textScaleStyles };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=text-scale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-scale.js","names":["textScaleStyles","probe","kZKoxP","kB7OPa","k1xSpc","kGuDYH","kzqmXN","k87sOh","kLqNvP","kfzvcC","kVAEAm","k33iCy","kW8zPn","$$css"],"sources":["../../src/styles/text-scale.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\nimport '../tokens/design.tokens.stylex';\nimport { typography } from '../tokens/design.tokens.stylex';\n\n// The probe `useEnlargedText` measures, in src/hooks/useEnlargedText.ts. It is\n// as wide as its own font and as tall as the same size written as a length,\n// the type size navigation labels are set in. A reader's text-only zoom —\n// Firefox's and Safari's \"Zoom Text Only\", and the text scale Firefox takes\n// from Windows and Android — and a browser's minimum font size grow the font\n// and leave the length alone, so the probe comes out wider than it is tall.\n// Page zoom grows both, and so does a theme giving the role another size, so\n// neither does.\n//\n// Fixed at the window's corner and hidden, so it takes no room and no\n// pointer, and horizontal whatever the page's writing mode, so its width is\n// the font's.\nconst textScaleStyles = {\n probe: {\n kZKoxP: \"xzabkev\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"x1lliihq\",\n kGuDYH: \"xkucv67\",\n kzqmXN: \"x15vhz18\",\n k87sOh: \"x13vifvy\",\n kLqNvP: \"x1o0tod\",\n kfzvcC: \"x47corl\",\n kVAEAm: \"xixxii4\",\n k33iCy: \"xlshs6z\",\n kW8zPn: \"x1li4cp8\",\n $$css: true\n }\n};\nexport { textScaleStyles };"],"mappings":";AAgBA,MAAMA,kBAAkB,EACtBC,OAAO;CACLC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,OAAO;AACT,EACF"}
|
package/dist/styles.css
CHANGED
|
@@ -1268,6 +1268,10 @@
|
|
|
1268
1268
|
-webkit-line-clamp: 2;
|
|
1269
1269
|
}
|
|
1270
1270
|
|
|
1271
|
+
.x1uy8f9d {
|
|
1272
|
+
-webkit-line-clamp: none;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1271
1275
|
.x1l10kik {
|
|
1272
1276
|
align-content: safe center;
|
|
1273
1277
|
}
|
|
@@ -3149,6 +3153,10 @@
|
|
|
3149
3153
|
opacity: var(--xu361ij);
|
|
3150
3154
|
}
|
|
3151
3155
|
|
|
3156
|
+
.x14yy4lh {
|
|
3157
|
+
order: 2;
|
|
3158
|
+
}
|
|
3159
|
+
|
|
3152
3160
|
.x14ytart {
|
|
3153
3161
|
outline-color: currentColor;
|
|
3154
3162
|
}
|
|
@@ -3768,6 +3776,10 @@
|
|
|
3768
3776
|
visibility: hidden;
|
|
3769
3777
|
}
|
|
3770
3778
|
|
|
3779
|
+
.xeaf4i8 {
|
|
3780
|
+
white-space: normal;
|
|
3781
|
+
}
|
|
3782
|
+
|
|
3771
3783
|
.xuxw1ft {
|
|
3772
3784
|
white-space: nowrap;
|
|
3773
3785
|
}
|
|
@@ -3776,6 +3788,10 @@
|
|
|
3776
3788
|
white-space: pre-wrap;
|
|
3777
3789
|
}
|
|
3778
3790
|
|
|
3791
|
+
.x1li4cp8 {
|
|
3792
|
+
writing-mode: horizontal-tb;
|
|
3793
|
+
}
|
|
3794
|
+
|
|
3779
3795
|
.x8knxv4 {
|
|
3780
3796
|
z-index: -1;
|
|
3781
3797
|
}
|
|
@@ -4231,6 +4247,10 @@
|
|
|
4231
4247
|
}
|
|
4232
4248
|
|
|
4233
4249
|
@media (width < 600px) {
|
|
4250
|
+
.xy5ce5c.xy5ce5c {
|
|
4251
|
+
flex-grow: 1;
|
|
4252
|
+
}
|
|
4253
|
+
|
|
4234
4254
|
.xl849ld.xl849ld {
|
|
4235
4255
|
font-family: var(--xr826oj);
|
|
4236
4256
|
}
|
|
@@ -4314,6 +4334,12 @@
|
|
|
4314
4334
|
}
|
|
4315
4335
|
}
|
|
4316
4336
|
|
|
4337
|
+
@media (width < 600px) {
|
|
4338
|
+
.xrnjqs5.xrnjqs5 {
|
|
4339
|
+
order: 1;
|
|
4340
|
+
}
|
|
4341
|
+
}
|
|
4342
|
+
|
|
4317
4343
|
@media (forced-colors: active) {
|
|
4318
4344
|
.x3teovq.x3teovq {
|
|
4319
4345
|
outline-color: canvastext;
|
|
@@ -4424,6 +4450,12 @@
|
|
|
4424
4450
|
}
|
|
4425
4451
|
}
|
|
4426
4452
|
|
|
4453
|
+
@media (width >= 600px) {
|
|
4454
|
+
.x17j4zob.x17j4zob {
|
|
4455
|
+
white-space: nowrap;
|
|
4456
|
+
}
|
|
4457
|
+
}
|
|
4458
|
+
|
|
4427
4459
|
.x5u4zhu:active:has(button:active) {
|
|
4428
4460
|
background-color: var(--x1xbp8h6);
|
|
4429
4461
|
}
|
|
@@ -4808,6 +4840,10 @@
|
|
|
4808
4840
|
height: var(--x1ww3f7m);
|
|
4809
4841
|
}
|
|
4810
4842
|
|
|
4843
|
+
.xzabkev {
|
|
4844
|
+
height: var(--x48e3yn);
|
|
4845
|
+
}
|
|
4846
|
+
|
|
4811
4847
|
.xig8zya {
|
|
4812
4848
|
height: var(--x67cwyw);
|
|
4813
4849
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanso-labs/kanso-ui",
|
|
3
|
-
"version": "0.47.
|
|
3
|
+
"version": "0.47.3",
|
|
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",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"@commitlint/cli": "21.2.4",
|
|
87
87
|
"@commitlint/config-conventional": "21.2.4",
|
|
88
88
|
"@eslint/js": "10.0.1",
|
|
89
|
-
"@kanso-labs/kanso-ui-core": "0.1.
|
|
90
|
-
"@kanso-labs/unplugin-style-dictionary": "0.10.
|
|
89
|
+
"@kanso-labs/kanso-ui-core": "0.1.22",
|
|
90
|
+
"@kanso-labs/unplugin-style-dictionary": "0.10.68",
|
|
91
91
|
"@microsoft/api-extractor": "7.60.1",
|
|
92
92
|
"@rolldown/plugin-babel": "0.3.1",
|
|
93
93
|
"@storybook/addon-a11y": "10.6.7",
|
|
@@ -109,14 +109,14 @@
|
|
|
109
109
|
"babel-plugin-react-compiler": "1.0.0",
|
|
110
110
|
"eslint": "10.15.0",
|
|
111
111
|
"eslint-plugin-oxlint": "1.93.0",
|
|
112
|
-
"eslint-plugin-perfectionist": "5.
|
|
112
|
+
"eslint-plugin-perfectionist": "5.14.0",
|
|
113
113
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
114
|
-
"eslint-plugin-react-refresh": "0.5.
|
|
114
|
+
"eslint-plugin-react-refresh": "0.5.8",
|
|
115
115
|
"eslint-plugin-storybook": "10.6.7",
|
|
116
116
|
"globals": "17.14.0",
|
|
117
117
|
"husky": "9.1.7",
|
|
118
118
|
"lightningcss": "1.33.0",
|
|
119
|
-
"lint-staged": "17.6.
|
|
119
|
+
"lint-staged": "17.6.1",
|
|
120
120
|
"oxfmt": "0.78.0",
|
|
121
121
|
"oxlint": "1.93.0",
|
|
122
122
|
"oxlint-tsgolint": "7.0.2007",
|