Add `PlatformColor` iOS missing standard colors · rescript-react-native/rescript-react-native@92e7d77

Original file line numberDiff line numberDiff line change

@@ -24,29 +24,99 @@ external unsafeGet7: (string, string, string, string, string, string, string) =>

2424

external unsafeGetMultiple: array<string> => Color.t = "PlatformColor"

2525
2626

module Ios = {

27-

type t = [

27+

// Standard Colors <https://developer.apple.com/documentation/uikit/uicolor/standard_colors>

28+

type adaptableColors = [

29+

| #systemBlue

30+

| #systemBrown

31+

| #systemGreen

32+

| #systemIndigo

33+

| #systemOrange

34+

| #systemPink

35+

| #systemPurple

36+

| #systemRed

37+

| #systemTeal

38+

| #systemYellow

39+

]

40+

type adaptableGrayColors = [

41+

| #systemGray

42+

| #systemGray2

43+

| #systemGray3

44+

| #systemGray4

45+

| #systemGray5

46+

| #systemGray6

47+

]

48+

type transparentColors = [

2849

| #clear

29-

| #darkText

50+

]

51+

type fixedColors = [

52+

| #black

53+

| #blue

54+

| #brown

55+

| #cyan

56+

| #darkGray

57+

| #gray

58+

| #green

59+

| #lightGray

60+

| #magenta

61+

| #orange

62+

| #purple

63+

| #red

64+

| #white

65+

| #yellow

66+

]

67+
68+

// UI Element Colors https://developer.apple.com/documentation/uikit/uicolor/ui_element_colors

69+

type labelColors = [

3070

| #label

31-

| #lightText

32-

| #link

33-

| #opaqueSeparator

34-

| #placeholderText

35-

| #quaternaryLabel

36-

| #quaternarySystemFill

3771

| #secondaryLabel

38-

| #secondarySystemBackground

72+

| #tertiaryLabel

73+

| #quaternaryLabel

74+

]

75+

type fillColors = [

76+

| #systemFill

3977

| #secondarySystemFill

40-

| #secondarySystemGroupedBackground

41-

| #separator

78+

| #tertiarySystemFill

79+

| #quaternarySystemFill

80+

]

81+

type textColors = [

82+

| #placeholderText

83+

]

84+

type standardContentBackgroundColors = [

4285

| #systemBackground

43-

| #systemFill

44-

| #systemGroupedBackground

45-

| #tertiaryLabel

86+

| #secondarySystemBackground

4687

| #tertiarySystemBackground

47-

| #tertiarySystemFill

88+

]

89+

type groupedContentBackgroundColors = [

90+

| #systemGroupedBackground

91+

| #secondarySystemGroupedBackground

4892

| #tertiarySystemGroupedBackground

4993

]

94+

type separatorColors = [

95+

| #separator

96+

| #opaqueSeparator

97+

]

98+

type linkColors = [

99+

| #link

100+

]

101+

type nonadaptableColors = [

102+

| #darkText

103+

| #lightText

104+

]

105+

type t = [

106+

| adaptableColors

107+

| adaptableGrayColors

108+

| transparentColors

109+

| fixedColors

110+

| labelColors

111+

| fillColors

112+

| textColors

113+

| standardContentBackgroundColors

114+

| groupedContentBackgroundColors

115+

| separatorColors

116+

| linkColors

117+

| nonadaptableColors

118+

]

119+
50120

@module("react-native") external get: t => Color.t = "PlatformColor"

51121

@module("react-native")

52122

external get2: (t, t) => Color.t = "PlatformColor"