@kanso-labs/kanso-ui 0.48.0 → 0.48.1

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 (139) hide show
  1. package/dist/button/hooks.js +3 -3
  2. package/dist/button/index.js +2 -2
  3. package/dist/calendar/index.js +5 -5
  4. package/dist/chip/label.js +1 -1
  5. package/dist/collection/index.js +2 -2
  6. package/dist/components/app-bar/index.d.ts +1 -1
  7. package/dist/components/app-bar/index.js +2 -2
  8. package/dist/components/autocomplete/index.js +2 -2
  9. package/dist/components/avatar/index.d.ts +1 -1
  10. package/dist/components/avatar/index.js +1 -1
  11. package/dist/components/badge/index.js +3 -3
  12. package/dist/components/breadcrumbs/index.js +2 -2
  13. package/dist/components/button/index.d.ts +1 -1
  14. package/dist/components/button/index.js +3 -3
  15. package/dist/components/button-group/index.d.ts +1 -1
  16. package/dist/components/button-group/index.js +3 -3
  17. package/dist/components/calendar/index.js +4 -4
  18. package/dist/components/card/index.js +2 -2
  19. package/dist/components/carousel/index.d.ts +1 -1
  20. package/dist/components/carousel/index.js +2 -2
  21. package/dist/components/checkbox/index.js +3 -3
  22. package/dist/components/checkbox-group/index.js +2 -2
  23. package/dist/components/chip/index.js +2 -2
  24. package/dist/components/chip-group/index.js +3 -3
  25. package/dist/components/code/index.js +1 -1
  26. package/dist/components/color-area/index.js +2 -2
  27. package/dist/components/color-field/index.d.ts +1 -1
  28. package/dist/components/color-field/index.js +2 -2
  29. package/dist/components/color-picker/index.js +2 -2
  30. package/dist/components/color-slider/index.js +3 -3
  31. package/dist/components/color-swatch/index.js +3 -3
  32. package/dist/components/color-swatch-picker/index.js +2 -2
  33. package/dist/components/color-wheel/index.js +2 -2
  34. package/dist/components/combo-box/index.d.ts +1 -1
  35. package/dist/components/combo-box/index.js +3 -3
  36. package/dist/components/container/index.js +1 -1
  37. package/dist/components/copy-field/index.js +2 -2
  38. package/dist/components/currency/index.js +3 -3
  39. package/dist/components/date-field/index.d.ts +1 -1
  40. package/dist/components/date-field/index.js +2 -2
  41. package/dist/components/date-picker/index.d.ts +2 -2
  42. package/dist/components/date-picker/index.js +5 -5
  43. package/dist/components/date-range-picker/index.d.ts +2 -2
  44. package/dist/components/date-range-picker/index.js +3 -3
  45. package/dist/components/dialog/index.js +4 -4
  46. package/dist/components/disclosure/index.js +3 -3
  47. package/dist/components/disclosure-group/index.js +3 -3
  48. package/dist/components/drop-zone/index.js +2 -2
  49. package/dist/components/fab/index.d.ts +1 -1
  50. package/dist/components/fab/index.js +1 -1
  51. package/dist/components/fab-menu/index.d.ts +2 -2
  52. package/dist/components/fab-menu/index.js +3 -3
  53. package/dist/components/feed/index.js +1 -1
  54. package/dist/components/form/index.js +2 -2
  55. package/dist/components/icon-button/index.d.ts +1 -1
  56. package/dist/components/icon-button/index.js +3 -3
  57. package/dist/components/keycap/index.js +2 -2
  58. package/dist/components/link/index.js +2 -2
  59. package/dist/components/list/index.js +3 -3
  60. package/dist/components/list-box/index.js +3 -3
  61. package/dist/components/list-detail/index.d.ts +1 -1
  62. package/dist/components/list-detail/index.js +1 -1
  63. package/dist/components/list-item/index.js +1 -1
  64. package/dist/components/loading-indicator/index.js +2 -2
  65. package/dist/components/menu/index.d.ts +2 -2
  66. package/dist/components/menu/index.js +3 -3
  67. package/dist/components/meter/index.d.ts +1 -1
  68. package/dist/components/meter/index.js +2 -2
  69. package/dist/components/navigation-bar/index.d.ts +1 -1
  70. package/dist/components/navigation-bar/index.js +2 -2
  71. package/dist/components/navigation-rail/index.d.ts +1 -1
  72. package/dist/components/navigation-rail/index.js +2 -2
  73. package/dist/components/navigation-tree/index.js +2 -2
  74. package/dist/components/number-field/index.d.ts +1 -1
  75. package/dist/components/number-field/index.js +2 -2
  76. package/dist/components/popover/index.d.ts +1 -1
  77. package/dist/components/popover/index.js +4 -4
  78. package/dist/components/product-icon/index.d.ts +1 -1
  79. package/dist/components/product-icon/index.js +1 -1
  80. package/dist/components/progress-indicator/index.d.ts +1 -1
  81. package/dist/components/progress-indicator/index.js +2 -2
  82. package/dist/components/radio-group/index.js +2 -2
  83. package/dist/components/range-calendar/index.js +3 -3
  84. package/dist/components/search-field/index.js +2 -2
  85. package/dist/components/search-view/index.d.ts +1 -1
  86. package/dist/components/search-view/index.js +2 -2
  87. package/dist/components/segmented-button/index.d.ts +1 -1
  88. package/dist/components/segmented-button/index.js +3 -3
  89. package/dist/components/select/index.d.ts +1 -1
  90. package/dist/components/select/index.js +3 -3
  91. package/dist/components/separator/index.js +3 -3
  92. package/dist/components/sheet/index.js +3 -3
  93. package/dist/components/slider/index.js +2 -2
  94. package/dist/components/snackbar/index.js +3 -3
  95. package/dist/components/split-button/index.d.ts +1 -1
  96. package/dist/components/split-button/index.js +3 -3
  97. package/dist/components/stack/index.js +2 -2
  98. package/dist/components/supporting-pane/index.d.ts +1 -1
  99. package/dist/components/supporting-pane/index.js +1 -1
  100. package/dist/components/switch/index.d.ts +1 -1
  101. package/dist/components/switch/index.js +3 -3
  102. package/dist/components/table/index.js +3 -3
  103. package/dist/components/tabs/index.js +3 -3
  104. package/dist/components/tag/index.js +1 -1
  105. package/dist/components/text/index.js +1 -1
  106. package/dist/components/text-area/index.d.ts +1 -1
  107. package/dist/components/text-area/index.js +2 -2
  108. package/dist/components/text-field/index.d.ts +1 -1
  109. package/dist/components/text-field/index.js +2 -2
  110. package/dist/components/time-field/index.d.ts +1 -1
  111. package/dist/components/time-field/index.js +2 -2
  112. package/dist/components/time-picker/index.d.ts +1 -1
  113. package/dist/components/time-picker/index.js +4 -4
  114. package/dist/components/token-field/index.d.ts +1 -1
  115. package/dist/components/token-field/index.js +3 -3
  116. package/dist/components/toolbar/index.js +3 -3
  117. package/dist/components/tooltip/index.d.ts +1 -1
  118. package/dist/components/tooltip/index.js +2 -2
  119. package/dist/components/tree/index.js +3 -3
  120. package/dist/control/index.js +2 -2
  121. package/dist/drag/hooks.js +2 -2
  122. package/dist/drag/index.js +2 -2
  123. package/dist/field/index.js +3 -3
  124. package/dist/glyphs/index.js +1 -1
  125. package/dist/hooks/useClippedTitle.js +1 -1
  126. package/dist/hooks/useEnlargedText.js +1 -1
  127. package/dist/hooks/useRipple.js +2 -2
  128. package/dist/i18n/index.js +2 -2
  129. package/dist/index.js +1 -1
  130. package/dist/indicator/index.js +2 -2
  131. package/dist/mark/index.js +2 -2
  132. package/dist/navigation/index.js +3 -3
  133. package/dist/overlay/index.js +1 -1
  134. package/dist/render/useRender.js +1 -1
  135. package/dist/row/index.js +2 -2
  136. package/dist/segments/index.js +1 -1
  137. package/dist/segments/literal.js +3 -3
  138. package/dist/theme-scope.js +4 -4
  139. package/package.json +3 -3
