@knitui/components 0.6.0 → 0.6.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 (82) hide show
  1. package/lib/commonjs/internal/color.js +8 -1
  2. package/lib/commonjs/internal/color.js.map +1 -1
  3. package/lib/module/internal/color.js +8 -1
  4. package/lib/module/internal/color.js.map +1 -1
  5. package/lib/typescript/Accordion/Accordion.d.ts +15 -15
  6. package/lib/typescript/ActionIcon/ActionIcon.d.ts +13 -13
  7. package/lib/typescript/Alert/Alert.d.ts +19 -19
  8. package/lib/typescript/Anchor/Anchor.d.ts +6 -6
  9. package/lib/typescript/AngleSlider/AngleSlider.d.ts +8 -8
  10. package/lib/typescript/Autocomplete/Autocomplete.d.ts +4 -4
  11. package/lib/typescript/Avatar/Avatar.d.ts +38 -38
  12. package/lib/typescript/Badge/Badge.d.ts +20 -20
  13. package/lib/typescript/Blockquote/Blockquote.d.ts +8 -8
  14. package/lib/typescript/Breadcrumbs/Breadcrumbs.d.ts +8 -8
  15. package/lib/typescript/Burger/Burger.d.ts +4 -4
  16. package/lib/typescript/Button/Button.d.ts +13 -13
  17. package/lib/typescript/Chip/Chip.d.ts +15 -15
  18. package/lib/typescript/CloseButton/CloseButton.d.ts +7 -7
  19. package/lib/typescript/Code/Code.d.ts +6 -6
  20. package/lib/typescript/Combobox/Combobox.d.ts +9 -9
  21. package/lib/typescript/Combobox/index.d.ts +7 -7
  22. package/lib/typescript/Container/Container.d.ts +3 -3
  23. package/lib/typescript/Dialog/Dialog.d.ts +6 -6
  24. package/lib/typescript/Drawer/Drawer.d.ts +4 -4
  25. package/lib/typescript/Fieldset/Fieldset.d.ts +11 -11
  26. package/lib/typescript/Highlight/Highlight.d.ts +4 -4
  27. package/lib/typescript/Image/Image.d.ts +25 -25
  28. package/lib/typescript/Image/createImage.d.ts +36 -36
  29. package/lib/typescript/Indicator/Indicator.d.ts +4 -4
  30. package/lib/typescript/Input/Input.d.ts +61 -61
  31. package/lib/typescript/Input/Input.native.d.ts +79 -79
  32. package/lib/typescript/Input/shared.d.ts +65 -65
  33. package/lib/typescript/InputBase/InputBase.d.ts +4 -4
  34. package/lib/typescript/Kbd/Kbd.d.ts +23 -23
  35. package/lib/typescript/KeyboardAvoidingView/KeyboardAvoidingView.d.ts +1 -1
  36. package/lib/typescript/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +1 -1
  37. package/lib/typescript/List/List.d.ts +14 -14
  38. package/lib/typescript/LoadingOverlay/LoadingOverlay.d.ts +2 -2
  39. package/lib/typescript/Mark/Mark.d.ts +23 -23
  40. package/lib/typescript/Marquee/Marquee.d.ts +4 -4
  41. package/lib/typescript/MaskInput/MaskInput.d.ts +4 -4
  42. package/lib/typescript/Menu/Menu.d.ts +28 -28
  43. package/lib/typescript/Modal/Modal.d.ts +10 -10
  44. package/lib/typescript/MultiSelect/MultiSelect.d.ts +4 -4
  45. package/lib/typescript/NavLink/NavLink.d.ts +19 -19
  46. package/lib/typescript/Notification/Notification.d.ts +12 -12
  47. package/lib/typescript/NumberFormatter/NumberFormatter.d.ts +6 -6
  48. package/lib/typescript/NumberInput/NumberInput.d.ts +15 -15
  49. package/lib/typescript/Overlay/Overlay.d.ts +3 -3
  50. package/lib/typescript/Paragraph/Paragraph.d.ts +6 -6
  51. package/lib/typescript/PasswordInput/PasswordInput.d.ts +19 -19
  52. package/lib/typescript/Pill/Pill.d.ts +19 -19
  53. package/lib/typescript/PinInput/PinInput.d.ts +66 -66
  54. package/lib/typescript/Progress/Progress.d.ts +4 -4
  55. package/lib/typescript/Radio/Radio.d.ts +8 -8
  56. package/lib/typescript/Rating/Rating.d.ts +2 -2
  57. package/lib/typescript/RollingNumber/RollingNumber.d.ts +4 -4
  58. package/lib/typescript/SegmentedControl/SegmentedControl.d.ts +4 -4
  59. package/lib/typescript/Select/Select.d.ts +4 -4
  60. package/lib/typescript/Separator/Separator.d.ts +4 -4
  61. package/lib/typescript/Skeleton/Skeleton.d.ts +3 -3
  62. package/lib/typescript/Slider/Slider.d.ts +12 -12
  63. package/lib/typescript/Spoiler/Spoiler.d.ts +4 -4
  64. package/lib/typescript/Stepper/Stepper.d.ts +16 -16
  65. package/lib/typescript/Switch/Switch.d.ts +4 -4
  66. package/lib/typescript/Table/Table.d.ts +45 -45
  67. package/lib/typescript/TableOfContents/TableOfContents.d.ts +4 -4
  68. package/lib/typescript/Tabs/Tabs.d.ts +15 -15
  69. package/lib/typescript/TagsInput/TagsInput.d.ts +4 -4
  70. package/lib/typescript/Text/Text.d.ts +2 -2
  71. package/lib/typescript/TextInput/TextInput.d.ts +4 -4
  72. package/lib/typescript/Textarea/Textarea.d.ts +4 -4
  73. package/lib/typescript/ThemeIcon/ThemeIcon.d.ts +7 -7
  74. package/lib/typescript/Title/Title.d.ts +9 -9
  75. package/lib/typescript/Tooltip/Tooltip.d.ts +4 -4
  76. package/lib/typescript/Tree/Tree.d.ts +8 -8
  77. package/lib/typescript/TreeSelect/TreeSelect.d.ts +22 -22
  78. package/lib/typescript/VisuallyHidden/VisuallyHidden.d.ts +6 -6
  79. package/lib/typescript/internal/InlineControl.d.ts +6 -6
  80. package/lib/typescript/internal/color.d.ts.map +1 -1
  81. package/package.json +7 -7
  82. package/src/internal/color.ts +8 -1
