@kanso-labs/kanso-ui 0.22.0 → 0.23.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/README.md +1 -1
- package/dist/components/color-wheel/index.d.ts +44 -0
- package/dist/components/color-wheel/index.js +64 -0
- package/dist/components/color-wheel/index.js.map +1 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/styles.css +10 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ sourced from a single
|
|
|
6
6
|
[W3C Design Tokens (DTCG)](https://design-tokens.github.io/community-group/format/)
|
|
7
7
|
file and compiled via [Style Dictionary](https://styledictionary.com).
|
|
8
8
|
|
|
9
|
-
Every component is documented in Storybook, published from
|
|
9
|
+
Every component is documented in Storybook, published from the latest release at
|
|
10
10
|
**[kanso-ui.kansolabs.org](https://kanso-ui.kansolabs.org/)**.
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ColorWheelProps } from "react-aria-components";
|
|
2
|
+
//#region src/components/color-wheel/index.d.ts
|
|
3
|
+
type ColorWheelProps$1 = Omit<ColorWheelProps, 'children' | 'className' | 'innerRadius' | 'outerRadius' | 'style'> & {
|
|
4
|
+
/** A function may compute the class from the wheel's render state. */
|
|
5
|
+
className?: string;
|
|
6
|
+
/**
|
|
7
|
+
* How far the ring reaches from the centre, in pixels. The wheel is twice
|
|
8
|
+
* this across.
|
|
9
|
+
* @default 100
|
|
10
|
+
*/
|
|
11
|
+
outerRadius?: number;
|
|
12
|
+
/** Lands on the wheel, as `className` does. */
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
/**
|
|
15
|
+
* How wide the band is, in pixels. The inner radius is this in from
|
|
16
|
+
* `outerRadius`, so the two cannot disagree.
|
|
17
|
+
* @default 16
|
|
18
|
+
*/
|
|
19
|
+
thickness?: number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Hue as a ring, with a handle on it. The value is React Aria's: pass
|
|
23
|
+
* `value` with `onChange` to control it, or `defaultValue`, as a CSS colour
|
|
24
|
+
* string or a `Color` from `parseColor`, which this package re-exports.
|
|
25
|
+
*
|
|
26
|
+
* ```tsx
|
|
27
|
+
* <ColorWheel defaultValue="hsl(200, 100%, 50%)" />
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* A wheel slides hue and nothing else, so unlike `ColorSlider` and
|
|
31
|
+
* `ColorArea` it names no channel and there is no space for one to be
|
|
32
|
+
* missing from — a hex value works here.
|
|
33
|
+
*
|
|
34
|
+
* The middle is genuinely empty rather than filled, so a `ColorArea` or a
|
|
35
|
+
* `ColorSwatch` can sit inside one. React Aria names the handle "Hue" and
|
|
36
|
+
* announces the value; pass `aria-label` to say something else.
|
|
37
|
+
*
|
|
38
|
+
* The call site's `className` and `style` land on the wheel, which is the
|
|
39
|
+
* element a layout positions. Its size comes from `outerRadius`.
|
|
40
|
+
*/
|
|
41
|
+
declare function ColorWheel$1({ className, isDisabled, outerRadius, style, thickness, ...props }: ColorWheelProps$1): import("react").JSX.Element;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { type ColorWheelProps$1 as ColorWheelProps, ColorWheel$1 as default };
|
|
44
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { props } from "../../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
2
|
+
import { mergeStyles } from "../../styles/merge.js";
|
|
3
|
+
import { thumbClassName } from "../../styles/color.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { ColorThumb, ColorWheel, ColorWheelTrack } from "react-aria-components";
|
|
6
|
+
//#region src/components/color-wheel/index.tsx
|
|
7
|
+
const DEFAULT_OUTER_RADIUS = 100;
|
|
8
|
+
const DEFAULT_THICKNESS = 16;
|
|
9
|
+
const _temp = {
|
|
10
|
+
kX1K2I: "xwjwp01",
|
|
11
|
+
"$$css": true
|
|
12
|
+
};
|
|
13
|
+
const styles = {
|
|
14
|
+
track: {
|
|
15
|
+
kkrTdU: "x1ypdohk",
|
|
16
|
+
$$css: true
|
|
17
|
+
},
|
|
18
|
+
trackDisabled: {
|
|
19
|
+
kkrTdU: "x1h6gzvc",
|
|
20
|
+
$$css: true
|
|
21
|
+
},
|
|
22
|
+
trackRing: (inner) => [_temp, { "--x-maskImage": `radial-gradient(circle at center, transparent ${Math.max(0, inner - .5)}px, #000 ${inner + .5}px)` != null ? `radial-gradient(circle at center, transparent ${Math.max(0, inner - .5)}px, #000 ${inner + .5}px)` : void 0 }]
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Hue as a ring, with a handle on it. The value is React Aria's: pass
|
|
26
|
+
* `value` with `onChange` to control it, or `defaultValue`, as a CSS colour
|
|
27
|
+
* string or a `Color` from `parseColor`, which this package re-exports.
|
|
28
|
+
*
|
|
29
|
+
* ```tsx
|
|
30
|
+
* <ColorWheel defaultValue="hsl(200, 100%, 50%)" />
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* A wheel slides hue and nothing else, so unlike `ColorSlider` and
|
|
34
|
+
* `ColorArea` it names no channel and there is no space for one to be
|
|
35
|
+
* missing from — a hex value works here.
|
|
36
|
+
*
|
|
37
|
+
* The middle is genuinely empty rather than filled, so a `ColorArea` or a
|
|
38
|
+
* `ColorSwatch` can sit inside one. React Aria names the handle "Hue" and
|
|
39
|
+
* announces the value; pass `aria-label` to say something else.
|
|
40
|
+
*
|
|
41
|
+
* The call site's `className` and `style` land on the wheel, which is the
|
|
42
|
+
* element a layout positions. Its size comes from `outerRadius`.
|
|
43
|
+
*/
|
|
44
|
+
function ColorWheel$1({ className, isDisabled = false, outerRadius = DEFAULT_OUTER_RADIUS, style, thickness = DEFAULT_THICKNESS, ...props$1 }) {
|
|
45
|
+
const innerRadius = Math.max(0, outerRadius - thickness);
|
|
46
|
+
return /* @__PURE__ */ jsxs(ColorWheel, {
|
|
47
|
+
innerRadius,
|
|
48
|
+
isDisabled,
|
|
49
|
+
outerRadius,
|
|
50
|
+
...props$1,
|
|
51
|
+
...mergeStyles({
|
|
52
|
+
0: { className: "x9f619 x1rg5ohu x14ju556" },
|
|
53
|
+
1: { className: "x9f619 x1rg5ohu x14ju556 x1ppv7y9" }
|
|
54
|
+
}[!!isDisabled << 0], {
|
|
55
|
+
className,
|
|
56
|
+
style
|
|
57
|
+
}),
|
|
58
|
+
children: [/* @__PURE__ */ jsx(ColorWheelTrack, { ...props(styles.track, styles.trackRing(innerRadius), isDisabled && styles.trackDisabled) }), /* @__PURE__ */ jsx(ColorThumb, { className: thumbClassName })]
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
export { ColorWheel$1 as default };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/color-wheel/index.tsx"],"sourcesContent":["import type { ColorWheelProps as RACColorWheelProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { ColorThumb as RACColorThumb, ColorWheel as RACColorWheel, ColorWheelTrack as RACColorWheelTrack } from 'react-aria-components';\nimport { thumbClassName } from '../../styles/color';\nimport { mergeStyles } from '../../styles/merge';\nimport '../../tokens/design.tokens.stylex';\nimport { stateLayerOpacity } from '../../tokens/design.tokens.stylex';\n\n// Hue as a ring. React Aria paints the conic gradient on the track's own\n// inline `background` and sizes it from `outerRadius`, so what is here is\n// the hole in the middle and the handle `ColorSlider` already draws, from\n// `src/styles/color.ts`.\n//\n// The design carries no page for this. Three things follow, each a choice\n// rather than a reading.\n//\n// **The ring's thickness is the sliders page's 16dp track.** A hue wheel and\n// a hue slider are the same control in two shapes, so the band a reader\n// drags along is the same width in both.\n//\n// **The thickness is a prop and the inner radius is not.** React Aria takes\n// both radii and would accept an inner one larger than the outer, which\n// draws nothing at all; deriving it is what stops the two disagreeing.\n//\n// **The hole is cut with a mask, not drawn with a disc on top.** A disc in\n// the wheel's own surface colour would be opaque, so anything the wheel is\n// placed over — a card, a photograph, another control — would be hidden by\n// a circle nothing explains. The mask leaves the middle genuinely empty,\n// which is also what lets a swatch or an area sit inside one.\n\nconst DEFAULT_OUTER_RADIUS = 100;\n// The sliders page's track, which is what a hue slider draws.\nconst DEFAULT_THICKNESS = 16;\nconst _temp = {\n kX1K2I: \"xwjwp01\",\n \"$$css\": true\n};\nconst styles = {\n track: {\n kkrTdU: \"x1ypdohk\",\n $$css: true\n },\n trackDisabled: {\n kkrTdU: \"x1h6gzvc\",\n $$css: true\n },\n trackRing: (inner: number) => [_temp, {\n \"--x-maskImage\": `radial-gradient(circle at center, transparent ${Math.max(0, inner - 0.5)}px, #000 ${inner + 0.5}px)` != null ? `radial-gradient(circle at center, transparent ${Math.max(0, inner - 0.5)}px, #000 ${inner + 0.5}px)` : undefined\n }]\n};\ntype ColorWheelProps = Omit<RACColorWheelProps, 'children' | 'className' | 'innerRadius' | 'outerRadius' | 'style'> & {\n /** A function may compute the class from the wheel's render state. */\n className?: string;\n /**\n * How far the ring reaches from the centre, in pixels. The wheel is twice\n * this across.\n * @default 100\n */\n outerRadius?: number;\n /** Lands on the wheel, as `className` does. */\n style?: React.CSSProperties;\n /**\n * How wide the band is, in pixels. The inner radius is this in from\n * `outerRadius`, so the two cannot disagree.\n * @default 16\n */\n thickness?: number;\n};\n\n/**\n * Hue as a ring, with a handle on it. The value is React Aria's: pass\n * `value` with `onChange` to control it, or `defaultValue`, as a CSS colour\n * string or a `Color` from `parseColor`, which this package re-exports.\n *\n * ```tsx\n * <ColorWheel defaultValue=\"hsl(200, 100%, 50%)\" />\n * ```\n *\n * A wheel slides hue and nothing else, so unlike `ColorSlider` and\n * `ColorArea` it names no channel and there is no space for one to be\n * missing from — a hex value works here.\n *\n * The middle is genuinely empty rather than filled, so a `ColorArea` or a\n * `ColorSwatch` can sit inside one. React Aria names the handle \"Hue\" and\n * announces the value; pass `aria-label` to say something else.\n *\n * The call site's `className` and `style` land on the wheel, which is the\n * element a layout positions. Its size comes from `outerRadius`.\n */\nfunction ColorWheel({\n className,\n isDisabled = false,\n outerRadius = DEFAULT_OUTER_RADIUS,\n style,\n thickness = DEFAULT_THICKNESS,\n ...props\n}: ColorWheelProps) {\n const innerRadius = Math.max(0, outerRadius - thickness);\n return <RACColorWheel innerRadius={innerRadius} isDisabled={isDisabled} outerRadius={outerRadius} {...props} {...mergeStyles({\n 0: {\n className: \"x9f619 x1rg5ohu x14ju556\"\n },\n 1: {\n className: \"x9f619 x1rg5ohu x14ju556 x1ppv7y9\"\n }\n }[!!isDisabled << 0], {\n className,\n style\n })}>\n <RACColorWheelTrack {...stylex.props(styles.track, styles.trackRing(innerRadius), isDisabled && styles.trackDisabled)} />\n <RACColorThumb className={thumbClassName} />\n </RACColorWheel>;\n}\nexport type { ColorWheelProps };\nexport default ColorWheel;"],"mappings":";;;;;;AA8BA,MAAM,uBAAuB;AAE7B,MAAM,oBAAoB;AAC1B,MAAM,QAAQ;CACZ,QAAQ;CACR,SAAS;AACX;AACA,MAAM,SAAS;CACb,OAAO;EACL,QAAQ;EACR,OAAO;CACT;CACA,eAAe;EACb,QAAQ;EACR,OAAO;CACT;CACA,YAAY,UAAkB,CAAC,OAAO,EACpC,iBAAiB,iDAAiD,KAAK,IAAI,GAAG,QAAQ,EAAG,EAAC,WAAY,QAAQ,GAAG,QAAS,OAAO,iDAAiD,KAAK,IAAI,GAAG,QAAQ,EAAG,EAAC,WAAY,QAAQ,GAAG,OAAQ,KAAA,EAC3O,CAAC;AACH;;;;;;;;;;;;;;;;;;;;;AAwCA,SAAS,aAAW,EAClB,WACA,aAAa,OACb,cAAc,sBACd,OACA,YAAY,mBACZ,GAAG,WACe;CAClB,MAAM,cAAc,KAAK,IAAI,GAAG,cAAc,SAAS;CACvD,OAAO,qBAAC,YAAD;EAA4B;EAAyB;EAAyB;EAAa,GAAI;EAAO,GAAI,YAAY;GAC3H,GAAG,EACD,WAAW,2BACb;GACA,GAAG,EACD,WAAW,oCACb;EACF,EAAE,CAAC,CAAC,cAAc,IAAI;GACpB;GACA;EACF,CAAC;EAVM,UAAA,CAWH,oBAAC,iBAAD,EAAoB,GAAI,MAAa,OAAO,OAAO,OAAO,UAAU,WAAW,GAAG,cAAc,OAAO,aAAa,EAAE,CAAA,GACtH,oBAAC,YAAD,EAAe,WAAW,eAAe,CAAA,CAC5B;;AACnB"}
|
|
@@ -14,6 +14,7 @@ import ColorArea, { ColorAreaProps } from "./color-area/index.js";
|
|
|
14
14
|
import ColorSlider, { ColorSliderProps } from "./color-slider/index.js";
|
|
15
15
|
import ColorSwatch, { ColorSwatchProps } from "./color-swatch/index.js";
|
|
16
16
|
import ColorSwatchPicker, { ColorSwatchPickerProps } from "./color-swatch-picker/index.js";
|
|
17
|
+
import ColorWheel, { ColorWheelProps } from "./color-wheel/index.js";
|
|
17
18
|
import ComboBox, { ComboBoxProps } from "./combo-box/index.js";
|
|
18
19
|
import Container, { ContainerProps } from "./container/index.js";
|
|
19
20
|
import CopyField, { CopyFieldProps } from "./copy-field/index.js";
|
|
@@ -64,4 +65,4 @@ import TokenField, { TokenFieldProps } from "./token-field/index.js";
|
|
|
64
65
|
import Toolbar, { ToolbarProps } from "./toolbar/index.js";
|
|
65
66
|
import Tooltip, { TooltipProps } from "./tooltip/index.js";
|
|
66
67
|
import Tree, { TreeHeaderProps, TreeItemProps, TreeLoadMoreProps, TreeProps, TreeSectionProps } from "./tree/index.js";
|
|
67
|
-
export { AppBar, type AppBarProps, Autocomplete, type AutocompleteProps, Avatar, type AvatarProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, Calendar, type CalendarProps, Card, type CardProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, Code, type CodeProps, ColorArea, type ColorAreaProps, ColorSlider, type ColorSliderProps, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, type ColorSwatchProps, ComboBox, type ComboBoxProps, Container, type ContainerProps, CopyField, type CopyFieldProps, Currency, type CurrencyProps, DateField, type DateFieldProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, type DialogProps, Disclosure, DisclosureGroup, type DisclosureGroupProps, type DisclosureProps, DropZone, type DropZoneProps, Feed, type FeedProps, FileTrigger, type FileTriggerProps, Form, type FormProps, IconButton, type IconButtonProps, Keycap, type KeycapProps, Link, type LinkProps, List, ListBox, type ListBoxProps, ListDetail, type ListDetailProps, ListItem, type ListItemProps, type ListProps, Menu, type MenuProps, Meter, type MeterProps, NavigationTree, type NavigationTreeHeaderProps, type NavigationTreeItemProps, type NavigationTreeProps, type NavigationTreeSectionProps, NumberField, type NumberFieldProps, Popover, type PopoverProps, ProductIcon, type ProductIconProps, ProgressIndicator, type ProgressIndicatorProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RangeCalendar, type RangeCalendarProps, SearchField, type SearchFieldProps, SegmentedButton, type SegmentedButtonProps, type SegmentedButtonSegmentProps, Select, type SelectProps, Separator, type SeparatorProps, Sheet, type SheetProps, Slider, type SliderProps, Snackbar, type SnackbarProps, Stack, type StackAlign, type StackGap, type StackJustify, type StackProps, SupportingPane, type SupportingPaneProps, Switch, type SwitchProps, Table, type TableBodyProps, type TableCellProps, type TableColumnProps, type TableFooterProps, type TableHeaderProps, type TableProps, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, TextArea, type TextAreaProps, TextField, type TextFieldProps, type TextProps, TimeField, type TimeFieldProps, TokenField, type TokenFieldProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Tree, type TreeHeaderProps, type TreeItemProps, type TreeLoadMoreProps, type TreeProps, type TreeSectionProps };
|
|
68
|
+
export { AppBar, type AppBarProps, Autocomplete, type AutocompleteProps, Avatar, type AvatarProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, Calendar, type CalendarProps, Card, type CardProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, Code, type CodeProps, ColorArea, type ColorAreaProps, ColorSlider, type ColorSliderProps, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, type ColorSwatchProps, ColorWheel, type ColorWheelProps, ComboBox, type ComboBoxProps, Container, type ContainerProps, CopyField, type CopyFieldProps, Currency, type CurrencyProps, DateField, type DateFieldProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, type DialogProps, Disclosure, DisclosureGroup, type DisclosureGroupProps, type DisclosureProps, DropZone, type DropZoneProps, Feed, type FeedProps, FileTrigger, type FileTriggerProps, Form, type FormProps, IconButton, type IconButtonProps, Keycap, type KeycapProps, Link, type LinkProps, List, ListBox, type ListBoxProps, ListDetail, type ListDetailProps, ListItem, type ListItemProps, type ListProps, Menu, type MenuProps, Meter, type MeterProps, NavigationTree, type NavigationTreeHeaderProps, type NavigationTreeItemProps, type NavigationTreeProps, type NavigationTreeSectionProps, NumberField, type NumberFieldProps, Popover, type PopoverProps, ProductIcon, type ProductIconProps, ProgressIndicator, type ProgressIndicatorProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RangeCalendar, type RangeCalendarProps, SearchField, type SearchFieldProps, SegmentedButton, type SegmentedButtonProps, type SegmentedButtonSegmentProps, Select, type SelectProps, Separator, type SeparatorProps, Sheet, type SheetProps, Slider, type SliderProps, Snackbar, type SnackbarProps, Stack, type StackAlign, type StackGap, type StackJustify, type StackProps, SupportingPane, type SupportingPaneProps, Switch, type SwitchProps, Table, type TableBodyProps, type TableCellProps, type TableColumnProps, type TableFooterProps, type TableHeaderProps, type TableProps, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, TextArea, type TextAreaProps, TextField, type TextFieldProps, type TextProps, TimeField, type TimeFieldProps, TokenField, type TokenFieldProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Tree, type TreeHeaderProps, type TreeItemProps, type TreeLoadMoreProps, type TreeProps, type TreeSectionProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import ColorArea, { ColorAreaProps } from "./components/color-area/index.js";
|
|
|
14
14
|
import ColorSlider, { ColorSliderProps } from "./components/color-slider/index.js";
|
|
15
15
|
import ColorSwatch, { ColorSwatchProps } from "./components/color-swatch/index.js";
|
|
16
16
|
import ColorSwatchPicker, { ColorSwatchPickerProps } from "./components/color-swatch-picker/index.js";
|
|
17
|
+
import ColorWheel, { ColorWheelProps } from "./components/color-wheel/index.js";
|
|
17
18
|
import ComboBox, { ComboBoxProps } from "./components/combo-box/index.js";
|
|
18
19
|
import Container, { ContainerProps } from "./components/container/index.js";
|
|
19
20
|
import CopyField, { CopyFieldProps } from "./components/copy-field/index.js";
|
|
@@ -69,4 +70,4 @@ import { collectionSizes } from "./layout.js";
|
|
|
69
70
|
import { useDragAndDrop } from "./drag/hooks.js";
|
|
70
71
|
import { Collection, DIRECTORY_DRAG_TYPE, Focusable, GridLayout, I18nProvider, Key, ListLayout, PressEvent, Pressable, RouterProvider, Selection, SortDescriptor, TableLayout, TokenFieldValue, Virtualizer, VisuallyHidden, WaterfallLayout, getColorChannels, isDirectoryDropItem, isFileDropItem, isTextDropItem, parseColor, useAsyncList, useDrag, useDrop, useFilter, useListData, useLocale, useTreeData } from "./react-aria.js";
|
|
71
72
|
import "./styles.css";
|
|
72
|
-
export { AppBar, type AppBarProps, Autocomplete, type AutocompleteProps, Avatar, type AvatarProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, Calendar, type CalendarProps, Card, type CardProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, Code, type CodeProps, Collection, ColorArea, type ColorAreaProps, ColorSlider, type ColorSliderProps, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, type ColorSwatchProps, ComboBox, type ComboBoxProps, Container, type ContainerProps, CopyField, type CopyFieldProps, Currency, type CurrencyProps, DIRECTORY_DRAG_TYPE, DateField, type DateFieldProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, type DialogProps, Disclosure, DisclosureGroup, type DisclosureGroupProps, type DisclosureProps, DropZone, type DropZoneProps, Feed, type FeedProps, FileTrigger, type FileTriggerProps, Focusable, Form, type FormProps, GridLayout, I18nProvider, IconButton, type IconButtonProps, type Key, Keycap, type KeycapProps, Link, type LinkProps, List, ListBox, type ListBoxProps, ListDetail, type ListDetailProps, ListItem, type ListItemProps, ListLayout, type ListProps, Menu, type MenuProps, Meter, type MeterProps, NavigationTree, type NavigationTreeHeaderProps, type NavigationTreeItemProps, type NavigationTreeProps, type NavigationTreeSectionProps, NumberField, type NumberFieldProps, Popover, type PopoverProps, type PressEvent, Pressable, ProductIcon, type ProductIconProps, ProgressIndicator, type ProgressIndicatorProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RangeCalendar, type RangeCalendarProps, RouterProvider, SearchField, type SearchFieldProps, SegmentedButton, type SegmentedButtonProps, type SegmentedButtonSegmentProps, Select, type SelectProps, type Selection, Separator, type SeparatorProps, Sheet, type SheetProps, Slider, type SliderProps, Snackbar, type SnackbarProps, type SortDescriptor, Stack, type StackAlign, type StackGap, type StackJustify, type StackProps, SupportingPane, type SupportingPaneProps, Switch, type SwitchProps, Table, type TableBodyProps, type TableCellProps, type TableColumnProps, type TableFooterProps, type TableHeaderProps, TableLayout, type TableProps, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, TextArea, type TextAreaProps, TextField, type TextFieldProps, type TextProps, TimeField, type TimeFieldProps, TokenField, type TokenFieldProps, TokenFieldValue, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Tree, type TreeHeaderProps, type TreeItemProps, type TreeLoadMoreProps, type TreeProps, type TreeSectionProps, Virtualizer, VisuallyHidden, WaterfallLayout, collectionSizes, getColorChannels, isDirectoryDropItem, isFileDropItem, isTextDropItem, parseColor, useAsyncList, useDrag, useDragAndDrop, useDrop, useFilter, useListData, useLocale, useTreeData };
|
|
73
|
+
export { AppBar, type AppBarProps, Autocomplete, type AutocompleteProps, Avatar, type AvatarProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, Calendar, type CalendarProps, Card, type CardProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, Code, type CodeProps, Collection, ColorArea, type ColorAreaProps, ColorSlider, type ColorSliderProps, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, type ColorSwatchProps, ColorWheel, type ColorWheelProps, ComboBox, type ComboBoxProps, Container, type ContainerProps, CopyField, type CopyFieldProps, Currency, type CurrencyProps, DIRECTORY_DRAG_TYPE, DateField, type DateFieldProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, type DialogProps, Disclosure, DisclosureGroup, type DisclosureGroupProps, type DisclosureProps, DropZone, type DropZoneProps, Feed, type FeedProps, FileTrigger, type FileTriggerProps, Focusable, Form, type FormProps, GridLayout, I18nProvider, IconButton, type IconButtonProps, type Key, Keycap, type KeycapProps, Link, type LinkProps, List, ListBox, type ListBoxProps, ListDetail, type ListDetailProps, ListItem, type ListItemProps, ListLayout, type ListProps, Menu, type MenuProps, Meter, type MeterProps, NavigationTree, type NavigationTreeHeaderProps, type NavigationTreeItemProps, type NavigationTreeProps, type NavigationTreeSectionProps, NumberField, type NumberFieldProps, Popover, type PopoverProps, type PressEvent, Pressable, ProductIcon, type ProductIconProps, ProgressIndicator, type ProgressIndicatorProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RangeCalendar, type RangeCalendarProps, RouterProvider, SearchField, type SearchFieldProps, SegmentedButton, type SegmentedButtonProps, type SegmentedButtonSegmentProps, Select, type SelectProps, type Selection, Separator, type SeparatorProps, Sheet, type SheetProps, Slider, type SliderProps, Snackbar, type SnackbarProps, type SortDescriptor, Stack, type StackAlign, type StackGap, type StackJustify, type StackProps, SupportingPane, type SupportingPaneProps, Switch, type SwitchProps, Table, type TableBodyProps, type TableCellProps, type TableColumnProps, type TableFooterProps, type TableHeaderProps, TableLayout, type TableProps, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, TextArea, type TextAreaProps, TextField, type TextFieldProps, type TextProps, TimeField, type TimeFieldProps, TokenField, type TokenFieldProps, TokenFieldValue, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Tree, type TreeHeaderProps, type TreeItemProps, type TreeLoadMoreProps, type TreeProps, type TreeSectionProps, Virtualizer, VisuallyHidden, WaterfallLayout, collectionSizes, getColorChannels, isDirectoryDropItem, isFileDropItem, isTextDropItem, parseColor, useAsyncList, useDrag, useDragAndDrop, useDrop, useFilter, useListData, useLocale, useTreeData };
|
package/dist/index.js
CHANGED
|
@@ -17,6 +17,7 @@ import ColorArea from "./components/color-area/index.js";
|
|
|
17
17
|
import ColorSlider from "./components/color-slider/index.js";
|
|
18
18
|
import ColorSwatch from "./components/color-swatch/index.js";
|
|
19
19
|
import ColorSwatchPicker from "./components/color-swatch-picker/index.js";
|
|
20
|
+
import ColorWheel from "./components/color-wheel/index.js";
|
|
20
21
|
import ListBox from "./components/list-box/index.js";
|
|
21
22
|
import ComboBox from "./components/combo-box/index.js";
|
|
22
23
|
import Container from "./components/container/index.js";
|
|
@@ -68,4 +69,4 @@ import { collectionSizes } from "./layout.js";
|
|
|
68
69
|
import { useDragAndDrop } from "./drag/hooks.js";
|
|
69
70
|
import { Collection, DIRECTORY_DRAG_TYPE, Focusable, GridLayout, I18nProvider, ListLayout, Pressable, RouterProvider, TableLayout, TokenFieldValue, Virtualizer, VisuallyHidden, WaterfallLayout, getColorChannels, isDirectoryDropItem, isFileDropItem, isTextDropItem, parseColor, useAsyncList, useDrag, useDrop, useFilter, useListData, useLocale, useTreeData } from "./react-aria.js";
|
|
70
71
|
import "./styles.css";
|
|
71
|
-
export { AppBar, Autocomplete, Avatar, Breadcrumbs, Button, Calendar, Card, Checkbox, CheckboxGroup, Chip, ChipGroup, Code, Collection, ColorArea, ColorSlider, ColorSwatch, ColorSwatchPicker, ComboBox, Container, CopyField, Currency, DIRECTORY_DRAG_TYPE, DateField, DatePicker, DateRangePicker, Dialog, Disclosure, DisclosureGroup, DropZone, Feed, FileTrigger, Focusable, Form, GridLayout, I18nProvider, IconButton, Keycap, Link, List, ListBox, ListDetail, ListItem, ListLayout, Menu, Meter, NavigationTree, NumberField, Popover, Pressable, ProductIcon, ProgressIndicator, Radio, RadioGroup, RangeCalendar, RouterProvider, SearchField, SegmentedButton, Select, Separator, Sheet, Slider, Snackbar, Stack, SupportingPane, Switch, Table, TableLayout, Tabs, Tag, Text, TextArea, TextField, TimeField, TokenField, TokenFieldValue, Toolbar, Tooltip, Tree, Virtualizer, VisuallyHidden, WaterfallLayout, collectionSizes, getColorChannels, isDirectoryDropItem, isFileDropItem, isTextDropItem, parseColor, useAsyncList, useDrag, useDragAndDrop, useDrop, useFilter, useListData, useLocale, useTreeData };
|
|
72
|
+
export { AppBar, Autocomplete, Avatar, Breadcrumbs, Button, Calendar, Card, Checkbox, CheckboxGroup, Chip, ChipGroup, Code, Collection, ColorArea, ColorSlider, ColorSwatch, ColorSwatchPicker, ColorWheel, ComboBox, Container, CopyField, Currency, DIRECTORY_DRAG_TYPE, DateField, DatePicker, DateRangePicker, Dialog, Disclosure, DisclosureGroup, DropZone, Feed, FileTrigger, Focusable, Form, GridLayout, I18nProvider, IconButton, Keycap, Link, List, ListBox, ListDetail, ListItem, ListLayout, Menu, Meter, NavigationTree, NumberField, Popover, Pressable, ProductIcon, ProgressIndicator, Radio, RadioGroup, RangeCalendar, RouterProvider, SearchField, SegmentedButton, Select, Separator, Sheet, Slider, Snackbar, Stack, SupportingPane, Switch, Table, TableLayout, Tabs, Tag, Text, TextArea, TextField, TimeField, TokenField, TokenFieldValue, Toolbar, Tooltip, Tree, Virtualizer, VisuallyHidden, WaterfallLayout, collectionSizes, getColorChannels, isDirectoryDropItem, isFileDropItem, isTextDropItem, parseColor, useAsyncList, useDrag, useDragAndDrop, useDrop, useFilter, useListData, useLocale, useTreeData };
|
package/dist/styles.css
CHANGED
|
@@ -1531,6 +1531,11 @@
|
|
|
1531
1531
|
margin-inline-start: var(--x3km7fe);
|
|
1532
1532
|
}
|
|
1533
1533
|
|
|
1534
|
+
.xwjwp01 {
|
|
1535
|
+
-webkit-mask-image: var(--x-maskImage);
|
|
1536
|
+
mask-image: var(--x-maskImage);
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1534
1539
|
.x19kjcj4 {
|
|
1535
1540
|
object-fit: contain;
|
|
1536
1541
|
}
|
|
@@ -3066,6 +3071,11 @@
|
|
|
3066
3071
|
inherits: false
|
|
3067
3072
|
}
|
|
3068
3073
|
|
|
3074
|
+
@property --x-maskImage {
|
|
3075
|
+
syntax: "*";
|
|
3076
|
+
inherits: false
|
|
3077
|
+
}
|
|
3078
|
+
|
|
3069
3079
|
@property --x-maxInlineSize {
|
|
3070
3080
|
syntax: "*";
|
|
3071
3081
|
inherits: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanso-labs/kanso-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
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",
|