@korsolutions/ui 0.0.60 → 0.0.62

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 (125) hide show
  1. package/dist/module/components/button/variants/ghost.js +59 -0
  2. package/dist/module/components/button/variants/ghost.js.map +1 -0
  3. package/dist/module/components/button/variants/index.js +3 -1
  4. package/dist/module/components/button/variants/index.js.map +1 -1
  5. package/dist/module/components/icon-button/icon-button.js +63 -0
  6. package/dist/module/components/icon-button/icon-button.js.map +1 -0
  7. package/dist/module/components/icon-button/index.js +4 -0
  8. package/dist/module/components/icon-button/index.js.map +1 -0
  9. package/dist/module/components/icon-button/types.js +4 -0
  10. package/dist/module/components/icon-button/types.js.map +1 -0
  11. package/dist/module/components/icon-button/variants/default.js +34 -0
  12. package/dist/module/components/icon-button/variants/default.js.map +1 -0
  13. package/dist/module/components/icon-button/variants/ghost.js +35 -0
  14. package/dist/module/components/icon-button/variants/ghost.js.map +1 -0
  15. package/dist/module/components/icon-button/variants/index.js +11 -0
  16. package/dist/module/components/icon-button/variants/index.js.map +1 -0
  17. package/dist/module/components/icon-button/variants/secondary.js +37 -0
  18. package/dist/module/components/icon-button/variants/secondary.js.map +1 -0
  19. package/dist/module/components/index.js +2 -0
  20. package/dist/module/components/index.js.map +1 -1
  21. package/dist/module/components/separator/index.js +4 -0
  22. package/dist/module/components/separator/index.js.map +1 -0
  23. package/dist/module/components/separator/separator.js +17 -0
  24. package/dist/module/components/separator/separator.js.map +1 -0
  25. package/dist/module/components/separator/types.js +4 -0
  26. package/dist/module/components/separator/types.js.map +1 -0
  27. package/dist/module/components/separator/variants/horizontal.js +15 -0
  28. package/dist/module/components/separator/variants/horizontal.js.map +1 -0
  29. package/dist/module/components/separator/variants/index.js +9 -0
  30. package/dist/module/components/separator/variants/index.js.map +1 -0
  31. package/dist/module/components/separator/variants/vertical.js +15 -0
  32. package/dist/module/components/separator/variants/vertical.js.map +1 -0
  33. package/dist/module/components/tabs/components/tabs-item.js +61 -0
  34. package/dist/module/components/tabs/components/tabs-item.js.map +1 -0
  35. package/dist/module/components/tabs/components/tabs-root.js +3 -2
  36. package/dist/module/components/tabs/components/tabs-root.js.map +1 -1
  37. package/dist/module/components/tabs/index.js +2 -6
  38. package/dist/module/components/tabs/index.js.map +1 -1
  39. package/dist/module/components/tabs/use-organized-children.js +37 -0
  40. package/dist/module/components/tabs/use-organized-children.js.map +1 -0
  41. package/dist/module/components/tabs/variants/default.js +26 -8
  42. package/dist/module/components/tabs/variants/default.js.map +1 -1
  43. package/dist/module/components/tabs/variants/line.js +24 -7
  44. package/dist/module/components/tabs/variants/line.js.map +1 -1
  45. package/dist/typescript/src/components/button/variants/ghost.d.ts +3 -0
  46. package/dist/typescript/src/components/button/variants/ghost.d.ts.map +1 -0
  47. package/dist/typescript/src/components/button/variants/index.d.ts +1 -0
  48. package/dist/typescript/src/components/button/variants/index.d.ts.map +1 -1
  49. package/dist/typescript/src/components/icon-button/icon-button.d.ts +15 -0
  50. package/dist/typescript/src/components/icon-button/icon-button.d.ts.map +1 -0
  51. package/dist/typescript/src/components/icon-button/index.d.ts +3 -0
  52. package/dist/typescript/src/components/icon-button/index.d.ts.map +1 -0
  53. package/dist/typescript/src/components/icon-button/types.d.ts +8 -0
  54. package/dist/typescript/src/components/icon-button/types.d.ts.map +1 -0
  55. package/dist/typescript/src/components/icon-button/variants/default.d.ts +3 -0
  56. package/dist/typescript/src/components/icon-button/variants/default.d.ts.map +1 -0
  57. package/dist/typescript/src/components/icon-button/variants/ghost.d.ts +3 -0
  58. package/dist/typescript/src/components/icon-button/variants/ghost.d.ts.map +1 -0
  59. package/dist/typescript/src/components/icon-button/variants/index.d.ts +6 -0
  60. package/dist/typescript/src/components/icon-button/variants/index.d.ts.map +1 -0
  61. package/dist/typescript/src/components/icon-button/variants/secondary.d.ts +3 -0
  62. package/dist/typescript/src/components/icon-button/variants/secondary.d.ts.map +1 -0
  63. package/dist/typescript/src/components/index.d.ts +2 -0
  64. package/dist/typescript/src/components/index.d.ts.map +1 -1
  65. package/dist/typescript/src/components/separator/index.d.ts +3 -0
  66. package/dist/typescript/src/components/separator/index.d.ts.map +1 -0
  67. package/dist/typescript/src/components/separator/separator.d.ts +9 -0
  68. package/dist/typescript/src/components/separator/separator.d.ts.map +1 -0
  69. package/dist/typescript/src/components/separator/types.d.ts +5 -0
  70. package/dist/typescript/src/components/separator/types.d.ts.map +1 -0
  71. package/dist/typescript/src/components/separator/variants/horizontal.d.ts +3 -0
  72. package/dist/typescript/src/components/separator/variants/horizontal.d.ts.map +1 -0
  73. package/dist/typescript/src/components/separator/variants/index.d.ts +5 -0
  74. package/dist/typescript/src/components/separator/variants/index.d.ts.map +1 -0
  75. package/dist/typescript/src/components/separator/variants/vertical.d.ts +3 -0
  76. package/dist/typescript/src/components/separator/variants/vertical.d.ts.map +1 -0
  77. package/dist/typescript/src/components/tabs/components/{tabs-trigger.d.ts → tabs-item.d.ts} +3 -3
  78. package/dist/typescript/src/components/tabs/components/tabs-item.d.ts.map +1 -0
  79. package/dist/typescript/src/components/tabs/components/tabs-root.d.ts.map +1 -1
  80. package/dist/typescript/src/components/tabs/index.d.ts +3 -9
  81. package/dist/typescript/src/components/tabs/index.d.ts.map +1 -1
  82. package/dist/typescript/src/components/tabs/types.d.ts +8 -7
  83. package/dist/typescript/src/components/tabs/types.d.ts.map +1 -1
  84. package/dist/typescript/src/components/tabs/use-organized-children.d.ts +5 -0
  85. package/dist/typescript/src/components/tabs/use-organized-children.d.ts.map +1 -0
  86. package/dist/typescript/src/components/tabs/variants/default.d.ts.map +1 -1
  87. package/dist/typescript/src/components/tabs/variants/line.d.ts.map +1 -1
  88. package/package.json +1 -1
  89. package/src/components/button/variants/ghost.tsx +55 -0
  90. package/src/components/button/variants/index.ts +2 -0
  91. package/src/components/icon-button/icon-button.tsx +92 -0
  92. package/src/components/icon-button/index.ts +2 -0
  93. package/src/components/icon-button/types.ts +9 -0
  94. package/src/components/icon-button/variants/default.tsx +32 -0
  95. package/src/components/icon-button/variants/ghost.tsx +33 -0
  96. package/src/components/icon-button/variants/index.ts +9 -0
  97. package/src/components/icon-button/variants/secondary.tsx +35 -0
  98. package/src/components/index.ts +2 -0
  99. package/src/components/separator/index.ts +2 -0
  100. package/src/components/separator/separator.tsx +15 -0
  101. package/src/components/separator/types.ts +5 -0
  102. package/src/components/separator/variants/horizontal.tsx +14 -0
  103. package/src/components/separator/variants/index.ts +7 -0
  104. package/src/components/separator/variants/vertical.tsx +14 -0
  105. package/src/components/tabs/components/tabs-item.tsx +96 -0
  106. package/src/components/tabs/components/tabs-root.tsx +9 -2
  107. package/src/components/tabs/index.ts +3 -9
  108. package/src/components/tabs/types.ts +8 -7
  109. package/src/components/tabs/use-organized-children.tsx +37 -0
  110. package/src/components/tabs/variants/default.tsx +25 -7
  111. package/src/components/tabs/variants/line.tsx +22 -5
  112. package/dist/module/components/tabs/components/tabs-list.js +0 -23
  113. package/dist/module/components/tabs/components/tabs-list.js.map +0 -1
  114. package/dist/module/components/tabs/components/tabs-trigger-text.js +0 -28
  115. package/dist/module/components/tabs/components/tabs-trigger-text.js.map +0 -1
  116. package/dist/module/components/tabs/components/tabs-trigger.js +0 -45
  117. package/dist/module/components/tabs/components/tabs-trigger.js.map +0 -1
  118. package/dist/typescript/src/components/tabs/components/tabs-list.d.ts +0 -8
  119. package/dist/typescript/src/components/tabs/components/tabs-list.d.ts.map +0 -1
  120. package/dist/typescript/src/components/tabs/components/tabs-trigger-text.d.ts +0 -10
  121. package/dist/typescript/src/components/tabs/components/tabs-trigger-text.d.ts.map +0 -1
  122. package/dist/typescript/src/components/tabs/components/tabs-trigger.d.ts.map +0 -1
  123. package/src/components/tabs/components/tabs-list.tsx +0 -21
  124. package/src/components/tabs/components/tabs-trigger-text.tsx +0 -26
  125. package/src/components/tabs/components/tabs-trigger.tsx +0 -43