@@ -1,8 +1,8 @@
1
+ import { c } from "react/compiler-runtime";
1
2
  import { props } from "../node_modules/@stylexjs/stylex/lib/es/stylex.js";
3
+ import { useEffect, useRef, useState } from "react";
2
4
  import { rippleStyles as styles } from "../styles/ripple.js";
3
5
  import { motionDurationMs, motionEasing, spacingPx } from "../tokens/values.js";
4
- import { c } from "react/compiler-runtime";
5
- import { useEffect, useRef, useState } from "react";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  // src/hooks/useRipple.tsx
8
8
  /** How far the ripple grows past the host's corners. `spacing.sm`. */
@@ -1,7 +1,7 @@
1
- import { MESSAGES } from "./messages.js";
2
1
  import { c } from "react/compiler-runtime";
3
- import { useLocale } from "react-aria-components";
4
2
  import { LocalizedStringDictionary, LocalizedStringFormatter } from "@internationalized/string";
3
+ import { useLocale } from "react-aria-components";
4
+ import { MESSAGES } from "./messages.js";
5
5
  // src/i18n/index.ts
6
6
  const dictionary = new LocalizedStringDictionary(MESSAGES);
7
7
  const cache = /* @__PURE__ */ new Map();
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import "./styles.css";
1
2
  import { colorScheme, themeScope } from "./color-scheme.js";