@@ -11,28 +11,28 @@ import { type GetProps } from "@knitui/core";
11
11
  */
12
12
  declare const VisuallyHiddenFrame: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
13
13
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
14
- inline?: boolean | undefined;
15
- inherit?: boolean | undefined;
16
14
  span?: boolean | undefined;
17
15
  lineClamp?: number | undefined;
16
+ inherit?: boolean | undefined;
18
17
  truncate?: boolean | "end" | "start" | undefined;
18
+ inline?: boolean | undefined;
19
19
  }, import("@tamagui/web").StaticConfigPublic>;
20
20
  export interface VisuallyHiddenProps extends GetProps<typeof VisuallyHiddenFrame> {
21
21
  }
22
22
  export declare const VisuallyHidden: import("@tamagui/web").TamaguiComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
23
23
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
24
- inline?: boolean | undefined;
25
- inherit?: boolean | undefined;
26
24
  span?: boolean | undefined;
27
25
  lineClamp?: number | undefined;
26
+ inherit?: boolean | undefined;
28
27
  truncate?: boolean | "end" | "start" | undefined;
28
+ inline?: boolean | undefined;
29
29
  }>, keyof VisuallyHiddenProps> & VisuallyHiddenProps, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps & VisuallyHiddenProps, import("@tamagui/web").TextStylePropsBase, {
30
30
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
31
- inline?: boolean | undefined;
32
- inherit?: boolean | undefined;
33
31
  span?: boolean | undefined;
34
32
  lineClamp?: number | undefined;
33
+ inherit?: boolean | undefined;
35
34
  truncate?: boolean | "end" | "start" | undefined;
35
+ inline?: boolean | undefined;
36
36
  }, import("@tamagui/web").StaticConfigPublic>;
37
37
  export {};
38
38
  //# sourceMappingURL=VisuallyHidden.d.ts.map
@@ -20,27 +20,27 @@ declare const InlineControlRoot: import("@tamagui/web").TamaguiComponent<import(
20
20
  }, import("@tamagui/web").StaticConfigPublic>;
21
21
  declare const ControlLabel: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
22
22
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
23
- inline?: boolean | undefined;
24
- inherit?: boolean | undefined;
25
23
  span?: boolean | undefined;
26
24
  lineClamp?: number | undefined;
25
+ inherit?: boolean | undefined;
27
26
  truncate?: boolean | "end" | "start" | undefined;