@@ -8,18 +8,23 @@ export const useTabsVariantDefault = () => {
8
8
  fontFamily,
9
9
  fontSize
10
10
  }) => ({
11
- list: {
11
+ root: {
12
12
  flexDirection: "row",
13
13
  backgroundColor: colors.muted,
14
14
  padding: 4,
15
15
  borderRadius: radius,
16
16
  gap: 4
17
17
  },
18
- trigger: {
18
+ item: {
19
19
  default: {
20
- paddingVertical: 8,
20
+ flex: 1,
21
+ flexDirection: "row",
22
+ alignItems: "center",
23
+ justifyContent: "center",
24
+ gap: 8,
25
+ paddingVertical: 6,
21
26
  paddingHorizontal: 12,
22
- borderRadius: radius,
27
+ borderRadius: radius - 2,
23
28
  backgroundColor: "transparent"
24
29
  },
25
30
  active: {
@@ -29,19 +34,32 @@ export const useTabsVariantDefault = () => {
29
34
  width: 0,
30
35
  height: 1
31
36
  },
32
- shadowOpacity: 0.1,
37
+ shadowOpacity: 0.05,
33
38
  shadowRadius: 2,
34
- elevation: 2
39
+ elevation: 1
35
40
  },
36
41
  disabled: {
37
42
  opacity: 0.5
38
43
  }
39
44
  },
40
- triggerText: {
45
+ itemText: {
41
46
  default: {
42
47
  color: colors.mutedForeground,
43
48
  fontSize,
44
- fontFamily
49
+ fontFamily,
50
+ fontWeight: "500"
51
+ },
52
+ active: {
53
+ color: colors.foreground
54
+ },
55
+ disabled: {
56
+ color: colors.mutedForeground
57
+ }
58
+ },
59
+ itemIcon: {
60
+ default: {
61
+ color: colors.mutedForeground,
62
+ size: fontSize
45
63
  },
46
64
  active: {
47
65
  color: colors.foreground
@@ -1 +1 @@
1
- {"version":3,"names":["useThemedStyles","useTabsVariantDefault","colors","radius","fontFamily","fontSize","list","flexDirection","backgroundColor","muted","padding","borderRadius","gap","trigger","default","paddingVertical","paddingHorizontal","active","background","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","disabled","opacity","triggerText","color","mutedForeground","foreground"],"sourceRoot":"../../../../../src","sources":["components/tabs/variants/default.tsx"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,qCAAkC;AAGlE,OAAO,MAAMC,qBAAqB,GAAGA,CAAA,KAAkB;EACrD,OAAOD,eAAe,CACpB,CAAC;IAAEE,MAAM;IAAEC,MAAM;IAAEC,UAAU;IAAEC;EAAS,CAAC,MAAkB;IACzDC,IAAI,EAAE;MACJC,aAAa,EAAE,KAAK;MACpBC,eAAe,EAAEN,MAAM,CAACO,KAAK;MAC7BC,OAAO,EAAE,CAAC;MACVC,YAAY,EAAER,MAAM;MACpBS,GAAG,EAAE;IACP,CAAC;IACDC,OAAO,EAAE;MACPC,OAAO,EAAE;QACPC,eAAe,EAAE,CAAC;QAClBC,iBAAiB,EAAE,EAAE;QACrBL,YAAY,EAAER,MAAM;QACpBK,eAAe,EAAE;MACnB,CAAC;MACDS,MAAM,EAAE;QACNT,eAAe,EAAEN,MAAM,CAACgB,UAAU;QAClCC,WAAW,EAAE,MAAM;QACnBC,YAAY,EAAE;UAAEC,KAAK,EAAE,CAAC;UAAEC,MAAM,EAAE;QAAE,CAAC;QACrCC,aAAa,EAAE,GAAG;QAClBC,YAAY,EAAE,CAAC;QACfC,SAAS,EAAE;MACb,CAAC;MACDC,QAAQ,EAAE;QACRC,OAAO,EAAE;MACX;IACF,CAAC;IACDC,WAAW,EAAE;MACXd,OAAO,EAAE;QACPe,KAAK,EAAE3B,MAAM,CAAC4B,eAAe;QAC7BzB,QAAQ;QACRD;MACF,CAAC;MACDa,MAAM,EAAE;QACNY,KAAK,EAAE3B,MAAM,CAAC6B;MAChB,CAAC;MACDL,QAAQ,EAAE;QACRG,KAAK,EAAE3B,MAAM,CAAC4B;MAChB;IACF;EACF,CAAC,CACH,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useThemedStyles","useTabsVariantDefault","colors","radius","fontFamily","fontSize","root","flexDirection","backgroundColor","muted","padding","borderRadius","gap","item","default","flex","alignItems","justifyContent","paddingVertical","paddingHorizontal","active","background","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","disabled","opacity","itemText","color","mutedForeground","fontWeight","foreground","itemIcon","size"],"sourceRoot":"../../../../../src","sources":["components/tabs/variants/default.tsx"],"mapp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E;QACPkB,KAAK,EAAE9B,MAAM,CAAC+B,eAAe;QAC7BI,IAAI,EAAEhC;MACR,CAAC;MACDe,MAAM,EAAE;QACNY,KAAK,EAAE9B,MAAM,CAACiC;MAChB,CAAC;MACDN,QAAQ,EAAE;QACRG,KAAK,EAAE9B,MAAM,CAAC+B;MAChB;IACF;EACF,CAAC,CACH,CAAC;AACH,CAAC","ignoreList":[]}
@@ -7,16 +7,20 @@ export const useTabsVariantLine = () => {
7
7
  fontFamily,
8
8
  fontSize
9
9
  }) => ({
10
- list: {
10
+ root: {
11
11
  flexDirection: "row",
12
12
  borderBottomWidth: 1,
13
- borderBottomColor: colors.border,
14
- gap: 0
13
+ borderBottomColor: colors.border
15
14
  },
16
- trigger: {
15
+ item: {
17
16
  default: {
18
- paddingVertical: 12,
17
+ flexDirection: "row",
18
+ alignItems: "center",
19
+ justifyContent: "center",
20
+ gap: 8,
21
+ paddingVertical: 8,
19
22
  paddingHorizontal: 16,
23
+ marginBottom: -1,
20
24
  borderBottomWidth: 2,
21
25
  borderBottomColor: "transparent",
22
26
  backgroundColor: "transparent"
@@ -28,11 +32,24 @@ export const useTabsVariantLine = () => {
28
32
  opacity: 0.5
29
33
  }
30
34
  },
31
- triggerText: {
35
+ itemText: {
32
36
  default: {
33
37
  color: colors.mutedForeground,
34
38
  fontSize,
35
- fontFamily
39
+ fontFamily,
40
+ fontWeight: "500"
41
+ },
42
+ active: {
43
+ color: colors.foreground
44
+ },
45
+ disabled: {
46
+ color: colors.mutedForeground
47
+ }
48
+ },
49
+ itemIcon: {
50
+ default: {
51
+ color: colors.mutedForeground,
52
+ size: fontSize
36
53
  },
37
54
  active: {
38
55
  color: colors.foreground
@@ -1 +1 @@
1
- {"version":3,"names":["useThemedStyles","useTabsVariantLine","colors","fontFamily","fontSize","list","flexDirection","borderBottomWidth","borderBottomColor","border","gap","trigger","default","paddingVertical","paddingHorizontal","backgroundColor","active","primary","disabled","opacity","triggerText","color","mutedForeground","foreground"],"sourceRoot":"../../../../../src","sources":["components/tabs/variants/line.tsx"],"mappings":";;AACA,SAASA,eAAe,QAAQ,qCAAkC;AAElE,OAAO,MAAMC,kBAAkB,GAAGA,CAAA,KAAkB;EAClD,OAAOD,eAAe,CACpB,CAAC;IAAEE,MAAM;IAAEC,UAAU;IAAEC;EAAS,CAAC,MAAkB;IACjDC,IAAI,EAAE;MACJC,aAAa,EAAE,KAAK;MACpBC,iBAAiB,EAAE,CAAC;MACpBC,iBAAiB,EAAEN,MAAM,CAACO,MAAM;MAChCC,GAAG,EAAE;IACP,CAAC;IACDC,OAAO,EAAE;MACPC,OAAO,EAAE;QACPC,eAAe,EAAE,EAAE;QACnBC,iBAAiB,EAAE,EAAE;QACrBP,iBAAiB,EAAE,CAAC;QACpBC,iBAAiB,EAAE,aAAa;QAChCO,eAAe,EAAE;MACnB,CAAC;MACDC,MAAM,EAAE;QACNR,iBAAiB,EAAEN,MAAM,CAACe;MAC5B,CAAC;MACDC,QAAQ,EAAE;QACRC,OAAO,EAAE;MACX;IACF,CAAC;IACDC,WAAW,EAAE;MACXR,OAAO,EAAE;QACPS,KAAK,EAAEnB,MAAM,CAACoB,eAAe;QAC7BlB,QAAQ;QACRD;MACF,CAAC;MACDa,MAAM,EAAE;QACNK,KAAK,EAAEnB,MAAM,CAACqB;MAChB,CAAC;MACDL,QAAQ,EAAE;QACRG,KAAK,EAAEnB,MAAM,CAACoB;MAChB;IACF;EACF,CAAC,CACH,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useThemedStyles","useTabsVariantLine","colors","fontFamily","fontSize","root","flexDirection","borderBottomWidth","borderBottomColor","border","item","default","alignItems","justifyContent","gap","paddingVertical","paddingHorizontal","marginBottom","backgroundColor","active","primary","disabled","opacity","itemText","color","mutedForeground","fontWeight","foreground","itemIcon","size"],"sourceRoot":"../../../../../src","sources":["components/tabs/variants/line.tsx"],"mappings":";;AACA,SAASA,eAAe,QAAQ,qCAAkC;AAElE,OAAO,MAAMC,kBAAkB,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type ButtonStyles } from "../..";
2
+ export declare const useButtonVariantGhost: () => ButtonStyles;
3
+ //# sourceMappingURL=ghost.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ghost.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/ghost.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,eAAO,MAAM,qBAAqB,QAAO,YAkDxC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export declare const ButtonVariants: {
2
2
  default: () => import("..").ButtonStyles;
3
3
  secondary: () => import("..").ButtonStyles;
4
+ ghost: () => import("..").ButtonStyles;
4
5
  };
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;;;CAG1B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;CAI1B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { type PressableProps, type StyleProp, type ViewStyle } from "react-native";
3
+ import type { SvgProps } from "../../types/props.types";
4
+ import { IconButtonVariants } from "./variants";
5
+ export interface IconButtonProps extends Omit<PressableProps, "disabled" | "children"> {
6
+ render: (props: SvgProps) => React.ReactNode;
7
+ variant?: keyof typeof IconButtonVariants;
8
+ isDisabled?: boolean;
9
+ size?: number;
10
+ color?: SvgProps["color"];
11
+ strokeWidth?: number;
12
+ style?: StyleProp<ViewStyle>;
13
+ }
14
+ export declare function IconButton(props: IconButtonProps): React.JSX.Element;
15
+ //# sourceMappingURL=icon-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon-button/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,UAAU,CAAC;IACrD,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,KAAK,CAAC,SAAS,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,OAAO,kBAAkB,CAAC;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAgBD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,qBAsDhD"}
@@ -0,0 +1,3 @@
1
+ export { IconButton, type IconButtonProps } from "./icon-button";
2
+ export type { IconButtonStyles } from "./types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+ import type { SvgProps } from "../../types/props.types";
3
+ export type IconButtonState = "default" | "disabled" | "hovered";
4
+ export interface IconButtonStyles {
5
+ root?: Partial<Record<IconButtonState, StyleProp<ViewStyle>>>;
6
+ icon?: Partial<Record<IconButtonState, SvgProps>>;
7
+ }
8
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon-button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAEjE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAC9D,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC;CACnD"}
@@ -0,0 +1,3 @@
1
+ import type { IconButtonStyles } from "../types";
2
+ export declare const useIconButtonVariantDefault: () => IconButtonStyles;
3
+ //# sourceMappingURL=default.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/icon-button/variants/default.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,2BAA2B,QAAO,gBA2B9C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { IconButtonStyles } from "../types";
2
+ export declare const useIconButtonVariantGhost: () => IconButtonStyles;
3
+ //# sourceMappingURL=ghost.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ghost.d.ts","sourceRoot":"","sources":["../../../../../../src/components/icon-button/variants/ghost.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,yBAAyB,QAAO,gBA4B5C,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const IconButtonVariants: {
2
+ default: () => import("..").IconButtonStyles;
3
+ secondary: () => import("..").IconButtonStyles;
4
+ ghost: () => import("..").IconButtonStyles;
5
+ };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/icon-button/variants/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { IconButtonStyles } from "../types";
2
+ export declare const useIconButtonVariantSecondary: () => IconButtonStyles;
3
+ //# sourceMappingURL=secondary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/icon-button/variants/secondary.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,6BAA6B,QAAO,gBA8BhD,CAAC"}
@@ -9,6 +9,7 @@ export * from "./checkbox";
9
9
  export * from "./empty";
10
10
  export * from "./field";
11
11
  export * from "./icon";
12
+ export * from "./icon-button";
12
13
  export * from "./input";
13
14
  export * from "./link";
14
15
  export * from "./list";
@@ -19,6 +20,7 @@ export * from "./portal";
19
20
  export * from "./progress";
20
21
  export * from "./scroll-bar";
21
22
  export * from "./select";
23
+ export * from "./separator";
22
24
  export * from "./tabs";
23
25
  export * from "./textarea";
24
26
  export * from "./toast";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc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export { Separator, type SeparatorProps } from "./separator";
2
+ export type { SeparatorStyles } from "./types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/separator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { type StyleProp, type ViewStyle } from "react-native";
3
+ import { SeparatorVariants } from "./variants";
4
+ export interface SeparatorProps {
5
+ variant?: keyof typeof SeparatorVariants;
6
+ style?: StyleProp<ViewStyle>;
7
+ }
8
+ export declare function Separator(props: SeparatorProps): React.JSX.Element;
9
+ //# sourceMappingURL=separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../../../src/components/separator/separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,MAAM,OAAO,iBAAiB,CAAC;IACzC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,qBAK9C"}
@@ -0,0 +1,5 @@
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+ export interface SeparatorStyles {
3
+ root?: StyleProp<ViewStyle>;
4
+ }
5
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/separator/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B"}
@@ -0,0 +1,3 @@
1
+ import type { SeparatorStyles } from "../types";
2
+ export declare const useSeparatorVariantHorizontal: () => SeparatorStyles;
3
+ //# sourceMappingURL=horizontal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"horizontal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/separator/variants/horizontal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,eAAO,MAAM,6BAA6B,QAAO,eAUhD,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const SeparatorVariants: {
2
+ horizontal: () => import("..").SeparatorStyles;
3
+ vertical: () => import("..").SeparatorStyles;
4
+ };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/separator/variants/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB;;;CAG7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SeparatorStyles } from "../types";
2
+ export declare const useSeparatorVariantVertical: () => SeparatorStyles;
3
+ //# sourceMappingURL=vertical.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vertical.d.ts","sourceRoot":"","sources":["../../../../../../src/components/separator/variants/vertical.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,eAAO,MAAM,2BAA2B,QAAO,eAU9C,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import React from "react";
2
2
  import { type PressableProps, type StyleProp, type ViewStyle } from "react-native";
3
- export interface TabsTriggerProps extends PressableProps {
3
+ export interface TabsItemProps extends PressableProps {
4
4
  children: React.ReactNode;
5
5
  value: string;
6
6
  isDisabled?: boolean;
7
7
  style?: StyleProp<ViewStyle>;
8
8
  }
9
- export declare function TabsTrigger(props: TabsTriggerProps): React.JSX.Element;
10
- //# sourceMappingURL=tabs-trigger.d.ts.map
9
+ export declare function TabsItem(props: TabsItemProps): React.JSX.Element;
10
+ //# sourceMappingURL=tabs-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs-item.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tabs/components/tabs-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,MAAM,WAAW,aAAc,SAAQ,cAAc;IACnD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAmBD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,qBA2D5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"tabs-root.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tabs/components/tabs-root.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpF,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAChE,OAAO,CAAC,EAAE,MAAM,OAAO,YAAY,CAAC;IACpC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,qBAoB5C"}
1
+ {"version":3,"file":"tabs-root.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tabs/components/tabs-root.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAChE,OAAO,CAAC,EAAE,MAAM,OAAO,YAAY,CAAC;IACpC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,qBAqB5C"}
@@ -1,16 +1,10 @@
1
- import { TabsList } from "./components/tabs-list";
1
+ import { TabsItem } from "./components/tabs-item";
2
2
  import { TabsRoot } from "./components/tabs-root";
3
- import { TabsTrigger } from "./components/tabs-trigger";
4
- import { TabsTriggerText } from "./components/tabs-trigger-text";
5
3
  export declare const Tabs: {
6
4
  Root: typeof TabsRoot;
7
- List: typeof TabsList;
8
- Trigger: typeof TabsTrigger;
9
- TriggerText: typeof TabsTriggerText;
5
+ Item: typeof TabsItem;
10
6
  };
11
- export type { TabsListProps } from "./components/tabs-list";
7
+ export type { TabsItemProps } from "./components/tabs-item";
12
8
  export type { TabsRootProps } from "./components/tabs-root";
13
- export type { TabsTriggerProps } from "./components/tabs-trigger";
14
- export type { TabsTriggerTextProps } from "./components/tabs-trigger-text";
15
9
  export * from "./types";
16
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,eAAO,MAAM,IAAI;;;;;CAKhB,CAAC;AAEF,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,YAAY,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,eAAO,MAAM,IAAI;;;CAGhB,CAAC;AAEF,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,cAAc,SAAS,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import type { StyleProp, TextStyle } from "react-native";
2
- import type { TabsListProps } from "./components/tabs-list";
3
- import type { TabsTriggerProps } from "./components/tabs-trigger";
4
- export type TabsState = "default" | "active" | "disabled";
2
+ import type { IconProps } from "../icon";
3
+ import type { TabsItemProps } from "./components/tabs-item";
4
+ import type { TabsRootProps } from "./components/tabs-root";
5
+ export type TabsItemState = "default" | "active" | "disabled" | "hovered";
5
6
  export interface TabsStyles {
6
- root?: TabsListProps["style"];
7
- list?: TabsListProps["style"];
8
- trigger?: Partial<Record<TabsState, TabsTriggerProps["style"]>>;
9
- triggerText?: Partial<Record<TabsState, StyleProp<TextStyle>>>;
7
+ root?: TabsRootProps["style"];
8
+ item?: Partial<Record<TabsItemState, TabsItemProps["style"]>>;
9
+ itemText?: Partial<Record<TabsItemState, StyleProp<TextStyle>>>;
10
+ itemIcon?: Partial<Record<TabsItemState, IconProps>>;
10
11
  }
11
12
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAElE,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE1D,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9B,IAAI,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAChE,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;CAChE"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAE1E,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC;CACtD"}
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { type StyleProp, type TextStyle } from "react-native";
3
+ import { type IconProps } from "../icon";
4
+ export declare function useOrganizedChildren(children: React.ReactNode, textStyle: StyleProp<TextStyle> | undefined, iconProps: IconProps | undefined): number | bigint | boolean | any[] | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
5
+ //# sourceMappingURL=use-organized-children.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-organized-children.d.ts","sourceRoot":"","sources":["../../../../../src/components/tabs/use-organized-children.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAE/C,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,EACzB,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,GAAG,SAAS,EAC3C,SAAS,EAAE,SAAS,GAAG,SAAS,kSA4BjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tabs/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,qBAAqB,QAAO,UA4CxC,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tabs/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,qBAAqB,QAAO,UA8DxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tabs/variants/line.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,kBAAkB,QAAO,UAuCrC,CAAC"}
1
+ {"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tabs/variants/line.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,kBAAkB,QAAO,UAwDrC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@korsolutions/ui",
3
- "version": "0.0.60",
3
+ "version": "0.0.62",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,55 @@
1
+ import { type ButtonStyles } from "../..";
2
+ import { hslaSetRelativeLightness } from "../../../utils/hsla-utils";
3
+ import { useThemedStyles } from "../../../utils/use-themed-styles";
4
+
5
+ export const useButtonVariantGhost = (): ButtonStyles => {
6
+ return useThemedStyles(
7
+ ({ colors, radius, fontFamily, fontSize }): ButtonStyles => ({
8
+ root: {
9
+ default: {
10
+ flexDirection: "row",
11
+ paddingVertical: 12,
12
+ paddingHorizontal: 16,
13
+ borderRadius: radius,
14
+ gap: 8,
15
+ alignItems: "center",
16
+ justifyContent: "center",
17
+ backgroundColor: "transparent",
18
+ },
19
+ disabled: {
20
+ opacity: 0.5,
21
+ },
22
+ loading: {
23
+ opacity: 0.5,
24
+ },
25
+ hovered: {
26
+ backgroundColor: hslaSetRelativeLightness(colors.secondary, -1),
27
+ },
28
+ },
29
+ label: {
30
+ default: {
31
+ color: colors.foreground,
32
+ fontSize,
33
+ fontFamily,
34
+ },
35
+ disabled: {
36
+ color: colors.mutedForeground,
37
+ },
38
+ loading: {
39
+ color: colors.mutedForeground,
40
+ },
41
+ },
42
+ spinner: {
43
+ default: {
44
+ color: colors.foreground,
45
+ },
46
+ disabled: {
47
+ color: colors.mutedForeground,
48
+ },
49
+ loading: {
50
+ color: colors.mutedForeground,
51
+ },
52
+ },
53
+ }),
54
+ );
55
+ };
@@ -1,7 +1,9 @@
1
1
  import { useButtonVariantDefault } from "./default";
2
+ import { useButtonVariantGhost } from "./ghost";
2
3
  import { useButtonVariantSecondary } from "./secondary";
3
4
 
4
5
  export const ButtonVariants = {
5
6
  default: useButtonVariantDefault,
6
7
  secondary: useButtonVariantSecondary,
8
+ ghost: useButtonVariantGhost,
7
9
  };
@@ -0,0 +1,92 @@
1
+ import React, { useState } from "react";
2
+ import {
3
+ Pressable,
4
+ type CursorValue,
5
+ type PressableProps,
6
+ type StyleProp,
7
+ type ViewStyle,
8
+ } from "react-native";
9
+ import type { SvgProps } from "../../types/props.types";
10
+ import type { IconButtonState } from "./types";
11
+ import { IconButtonVariants } from "./variants";
12
+
13
+ export interface IconButtonProps
14
+ extends Omit<PressableProps, "disabled" | "children"> {
15
+ render: (props: SvgProps) => React.ReactNode;
16
+ variant?: keyof typeof IconButtonVariants;
17
+ isDisabled?: boolean;
18
+ size?: number;
19
+ color?: SvgProps["color"];
20
+ strokeWidth?: number;
21
+ style?: StyleProp<ViewStyle>;
22
+ }
23
+
24
+ const calculateState = (
25
+ props: IconButtonProps,
26
+ isHovered: boolean,
27
+ ): IconButtonState => {
28
+ if (props.isDisabled) return "disabled";
29
+ if (isHovered) return "hovered";
30
+ return "default";
31
+ };
32
+
33
+ const cursorValue = (state: IconButtonState): CursorValue => {
34
+ if (state === "disabled") return "not-allowed" as CursorValue;
35
+ return "pointer";
36
+ };
37
+
38
+ export function IconButton(props: IconButtonProps) {
39
+ const {
40
+ render: IconComponent,
41
+ variant = "default",
42
+ isDisabled,
43
+ size,
44
+ color,
45
+ strokeWidth,
46
+ style,
47
+ ...rest
48
+ } = props;
49
+
50
+ const variantStyles = IconButtonVariants[variant]();
51
+ const [isHovered, setIsHovered] = useState(false);
52
+ const state = calculateState(props, isHovered);
53
+
54
+ const handlePress: PressableProps["onPress"] = (event) => {
55
+ if (isDisabled) {
56
+ event.preventDefault();
57
+ return;
58
+ }
59
+ rest.onPress?.(event);
60
+ };
61
+
62
+ const iconProps: SvgProps = {
63
+ size: size ?? variantStyles.icon?.default?.size,
64
+ color: color ?? variantStyles.icon?.[state]?.color ?? variantStyles.icon?.default?.color,
65
+ strokeWidth,
66
+ absoluteStrokeWidth: true,
67
+ };
68
+
69
+ return (
70
+ <Pressable
71
+ {...rest}
72
+ onPress={handlePress}
73
+ onHoverIn={(e) => {
74
+ setIsHovered(true);
75
+ rest.onHoverIn?.(e);
76
+ }}
77
+ onHoverOut={(e) => {
78
+ setIsHovered(false);
79
+ rest.onHoverOut?.(e);
80
+ }}
81
+ disabled={isDisabled}
82
+ style={[
83
+ variantStyles.root?.default,
84
+ variantStyles.root?.[state],
85
+ { cursor: cursorValue(state) },
86
+ style,
87
+ ]}
88
+ >
89
+ <IconComponent {...iconProps} />
90
+ </Pressable>
91
+ );
92
+ }
@@ -0,0 +1,2 @@
1
+ export { IconButton, type IconButtonProps } from "./icon-button";
2
+ export type { IconButtonStyles } from "./types";
@@ -0,0 +1,9 @@
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+ import type { SvgProps } from "../../types/props.types";
3
+
4
+ export type IconButtonState = "default" | "disabled" | "hovered";
5
+
6
+ export interface IconButtonStyles {
7
+ root?: Partial<Record<IconButtonState, StyleProp<ViewStyle>>>;
8
+ icon?: Partial<Record<IconButtonState, SvgProps>>;
9
+ }