2
3
  import { useAppBarScroll } from "./hooks/useAppBarScroll.js";
3
4
  import Text from "./components/text/index.js";
@@ -84,5 +85,4 @@ import { collectionSizes } from "./layout.js";
84
85
  import { useDragAndDrop } from "./drag/hooks.js";
85
86
  import { Collection, DIRECTORY_DRAG_TYPE, Focusable, GridLayout, I18nProvider, ListLayout, Pressable, RouterProvider, SharedElement, SharedElementTransition, TableLayout, TokenFieldValue, Virtualizer, VisuallyHidden, WaterfallLayout, getColorChannels, isDirectoryDropItem, isFileDropItem, isTextDropItem, parseColor, useAsyncList, useDrag, useDrop, useFilter, useListData, useLocale, useTreeData } from "./react-aria.js";
86
87
  import { ThemeScope } from "./theme-scope.js";
87
- import "./styles.css";
88
88
  export { AppBar, Autocomplete, Avatar, Badge, Breadcrumbs, BreadcrumbsItem, Button, ButtonGroup, Calendar, Card, Carousel, CarouselItem, Checkbox, CheckboxGroup, Chip, ChipGroup, ChipGroupChip, Code, Collection, ColorArea, ColorField, ColorPicker, ColorSlider, ColorSwatch, ColorSwatchPicker, ColorSwatchPickerItem, ColorWheel, ComboBox, Container, CopyField, Currency, DIRECTORY_DRAG_TYPE, DateField, DatePicker, DateRangePicker, Dialog, DialogBody, DialogContent, DialogFooter, DialogHeader, DialogTitle, Disclosure, DisclosureGroup, DisclosureHeader, DisclosurePanel, DropZone, Fab, FabMenu, FabMenuItem, Feed, FileTrigger, Focusable, Form, GridLayout, I18nProvider, IconButton, Keycap, Link, List, ListBox, ListBoxItem, ListBoxLoadMore, ListBoxSection, ListDetail, ListItem, ListLayout, ListLoadMore, ListRow, ListSection, LoadingIndicator, Menu, MenuContent, MenuItem, MenuLoadMore, MenuSection, MenuSeparator, MenuSubmenu, Meter, NavigationBar, NavigationBarItem, NavigationRail, NavigationRailItem, NavigationTree, NavigationTreeItem, NavigationTreeSection, NumberField, Popover, PopoverContent, PopoverDescription, PopoverTitle, Pressable, ProductIcon, ProgressIndicator, Radio, RadioGroup, RangeCalendar, RouterProvider, SearchField, SearchView, SearchViewContent, SegmentedButton, SegmentedButtonSegment, Select, Separator, SharedElement, SharedElementTransition, Sheet, SheetBody, SheetContent, SheetFooter, SheetHandle, SheetHeader, SheetTitle, Slider, Snackbar, SplitButton, SplitButtonAction, SplitButtonMenu, Stack, SupportingPane, Switch, Table, TableBody, TableCell, TableColumn, TableFooter, TableHeader, TableLayout, TableLoadMore, TableRow, Tabs, TabsList, TabsPanel, TabsPanels, TabsTab, Tag, Text, TextArea, TextField, ThemeScope, TimeField, TimePicker, TokenField, TokenFieldValue, Toolbar, Tooltip, Tree, TreeItem, TreeLoadMore, TreeSection, Virtualizer, VisuallyHidden, WaterfallLayout, collectionSizes, colorScheme, getColorChannels, isDirectoryDropItem, isFileDropItem, isTextDropItem, parseColor, themeScope, useAppBarScroll, useAsyncList, useDrag, useDragAndDrop, useDrop, useFilter, useListData, useLocale, useTreeData };