27
+ inline?: boolean | undefined;
28
28
  }, import("@tamagui/web").StaticConfigPublic>;
29
29
  declare const ControlDescription: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
30
30
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
31
- inline?: boolean | undefined;
32
- inherit?: boolean | undefined;
33
31
  span?: boolean | undefined;
34
32
  lineClamp?: number | undefined;
33
+ inherit?: boolean | undefined;
35
34
  truncate?: boolean | "end" | "start" | undefined;
35
+ inline?: boolean | undefined;
36
36
  }, import("@tamagui/web").StaticConfigPublic>;
37
37
  declare const ControlError: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/web").TextStylePropsBase, {
38
38
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
39
- inline?: boolean | undefined;
40
- inherit?: boolean | undefined;
41
39
  span?: boolean | undefined;
42
40
  lineClamp?: number | undefined;
41
+ inherit?: boolean | undefined;
43
42
  truncate?: boolean | "end" | "start" | undefined;
43
+ inline?: boolean | undefined;
44
44
  }, import("@tamagui/web").StaticConfigPublic>;
45
45
  /**
46
46
  * Slot → part-props map for the inline-control chrome's uniform `styles` prop
@@ -1 +1 @@
1
- {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../src/internal/color.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAE3E,MAAM,WAAW,SAAS;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM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CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,SAAI,EAAE,IAAI,SAAe,GAAG,MAAM,CAE5E;AAMD,wBAAgB,gBAAgB,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,SAAS,GAAG,SAAS,CAwBrE;AAwBD,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAGlD;AAgBD,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,GAAG,MAAM,CAG3E;AAqHD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAKnD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAWnD;AAED,6EAA6E;AAC7E,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAO/C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knitui/components",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Cross-platform (React Native + Web) component kit for Knit UI.",
5
5
  "license": "MIT",
6
6
  "author": "The Haus <joost@the.haus>",
@@ -27,19 +27,19 @@
27
27
  "source": "./src/index.ts",
28
28
  "main": "./src/index.ts",
29
29
  "module": "./src/index.ts",
30
- "types": "./src/index.ts",
30
+ "types": "./lib/typescript/index.d.ts",
31
31
  "react-native": "./src/index.ts",
32
32
  "exports": {
33
33
  ".": {
34
34
  "source": "./src/index.ts",
35
35
  "react-native": "./src/index.ts",
36
- "types": "./src/index.ts",
36
+ "types": "./lib/typescript/index.d.ts",
37
37
  "default": "./src/index.ts"
38
38
  },
39
39
  "./control-system": {
40
40
  "source": "./src/control-system.ts",
41
41
  "react-native": "./src/control-system.ts",
42
- "types": "./src/control-system.ts",
42
+ "types": "./lib/typescript/control-system.d.ts",
43
43
  "default": "./src/control-system.ts"
44
44
  },
45
45
  "./src/*.stories": {
@@ -61,9 +61,9 @@
61
61
  "sideEffects": false,
62
62
  "dependencies": {
63
63
  "expo-image": "~57.0.1",
64
- "@knitui/core": "0.6.0",
65
- "@knitui/hooks": "0.6.0",
66
- "@knitui/icons": "0.6.0"
64
+ "@knitui/core": "0.6.1",
65
+ "@knitui/hooks": "0.6.1",
66
+ "@knitui/icons": "0.6.1"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "react": "*",
@@ -45,7 +45,14 @@ export function hsvaToRgbaObject({ h, s, v, a }: HsvaColor): RgbaColor {
45
45
  const l = _v * (1 - _s);
46
46
  const c = _v * (1 - (_h - hh) * _s);
47
47
  const d = _v * (1 - (1 - _h + hh) * _s);
48
- const module = hh % 6;
48
+ // Euclidean remainder, not `%`. An out-of-range hue reaches here unnormalised:
49
+ // `h` is a plain number on the public `HsvaColor` API, and `ColorPicker` feeds
50
+ // it straight through on every hue change. A negative one gave `hh = -1`, and
51
+ // `hh % 6 === -1` indexed off the FRONT of the three sector tuples below,
52
+ // producing `NaN` for every channel. (The *string* path can't get here —
53
+ // `VALIDATION_REGEXP.hsl` requires `\d+`, so `hsl(-60, …)` is rejected as
54
+ // invalid and resolves to black.)
55
+ const module = ((hh % 6) + 6) % 6;
49
56
 
50
57
  return {
51
58
  r: round([_v, c, l, l, d, _v][module] * 255),