@@ -1,9 +1,9 @@
1
+ import { c } from "react/compiler-runtime";
1
2
  import { props } from "../node_modules/@stylexjs/stylex/lib/es/stylex.js";
3
+ import { Label } from "react-aria-components";
2
4
  import { hasContent } from "../render/content.js";
3
5
  import { indicatorStyles } from "./styles.js";
4
- import { c } from "react/compiler-runtime";
5
6
  import { jsx, jsxs } from "react/jsx-runtime";
6
- import { Label } from "react-aria-components";
7
7
  // src/indicator/index.tsx
8
8
  const ACTIVE_TONES = {
9
9
  inherit: indicatorStyles.inheritActive,
@@ -1,13 +1,13 @@
1
+ import { c } from "react/compiler-runtime";
1
2
  import { props } from "../node_modules/@stylexjs/stylex/lib/es/stylex.js";
3
+ import { useLocale } from "react-aria-components";
2
4
  import { PersonGlyph } from "../glyphs/index.js";
3
5
  import { useImageLoadingStatus } from "../hooks/useImageLoadingStatus.js";
4
6
  import { useRender } from "../render/useRender.js";
5
7
  import { mergeStyles } from "../styles/merge.js";
6
8
  import { initialOfThing, initialsOfPerson } from "./initials.js";
7
9
  import { markStyles } from "./styles.js";
8
- import { c } from "react/compiler-runtime";
9
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
- import { useLocale } from "react-aria-components";
11
11
  // src/mark/index.tsx
12
12
  const KINDS = {
13
13
  person: {
@@ -1,4 +1,7 @@
1
+ import { c } from "react/compiler-runtime";
1
2
  import { props } from "../node_modules/@stylexjs/stylex/lib/es/stylex.js";
3
+ import { useContext, useId } from "react";
4
+ import { Link } from "react-aria-components";
2
5
  import { BadgeMarkContext } from "../badge/index.js";
3
6
  import Badge from "../components/badge/index.js";
4
7
  import { useClippedTitle } from "../hooks/useClippedTitle.js";
@@ -8,10 +11,7 @@ import { focus } from "../styles/focus.js";
8
11
  import { mergeStatefulStyles } from "../styles/merge.js";
9
12
  import { NavigationContext } from "./context.js";
10
13
  import { barItemStyles, collapsedItemStyles, crampedBarItemStyles, expandedItemStyles, navigationItemStyles, navigationListStyles } from "./styles.js";
11
- import { c } from "react/compiler-runtime";
12
- import { useContext, useId } from "react";
13
14
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
14
- import { Link } from "react-aria-components";
15
15
  // src/navigation/index.tsx
16
16
  const FORMS = {
17
17
  bar: barItemStyles,
@@ -1,6 +1,6 @@
1
1
  import { c } from "react/compiler-runtime";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import { SeparatorContext } from "react-aria-components";
3
+ import { jsx } from "react/jsx-runtime";
4
4
  // src/overlay/index.tsx
5
5
  const NO_SEPARATOR = {};
6
6
  /** Clears, for an overlay's content, the contexts that reach it from outside. */
@@ -1,6 +1,6 @@
1
- import { mergeRefs } from "./ref.js";
2
1
  import { c } from "react/compiler-runtime";
3
2
  import { cloneElement, createElement, isValidElement } from "react";
3
+ import { mergeRefs } from "./ref.js";
4
4
  // src/render/useRender.tsx
5
5
  function isHandler(value) {
6
6
  return typeof value === "function";
package/dist/row/index.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { c } from "react/compiler-runtime";
1
2
  import { props } from "../node_modules/@stylexjs/stylex/lib/es/stylex.js";
3
+ import { useContext } from "react";
2
4
  import { hasContent } from "../render/content.js";
3
5
  import { RowOnValueLineContext } from "./context.js";
4
6
  import { rowStyles, supportingTone } from "./styles.js";
5
- import { c } from "react/compiler-runtime";
6
- import { useContext } from "react";
7
7
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
8
  // src/row/index.tsx
9
9
  /**
@@ -1,8 +1,8 @@
1
1
  import { props } from "../node_modules/@stylexjs/stylex/lib/es/stylex.js";
2
+ import { DateSegment } from "react-aria-components";
2
3
  import { SegmentLiteral } from "./literal.js";
3
4
  import { segmentStyles } from "./styles.js";
4
5
  import { jsx } from "react/jsx-runtime";
5
- import { DateSegment } from "react-aria-components";
6
6
  // src/segments/index.tsx
7
7
  function renderSegment(segment) {
8
8
  if (segment.type === "literal") return /* @__PURE__ */ jsx(SegmentLiteral, { segment });
@@ -1,9 +1,9 @@
1
- import { props } from "../node_modules/@stylexjs/stylex/lib/es/stylex.js";
2
- import { segmentStyles } from "./styles.js";
3
1
  import { c } from "react/compiler-runtime";
2
+ import { props } from "../node_modules/@stylexjs/stylex/lib/es/stylex.js";
4
3
  import { useContext } from "react";
5
- import { jsx } from "react/jsx-runtime";
6
4
  import { DateFieldStateContext, DateSegment } from "react-aria-components";
5
+ import { segmentStyles } from "./styles.js";
6
+ import { jsx } from "react/jsx-runtime";
7
7
  // src/segments/literal.tsx
8
8
  const UNSEEN = /^[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]*$/u;
9
9
  const HANGING = /^[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]*\p{P}+\s+$/u;
@@ -1,14 +1,14 @@
1
1
  "use client";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { props } from "./node_modules/@stylexjs/stylex/lib/es/stylex.js";
4
+ import { useState } from "react";
5
+ import { UNSAFE_PortalProvider } from "react-aria/PortalProvider";
6
+ import { useIsSSR } from "react-aria/SSRProvider";
3
7
  import { useRender } from "./render/useRender.js";
4
8
  import { mergeStyles } from "./styles/merge.js";
5
9
  import { pinnedScheme } from "./styles/scheme.js";
6
10
  import { colorDefaultsDarkTheme, colorDefaultsLightTheme, tokenScope } from "./tokens/design.tokens.stylex.js";
7
- import { c } from "react/compiler-runtime";
8
- import { useState } from "react";
9
11
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
10
- import { UNSAFE_PortalProvider } from "react-aria/PortalProvider";
11
- import { useIsSSR } from "react-aria/SSRProvider";
12
12
  // src/theme-scope.tsx
13
13
  const styles = { root: {
14
14
  kB7OPa: "x9f619",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanso-labs/kanso-ui",
3
- "version": "0.48.0",
3
+ "version": "0.48.1",
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.23",
90
- "@kanso-labs/unplugin-style-dictionary": "0.10.71",
90
+ "@kanso-labs/unplugin-style-dictionary": "0.10.72",
91
91
  "@microsoft/api-extractor": "7.60.1",
92
92
  "@rolldown/plugin-babel": "0.3.1",
93
93
  "@storybook/addon-a11y": "10.6.7",
@@ -98,7 +98,7 @@
98
98
  "@stylexjs/stylex": "0.19.2",
99
99
  "@stylexjs/unplugin": "0.19.2",
100
100
  "@testing-library/dom": "10.4.2",
101
- "@testing-library/jest-dom": "7.0.1",
101
+ "@testing-library/jest-dom": "8.0.0",
102
102
  "@testing-library/react": "16.3.3",
103
103
  "@types/node": "26.6.6",
104
104
  "@types/react": "19.3.0",