@lotte-innovate/ui-component-test 0.0.6 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) hide show
  1. package/README.md +163 -163
  2. package/dist/Typography/Header/index.d.ts +1 -1
  3. package/dist/Typography/Header/index.jsx +4 -4
  4. package/dist/Typography/Text/index.d.ts +1 -1
  5. package/dist/Typography/Text/index.jsx +4 -4
  6. package/dist/Typography/index.js +3 -2
  7. package/dist/app/layout.jsx +2 -2
  8. package/dist/app/page.d.ts +1 -1
  9. package/dist/app/page.jsx +3 -39
  10. package/dist/app/template/badgeTemplate.jsx +71 -71
  11. package/dist/app/template/buttonTemplate.jsx +71 -71
  12. package/dist/app/template/colorPicker.jsx +6 -6
  13. package/dist/app/template/textTemplate.jsx +55 -55
  14. package/dist/app/template/theme.jsx +32 -32
  15. package/dist/components/Accordion/index.jsx +13 -13
  16. package/dist/components/AlertDialog/AlertDialogAction.jsx +2 -2
  17. package/dist/components/AlertDialog/AlertDialogCancel.jsx +2 -2
  18. package/dist/components/AlertDialog/AlertDialogContent.jsx +5 -5
  19. package/dist/components/AlertDialog/AlertDialogDescription.jsx +2 -2
  20. package/dist/components/AlertDialog/AlertDialogTitle.jsx +2 -2
  21. package/dist/components/AlertDialog/AlertDialogTrigger.jsx +2 -2
  22. package/dist/components/AspectRatio/index.jsx +2 -2
  23. package/dist/components/Avatar/index.jsx +5 -5
  24. package/dist/components/Badge/index.jsx +2 -2
  25. package/dist/components/BubbleChart/index.d.ts +1 -1
  26. package/dist/components/Button/index.jsx +2 -2
  27. package/dist/components/Callout/CalloutIcon.jsx +6 -6
  28. package/dist/components/Callout/CalloutText.jsx +2 -2
  29. package/dist/components/Callout/index.jsx +4 -4
  30. package/dist/components/Card/index.jsx +2 -2
  31. package/dist/components/Checkbox/index.jsx +9 -9
  32. package/dist/components/CheckboxCard/index.jsx +3 -3
  33. package/dist/components/CheckboxGroup/CheckboxGroupItem.jsx +4 -4
  34. package/dist/components/CheckboxGroup/index.jsx +4 -4
  35. package/dist/components/ContextMenu/ContextMenuCheckboxItem.jsx +5 -5
  36. package/dist/components/ContextMenu/ContextMenuContent.jsx +4 -4
  37. package/dist/components/ContextMenu/ContextMenuGroup.jsx +2 -2
  38. package/dist/components/ContextMenu/ContextMenuItem.jsx +3 -3
  39. package/dist/components/ContextMenu/ContextMenuItemIndicator.jsx +2 -2
  40. package/dist/components/ContextMenu/ContextMenuLabel.jsx +2 -2
  41. package/dist/components/ContextMenu/ContextMenuRadioGroup.jsx +4 -4
  42. package/dist/components/ContextMenu/ContextMenuRadioItem.jsx +5 -5
  43. package/dist/components/ContextMenu/ContextMenuSeparator.jsx +2 -2
  44. package/dist/components/ContextMenu/ContextMenuSubContent.jsx +4 -4
  45. package/dist/components/ContextMenu/ContextMenuSubTrigger.jsx +7 -7
  46. package/dist/components/ContextMenu/ContextMenuTrigger.jsx +2 -2
  47. package/dist/components/ContextMenu/index.jsx +2 -2
  48. package/dist/components/DataList/DataListItem.jsx +2 -2
  49. package/dist/components/DataList/DataListLabel.jsx +2 -2
  50. package/dist/components/DataList/DataListValue.jsx +2 -2
  51. package/dist/components/DataList/index.jsx +4 -4
  52. package/dist/components/Dialog/DialogAction.jsx +2 -2
  53. package/dist/components/Dialog/DialogCancel.jsx +2 -2
  54. package/dist/components/Dialog/DialogContent.jsx +2 -2
  55. package/dist/components/Dialog/DialogDescription.jsx +2 -2
  56. package/dist/components/Dialog/DialogSlot.jsx +2 -2
  57. package/dist/components/Dialog/DialogTitle.jsx +2 -2
  58. package/dist/components/Dialog/DialogTrigger.jsx +2 -2
  59. package/dist/components/Dialog/index.jsx +2 -2
  60. package/dist/components/DropdownMenu/DropdonMenuRadioGroup.jsx +4 -4
  61. package/dist/components/DropdownMenu/DropdonMenuSubContent.jsx +4 -4
  62. package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +5 -5
  63. package/dist/components/DropdownMenu/DropdownMenuContent.jsx +4 -4
  64. package/dist/components/DropdownMenu/DropdownMenuItem.jsx +3 -3
  65. package/dist/components/DropdownMenu/DropdownMenuItemIndicator.jsx +2 -2
  66. package/dist/components/DropdownMenu/DropdownMenuLable.jsx +2 -2
  67. package/dist/components/DropdownMenu/DropdownMenuRadioItem.jsx +5 -5
  68. package/dist/components/DropdownMenu/DropdownMenuSubTrigger.jsx +5 -5
  69. package/dist/components/DropdownMenu/DropdownMenuTrigger.jsx +2 -2
  70. package/dist/components/HoverCard/HoverCardContent.jsx +2 -2
  71. package/dist/components/HoverCard/HoverCardTrigger.jsx +2 -2
  72. package/dist/components/HoverCard/index.jsx +2 -2
  73. package/dist/components/IconButton/index.jsx +2 -2
  74. package/dist/components/Input/Input.stories.jsx +6 -6
  75. package/dist/components/Inset/index.jsx +4 -4
  76. package/dist/components/Label/index.jsx +2 -2
  77. package/dist/components/Menubar/MenubarCheckboxItem.jsx +5 -5
  78. package/dist/components/Menubar/MenubarContent.jsx +4 -4
  79. package/dist/components/Menubar/MenubarItem.jsx +3 -3
  80. package/dist/components/Menubar/MenubarItemIndicator.jsx +2 -2
  81. package/dist/components/Menubar/MenubarRadioGroup.jsx +4 -4
  82. package/dist/components/Menubar/MenubarRadioItem.jsx +5 -5
  83. package/dist/components/Menubar/MenubarSeparator.jsx +2 -2
  84. package/dist/components/Menubar/MenubarSubContent.jsx +2 -2
  85. package/dist/components/Menubar/MenubarSubTrigger.jsx +5 -5
  86. package/dist/components/Menubar/MenubarTrigger.jsx +2 -2
  87. package/dist/components/Menubar/index.jsx +4 -4
  88. package/dist/components/NavigationMenu/NavigationMenuContent.jsx +2 -2
  89. package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +3 -3
  90. package/dist/components/NavigationMenu/NavigationMenuItem.jsx +2 -2
  91. package/dist/components/NavigationMenu/NavigationMenuLink.jsx +2 -2
  92. package/dist/components/NavigationMenu/NavigationMenuList.jsx +3 -3
  93. package/dist/components/NavigationMenu/NavigationMenuTrigger.jsx +3 -3
  94. package/dist/components/NavigationMenu/NavigationMenuViewport.jsx +2 -2
  95. package/dist/components/NavigationMenu/index.jsx +4 -4
  96. package/dist/components/Popover/PopoverClose.jsx +2 -2
  97. package/dist/components/Popover/PopoverContent.jsx +2 -2
  98. package/dist/components/Popover/PopoverTrigger.jsx +2 -2
  99. package/dist/components/Popover/index.jsx +2 -2
  100. package/dist/components/Progress/index.d.ts +3 -3
  101. package/dist/components/Progress/index.jsx +2 -2
  102. package/dist/components/RadarChart/index.d.ts +1 -1
  103. package/dist/components/Radio/index.d.ts +1 -1
  104. package/dist/components/Radio/index.jsx +7 -7
  105. package/dist/components/RadioCards/RadioCardsItem.jsx +2 -2
  106. package/dist/components/RadioCards/index.d.ts +1 -1
  107. package/dist/components/RadioCards/index.jsx +4 -4
  108. package/dist/components/RadioGroup/RadioGroupItem.jsx +2 -2
  109. package/dist/components/RadioGroup/index.d.ts +1 -1
  110. package/dist/components/RadioGroup/index.jsx +4 -4
  111. package/dist/components/ScrollArea/index.jsx +4 -4
  112. package/dist/components/SegmentedControl/SegmentedControlItem.jsx +2 -2
  113. package/dist/components/SegmentedControl/index.d.ts +1 -1
  114. package/dist/components/SegmentedControl/index.jsx +4 -4
  115. package/dist/components/Select/index.d.ts +1 -1
  116. package/dist/components/Select/index.jsx +16 -16
  117. package/dist/components/Separator/index.d.ts +1 -1
  118. package/dist/components/Separator/index.jsx +4 -4
  119. package/dist/components/Skeleton/index.d.ts +1 -1
  120. package/dist/components/Skeleton/index.jsx +4 -4
  121. package/dist/components/Slider/index.d.ts +1 -1
  122. package/dist/components/Slider/index.jsx +2 -2
  123. package/dist/components/Spinner/index.d.ts +1 -1
  124. package/dist/components/Spinner/index.jsx +4 -4
  125. package/dist/components/TabNav/index.jsx +6 -6
  126. package/dist/components/Table/index.d.ts +2 -2
  127. package/dist/components/Table/index.jsx +16 -16
  128. package/dist/components/Tabs/index.d.ts +1 -1
  129. package/dist/components/Tabs/index.jsx +10 -10
  130. package/dist/components/TextArea/index.d.ts +3 -3
  131. package/dist/components/TextArea/index.jsx +2 -2
  132. package/dist/components/TextField/index.d.ts +1 -1
  133. package/dist/components/TextField/index.jsx +6 -6
  134. package/dist/components/Toast/ToastActionButton.d.ts +3 -3
  135. package/dist/components/Toast/ToastActionButton.jsx +2 -2
  136. package/dist/components/Toast/ToastDescription.d.ts +1 -1
  137. package/dist/components/Toast/ToastDescription.jsx +4 -4
  138. package/dist/components/Toast/ToastTitle.d.ts +1 -1
  139. package/dist/components/Toast/ToastTitle.jsx +2 -2
  140. package/dist/components/Toast/index.d.ts +3 -3
  141. package/dist/components/Toast/index.jsx +7 -7
  142. package/dist/components/Toggle/ToggleWithText.jsx +3 -3
  143. package/dist/components/Toggle/index.d.ts +3 -3
  144. package/dist/components/Toggle/index.jsx +2 -2
  145. package/dist/components/ToggleGroup/index.d.ts +1 -1
  146. package/dist/components/ToggleGroup/index.jsx +4 -4
  147. package/dist/components/ToggleGroup/toggleGroupItem.jsx +2 -2
  148. package/dist/components/ToggleSwitch/index.d.ts +3 -3
  149. package/dist/components/ToggleSwitch/index.jsx +5 -5
  150. package/dist/components/Tooltip/index.d.ts +1 -1
  151. package/dist/components/Tooltip/index.jsx +10 -10
  152. package/dist/components/index.d.ts +0 -2
  153. package/dist/index.d.ts +0 -5
  154. package/dist/index.js +3 -5
  155. package/dist/stories/Welcome.jsx +19 -19
  156. package/dist/stories/accordion/Accordion.stories.jsx +19 -19
  157. package/dist/stories/alert-dialog/AlertDialog.stories.jsx +14 -14
  158. package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +29 -29
  159. package/dist/stories/avatar/Avatar.stories.jsx +12 -12
  160. package/dist/stories/badge/Badge.stories.jsx +44 -44
  161. package/dist/stories/bubble-chart/BubbleChart.stories.jsx +9 -9
  162. package/dist/stories/button/Button.stories.jsx +34 -34
  163. package/dist/stories/button/IconButton.stories.jsx +14 -14
  164. package/dist/stories/callout/Callout.stories.jsx +107 -107
  165. package/dist/stories/card/Card.stories.jsx +51 -51
  166. package/dist/stories/checkbox/Checkbox.stories.jsx +57 -57
  167. package/dist/stories/checkbox/CheckboxCard.stories.jsx +36 -36
  168. package/dist/stories/checkbox/CheckboxGroup.stories.jsx +73 -73
  169. package/dist/stories/context-menu/ContextMenu.stories.jsx +70 -70
  170. package/dist/stories/data-list/DataList.stories.jsx +102 -102
  171. package/dist/stories/dialog/Dialog.stories.jsx +24 -24
  172. package/dist/stories/doughnut-chart/DoughnutChart.stories.jsx +9 -9
  173. package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +96 -96
  174. package/dist/stories/header/Header.stories.jsx +20 -20
  175. package/dist/stories/hover-card/HoverCard.stories.jsx +28 -28
  176. package/dist/stories/inset/Inset.stories.jsx +16 -16
  177. package/dist/stories/label/Label.stories.jsx +22 -22
  178. package/dist/stories/menubar/Menubar.stories.jsx +38 -38
  179. package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +9 -9
  180. package/dist/stories/navigation-menu/NavigationMenu.stories.jsx +67 -67
  181. package/dist/stories/pie-chart/PieChart.stories.jsx +20 -20
  182. package/dist/stories/popover/Popover.stories.jsx +34 -34
  183. package/dist/stories/progress/Progress.stories.jsx +6 -6
  184. package/dist/stories/radio/Radio.stories.jsx +11 -11
  185. package/dist/stories/radio/RadioCards.stories.jsx +60 -60
  186. package/dist/stories/radio/RadioGroup.stories.jsx +55 -55
  187. package/dist/stories/scroll-area/ScrollArea.stories.jsx +61 -61
  188. package/dist/stories/segmented-control/SegmentedControl.stories.jsx +22 -22
  189. package/dist/stories/select/Select.stories.jsx +62 -62
  190. package/dist/stories/separator/Separator.stories.jsx +25 -25
  191. package/dist/stories/skeleton/Skeleton.stories.jsx +28 -28
  192. package/dist/stories/slider/Slider.stories.jsx +12 -12
  193. package/dist/stories/spinner/Spinner.stories.jsx +26 -26
  194. package/dist/stories/switch/Switch.stories.jsx +12 -12
  195. package/dist/stories/tab-nav/TabNav.stories.jsx +10 -10
  196. package/dist/stories/table/Table.stories.jsx +28 -28
  197. package/dist/stories/tabs/Tabs.stories.jsx +18 -18
  198. package/dist/stories/text/Text.stories.jsx +16 -16
  199. package/dist/stories/textArea/TextArea.stories.jsx +17 -17
  200. package/dist/stories/textfield/TextField.stories.jsx +33 -33
  201. package/dist/stories/toast/Toast.stories.jsx +19 -19
  202. package/dist/stories/toggle/Toggle.stories.jsx +18 -18
  203. package/dist/stories/toggle/ToggleGroup.stories.jsx +34 -34
  204. package/dist/stories/tooltip/Tooltip.stories.jsx +14 -14
  205. package/dist/tsconfig.tsbuildinfo +1 -1
  206. package/package.json +119 -118
@@ -71,72 +71,72 @@ var meta = {
71
71
  export default meta;
72
72
  export var Default = function (_a) {
73
73
  var args = __rest(_a, []);
74
- return (<RadioGroup defaultValue={'1'} name="example" {...args}>
75
- <RadioGroupItem value="1" {...args}>
76
- Default
77
- </RadioGroupItem>
78
- <RadioGroupItem value="2" {...args}>
79
- Comfortable
80
- </RadioGroupItem>
81
- <RadioGroupItem value="3" {...args}>
82
- Compact
83
- </RadioGroupItem>
74
+ return (<RadioGroup defaultValue={'1'} name="example" {...args}>
75
+ <RadioGroupItem value="1" {...args}>
76
+ Default
77
+ </RadioGroupItem>
78
+ <RadioGroupItem value="2" {...args}>
79
+ Comfortable
80
+ </RadioGroupItem>
81
+ <RadioGroupItem value="3" {...args}>
82
+ Compact
83
+ </RadioGroupItem>
84
84
  </RadioGroup>);
85
85
  };
86
86
  export var Size = function (_a) {
87
87
  var args = __rest(_a, []);
88
- return (<div className="flex items-center space-x-4">
89
- {['small', 'medium', 'large'].map(function (size) { return (<RadioGroup key={size} defaultValue={'1'} name={size} {...args} size={size}>
90
- <RadioGroupItem value="1" {...args}>
91
- Default
92
- </RadioGroupItem>
93
- <RadioGroupItem value="2" {...args}>
94
- Comfortable
95
- </RadioGroupItem>
96
- <RadioGroupItem value="3" {...args}>
97
- Compact
98
- </RadioGroupItem>
99
- </RadioGroup>); })}
88
+ return (<div className="flex items-center space-x-4">
89
+ {['small', 'medium', 'large'].map(function (size) { return (<RadioGroup key={size} defaultValue={'1'} name={size} {...args} size={size}>
90
+ <RadioGroupItem value="1" {...args}>
91
+ Default
92
+ </RadioGroupItem>
93
+ <RadioGroupItem value="2" {...args}>
94
+ Comfortable
95
+ </RadioGroupItem>
96
+ <RadioGroupItem value="3" {...args}>
97
+ Compact
98
+ </RadioGroupItem>
99
+ </RadioGroup>); })}
100
100
  </div>);
101
101
  };
102
102
  export var Appearance = function (_a) {
103
103
  var args = __rest(_a, []);
104
- return (<div className="flex items-center space-x-4">
105
- {['classic', 'soft', 'surface'].map(function (appearance) { return (<RadioGroup key={appearance} defaultValue={'1'} name={appearance} {...args} appearance={appearance}>
106
- <RadioGroupItem value="1" {...args}>
107
- Default
108
- </RadioGroupItem>
109
- <RadioGroupItem value="2" {...args}>
110
- Comfortable
111
- </RadioGroupItem>
112
- <RadioGroupItem value="3" {...args}>
113
- Compact
114
- </RadioGroupItem>
115
- </RadioGroup>); })}
104
+ return (<div className="flex items-center space-x-4">
105
+ {['classic', 'soft', 'surface'].map(function (appearance) { return (<RadioGroup key={appearance} defaultValue={'1'} name={appearance} {...args} appearance={appearance}>
106
+ <RadioGroupItem value="1" {...args}>
107
+ Default
108
+ </RadioGroupItem>
109
+ <RadioGroupItem value="2" {...args}>
110
+ Comfortable
111
+ </RadioGroupItem>
112
+ <RadioGroupItem value="3" {...args}>
113
+ Compact
114
+ </RadioGroupItem>
115
+ </RadioGroup>); })}
116
116
  </div>);
117
117
  };
118
118
  export var Disabled = function (_a) {
119
119
  var args = __rest(_a, []);
120
- return (<div className="flex items-center space-x-4">
121
- <div>
122
- <RadioGroup defaultValue={'On'} {...args}>
123
- <RadioGroupItem value="Off" {...args}>
124
- Off
125
- </RadioGroupItem>
126
- <RadioGroupItem value="On" {...args}>
127
- On
128
- </RadioGroupItem>
129
- </RadioGroup>
130
- </div>
131
- <div>
132
- <RadioGroup defaultValue={'On'} {...args}>
133
- <RadioGroupItem value="Off" {...args} disabled>
134
- Off
135
- </RadioGroupItem>
136
- <RadioGroupItem value="On" {...args} disabled>
137
- On
138
- </RadioGroupItem>
139
- </RadioGroup>
140
- </div>
120
+ return (<div className="flex items-center space-x-4">
121
+ <div>
122
+ <RadioGroup defaultValue={'On'} {...args}>
123
+ <RadioGroupItem value="Off" {...args}>
124
+ Off
125
+ </RadioGroupItem>
126
+ <RadioGroupItem value="On" {...args}>
127
+ On
128
+ </RadioGroupItem>
129
+ </RadioGroup>
130
+ </div>
131
+ <div>
132
+ <RadioGroup defaultValue={'On'} {...args}>
133
+ <RadioGroupItem value="Off" {...args} disabled>
134
+ Off
135
+ </RadioGroupItem>
136
+ <RadioGroupItem value="On" {...args} disabled>
137
+ On
138
+ </RadioGroupItem>
139
+ </RadioGroup>
140
+ </div>
141
141
  </div>);
142
142
  };
@@ -54,70 +54,70 @@ var meta = {
54
54
  export default meta;
55
55
  export var Default = function (_a) {
56
56
  var args = __rest(_a, []);
57
- return (<ScrollArea type="always" scrollbars="vertical" className="h-[180px]" {...args}>
58
- <div className="p-2 pr-8">
59
- <Header size={'4'} mb={'2'} trim={'start'}>
60
- Principles of the typographic craft
61
- </Header>
62
- <div className="flex flex-col gap-4">
63
- <Text as="p">
64
- Three fundamental aspects of typography are legibility, readability, and aesthetics.
65
- Although in a non-technical sense “legible” and “readable” are often used synonymously,
66
- typographically they are separate but related concepts.
67
- </Text>
68
-
69
- <Text as="p">
70
- Legibility describes how easily individual characters can be distinguished from one
71
- another. It is described by Walter Tracy as “the quality of being decipherable and
72
- recognisable”. For instance, if a “b” and an “h”, or a “3” and an “8”, are difficult to
73
- distinguish at small sizes, this is a problem of legibility.
74
- </Text>
75
-
76
- <Text as="p">
77
- Typographers are concerned with legibility insofar as it is their job to select the
78
- correct font to use. Brush Script is an example of a font containing many characters that
79
- might be difficult to distinguish. The selection of cases influences the legibility of
80
- typography because using only uppercase letters (all-caps) reduces legibility.
81
- </Text>
82
- </div>
83
- </div>
57
+ return (<ScrollArea type="always" scrollbars="vertical" className="h-[180px]" {...args}>
58
+ <div className="p-2 pr-8">
59
+ <Header size={'4'} mb={'2'} trim={'start'}>
60
+ Principles of the typographic craft
61
+ </Header>
62
+ <div className="flex flex-col gap-4">
63
+ <Text as="p">
64
+ Three fundamental aspects of typography are legibility, readability, and aesthetics.
65
+ Although in a non-technical sense “legible” and “readable” are often used synonymously,
66
+ typographically they are separate but related concepts.
67
+ </Text>
68
+
69
+ <Text as="p">
70
+ Legibility describes how easily individual characters can be distinguished from one
71
+ another. It is described by Walter Tracy as “the quality of being decipherable and
72
+ recognisable”. For instance, if a “b” and an “h”, or a “3” and an “8”, are difficult to
73
+ distinguish at small sizes, this is a problem of legibility.
74
+ </Text>
75
+
76
+ <Text as="p">
77
+ Typographers are concerned with legibility insofar as it is their job to select the
78
+ correct font to use. Brush Script is an example of a font containing many characters that
79
+ might be difficult to distinguish. The selection of cases influences the legibility of
80
+ typography because using only uppercase letters (all-caps) reduces legibility.
81
+ </Text>
82
+ </div>
83
+ </div>
84
84
  </ScrollArea>);
85
85
  };
86
86
  export var Type = function (_a) {
87
87
  var args = __rest(_a, []);
88
- return (<div className="grid grid-cols-2 gap-2">
89
- <ScrollArea type="always" scrollbars="vertical" className="h-[150px]" {...args}>
90
- <div className="flex flex-col p-2 pr-8 gap-4">
91
- <Text size="2">
92
- Three fundamental aspects of typography are legibility, readability, and aesthetics.
93
- Although in a non-technical sense legible and readable are often used synonymously,
94
- typographically they are separate but related concepts.
95
- </Text>
96
-
97
- <Text size="2">
98
- Legibility describes how easily individual characters can be distinguished from one
99
- another. It is described by Walter Tracy as the quality of being decipherable and
100
- recognisable. For instance, if a b and an h, or a 3 and an 8, are difficult to distinguish
101
- at small sizes, this is a problem of legibility.
102
- </Text>
103
- </div>
104
- </ScrollArea>
105
-
106
- <ScrollArea type="always" scrollbars="horizontal" className="h-[150px]" {...args}>
107
- <div className="gap-4 p-2 w-[700px]">
108
- <Text size="2">
109
- Three fundamental aspects of typography are legibility, readability, and aesthetics.
110
- Although in a non-technical sense legible and readable are often used synonymously,
111
- typographically they are separate but related concepts.
112
- </Text>
113
-
114
- <Text size="2">
115
- Legibility describes how easily individual characters can be distinguished from one
116
- another. It is described by Walter Tracy as the quality of being decipherable and
117
- recognisable. For instance, if a b and an h, or a 3 and an 8, are difficult to distinguish
118
- at small sizes, this is a problem of legibility.
119
- </Text>
120
- </div>
121
- </ScrollArea>
88
+ return (<div className="grid grid-cols-2 gap-2">
89
+ <ScrollArea type="always" scrollbars="vertical" className="h-[150px]" {...args}>
90
+ <div className="flex flex-col p-2 pr-8 gap-4">
91
+ <Text size="2">
92
+ Three fundamental aspects of typography are legibility, readability, and aesthetics.
93
+ Although in a non-technical sense legible and readable are often used synonymously,
94
+ typographically they are separate but related concepts.
95
+ </Text>
96
+
97
+ <Text size="2">
98
+ Legibility describes how easily individual characters can be distinguished from one
99
+ another. It is described by Walter Tracy as the quality of being decipherable and
100
+ recognisable. For instance, if a b and an h, or a 3 and an 8, are difficult to distinguish
101
+ at small sizes, this is a problem of legibility.
102
+ </Text>
103
+ </div>
104
+ </ScrollArea>
105
+
106
+ <ScrollArea type="always" scrollbars="horizontal" className="h-[150px]" {...args}>
107
+ <div className="gap-4 p-2 w-[700px]">
108
+ <Text size="2">
109
+ Three fundamental aspects of typography are legibility, readability, and aesthetics.
110
+ Although in a non-technical sense legible and readable are often used synonymously,
111
+ typographically they are separate but related concepts.
112
+ </Text>
113
+
114
+ <Text size="2">
115
+ Legibility describes how easily individual characters can be distinguished from one
116
+ another. It is described by Walter Tracy as the quality of being decipherable and
117
+ recognisable. For instance, if a b and an h, or a 3 and an 8, are difficult to distinguish
118
+ at small sizes, this is a problem of legibility.
119
+ </Text>
120
+ </div>
121
+ </ScrollArea>
122
122
  </div>);
123
123
  };
@@ -63,39 +63,39 @@ var meta = {
63
63
  export default meta;
64
64
  export var Default = function (_a) {
65
65
  var args = __rest(_a, []);
66
- return (<SegmentedControl {...args} defaultValue={'inbox'}>
67
- <SegmentedControlItem value={'inbox'}>Inbox</SegmentedControlItem>
68
- <SegmentedControlItem value={'drafts'}>Drafts</SegmentedControlItem>
69
- <SegmentedControlItem value={'sent'}>Sent</SegmentedControlItem>
66
+ return (<SegmentedControl {...args} defaultValue={'inbox'}>
67
+ <SegmentedControlItem value={'inbox'}>Inbox</SegmentedControlItem>
68
+ <SegmentedControlItem value={'drafts'}>Drafts</SegmentedControlItem>
69
+ <SegmentedControlItem value={'sent'}>Sent</SegmentedControlItem>
70
70
  </SegmentedControl>);
71
71
  };
72
72
  export var Size = function (_a) {
73
73
  var args = __rest(_a, []);
74
- return (<div className="flex flex-col space-y-3">
75
- {['small', 'medium', 'large'].map(function (size) { return (<SegmentedControl key={size} defaultValue={'inbox'} {...args} size={size}>
76
- <SegmentedControlItem value={'inbox'}>Inbox</SegmentedControlItem>
77
- <SegmentedControlItem value={'drafts'}>Drafts</SegmentedControlItem>
78
- <SegmentedControlItem value={'sent'}>Sent</SegmentedControlItem>
79
- </SegmentedControl>); })}
74
+ return (<div className="flex flex-col space-y-3">
75
+ {['small', 'medium', 'large'].map(function (size) { return (<SegmentedControl key={size} defaultValue={'inbox'} {...args} size={size}>
76
+ <SegmentedControlItem value={'inbox'}>Inbox</SegmentedControlItem>
77
+ <SegmentedControlItem value={'drafts'}>Drafts</SegmentedControlItem>
78
+ <SegmentedControlItem value={'sent'}>Sent</SegmentedControlItem>
79
+ </SegmentedControl>); })}
80
80
  </div>);
81
81
  };
82
82
  export var Radius = function (_a) {
83
83
  var args = __rest(_a, []);
84
- return (<div className="flex flex-col space-y-3">
85
- {radiusOptions.map(function (radius) { return (<SegmentedControl key={radius} defaultValue={'inbox'} {...args} radius={radius}>
86
- <SegmentedControlItem value={'inbox'}>Inbox</SegmentedControlItem>
87
- <SegmentedControlItem value={'drafts'}>Drafts</SegmentedControlItem>
88
- <SegmentedControlItem value={'sent'}>Sent</SegmentedControlItem>
89
- </SegmentedControl>); })}
84
+ return (<div className="flex flex-col space-y-3">
85
+ {radiusOptions.map(function (radius) { return (<SegmentedControl key={radius} defaultValue={'inbox'} {...args} radius={radius}>
86
+ <SegmentedControlItem value={'inbox'}>Inbox</SegmentedControlItem>
87
+ <SegmentedControlItem value={'drafts'}>Drafts</SegmentedControlItem>
88
+ <SegmentedControlItem value={'sent'}>Sent</SegmentedControlItem>
89
+ </SegmentedControl>); })}
90
90
  </div>);
91
91
  };
92
92
  export var Variant = function (_a) {
93
93
  var args = __rest(_a, []);
94
- return (<div className="flex flex-col space-y-3">
95
- {['surface', 'classic'].map(function (appearance) { return (<SegmentedControl key={appearance} defaultValue={'inbox'} {...args} appearance={appearance}>
96
- <SegmentedControlItem value={'inbox'}>Inbox</SegmentedControlItem>
97
- <SegmentedControlItem value={'drafts'}>Drafts</SegmentedControlItem>
98
- <SegmentedControlItem value={'sent'}>Sent</SegmentedControlItem>
99
- </SegmentedControl>); })}
94
+ return (<div className="flex flex-col space-y-3">
95
+ {['surface', 'classic'].map(function (appearance) { return (<SegmentedControl key={appearance} defaultValue={'inbox'} {...args} appearance={appearance}>
96
+ <SegmentedControlItem value={'inbox'}>Inbox</SegmentedControlItem>
97
+ <SegmentedControlItem value={'drafts'}>Drafts</SegmentedControlItem>
98
+ <SegmentedControlItem value={'sent'}>Sent</SegmentedControlItem>
99
+ </SegmentedControl>); })}
100
100
  </div>);
101
101
  };
@@ -67,83 +67,83 @@ var meta = {
67
67
  export default meta;
68
68
  export var Default = function (_a) {
69
69
  var args = __rest(_a, []);
70
- return (<Select {...args}>
71
- <SelectTrigger {...args} placeholder="Select..."/>
72
- <SelectContent {...args}>
73
- <SelectItem value="apple" {...args}>
74
- Apple
75
- </SelectItem>
76
- <SelectItem value="orange" {...args}>
77
- Orange
78
- </SelectItem>
79
- </SelectContent>
70
+ return (<Select {...args}>
71
+ <SelectTrigger {...args} placeholder="Select..."/>
72
+ <SelectContent {...args}>
73
+ <SelectItem value="apple" {...args}>
74
+ Apple
75
+ </SelectItem>
76
+ <SelectItem value="orange" {...args}>
77
+ Orange
78
+ </SelectItem>
79
+ </SelectContent>
80
80
  </Select>);
81
81
  };
82
82
  export var Size = function (_a) {
83
83
  var args = __rest(_a, []);
84
- return (<div className="flex gap-3">
85
- {['small', 'medium', 'large'].map(function (size) { return (<Select key={size} size={size} {...args}>
86
- <SelectTrigger {...args} placeholder="Select..."/>
87
- <SelectContent {...args}>
88
- <SelectItem value="apple" {...args}>
89
- Apple
90
- </SelectItem>
91
- <SelectItem value="orange" {...args}>
92
- Orange
93
- </SelectItem>
94
- </SelectContent>
95
- </Select>); })}
84
+ return (<div className="flex gap-3">
85
+ {['small', 'medium', 'large'].map(function (size) { return (<Select key={size} size={size} {...args}>
86
+ <SelectTrigger {...args} placeholder="Select..."/>
87
+ <SelectContent {...args}>
88
+ <SelectItem value="apple" {...args}>
89
+ Apple
90
+ </SelectItem>
91
+ <SelectItem value="orange" {...args}>
92
+ Orange
93
+ </SelectItem>
94
+ </SelectContent>
95
+ </Select>); })}
96
96
  </div>);
97
97
  };
98
98
  export var Appearance = function (_a) {
99
99
  var args = __rest(_a, []);
100
- return (<div className="flex gap-3">
101
- {['classic', 'surface', 'soft', 'ghost'].map(function (appearance) { return (<Select key={appearance} {...args}>
102
- <SelectTrigger appearance={appearance} {...args} placeholder="Select..."/>
103
- <SelectContent {...args}>
104
- <SelectItem value="apple" {...args}>
105
- Apple
106
- </SelectItem>
107
- <SelectItem value="orange" {...args}>
108
- Orange
109
- </SelectItem>
110
- </SelectContent>
111
- </Select>); })}
100
+ return (<div className="flex gap-3">
101
+ {['classic', 'surface', 'soft', 'ghost'].map(function (appearance) { return (<Select key={appearance} {...args}>
102
+ <SelectTrigger appearance={appearance} {...args} placeholder="Select..."/>
103
+ <SelectContent {...args}>
104
+ <SelectItem value="apple" {...args}>
105
+ Apple
106
+ </SelectItem>
107
+ <SelectItem value="orange" {...args}>
108
+ Orange
109
+ </SelectItem>
110
+ </SelectContent>
111
+ </Select>); })}
112
112
  </div>);
113
113
  };
114
114
  export var Radius = function (_a) {
115
115
  var args = __rest(_a, []);
116
- return (<div className="flex gap-3">
117
- {radiusOptions.map(function (radius) { return (<Select key={radius} {...args}>
118
- <SelectTrigger radius={radius} {...args} placeholder="Select..."/>
119
- <SelectContent {...args}>
120
- <SelectItem value="apple" {...args}>
121
- Apple
122
- </SelectItem>
123
- <SelectItem value="orange" {...args}>
124
- Orange
125
- </SelectItem>
126
- </SelectContent>
127
- </Select>); })}
116
+ return (<div className="flex gap-3">
117
+ {radiusOptions.map(function (radius) { return (<Select key={radius} {...args}>
118
+ <SelectTrigger radius={radius} {...args} placeholder="Select..."/>
119
+ <SelectContent {...args}>
120
+ <SelectItem value="apple" {...args}>
121
+ Apple
122
+ </SelectItem>
123
+ <SelectItem value="orange" {...args}>
124
+ Orange
125
+ </SelectItem>
126
+ </SelectContent>
127
+ </Select>); })}
128
128
  </div>);
129
129
  };
130
130
  export var WithIcon = function (_a) {
131
131
  var args = __rest(_a, []);
132
- return (<Select defaultValue="dark" {...args}>
133
- <SelectTrigger {...args}></SelectTrigger>
134
- <SelectContent {...args}>
135
- <SelectItem value="dark" {...args}>
136
- <div className="flex gap-2 items-center">
137
- <MoonIcon />
138
- <label>Dark</label>
139
- </div>
140
- </SelectItem>
141
- <SelectItem value="light" {...args}>
142
- <div className="flex gap-2 items-center">
143
- <SunIcon />
144
- <label>Light</label>
145
- </div>
146
- </SelectItem>
147
- </SelectContent>
132
+ return (<Select defaultValue="dark" {...args}>
133
+ <SelectTrigger {...args}></SelectTrigger>
134
+ <SelectContent {...args}>
135
+ <SelectItem value="dark" {...args}>
136
+ <div className="flex gap-2 items-center">
137
+ <MoonIcon />
138
+ <label>Dark</label>
139
+ </div>
140
+ </SelectItem>
141
+ <SelectItem value="light" {...args}>
142
+ <div className="flex gap-2 items-center">
143
+ <SunIcon />
144
+ <label>Light</label>
145
+ </div>
146
+ </SelectItem>
147
+ </SelectContent>
148
148
  </Select>);
149
149
  };
@@ -65,42 +65,42 @@ var meta = {
65
65
  export default meta;
66
66
  export var Default = function (_a) {
67
67
  var args = __rest(_a, []);
68
- return (<div className="text-slate-12 dark:text-slate-1 w-full max-w-[300px] mx-[15px]">
69
- Tools for building high-quality, accessible UI.
70
- <Separator my="3" size="fill-large" {...args}/>
71
- <div className="flex gap-3 text-slate-12 dark:text-slate-1 ">
72
- Themes
73
- <Separator orientation="vertical" {...args}/>
74
- Primitives
75
- <Separator orientation="vertical" {...args}/>
76
- Icons
77
- <Separator orientation="vertical" {...args}/>
78
- Colors
79
- </div>
68
+ return (<div className="text-slate-12 dark:text-slate-1 w-full max-w-[300px] mx-[15px]">
69
+ Tools for building high-quality, accessible UI.
70
+ <Separator my="3" size="fill-large" {...args}/>
71
+ <div className="flex gap-3 text-slate-12 dark:text-slate-1 ">
72
+ Themes
73
+ <Separator orientation="vertical" {...args}/>
74
+ Primitives
75
+ <Separator orientation="vertical" {...args}/>
76
+ Icons
77
+ <Separator orientation="vertical" {...args}/>
78
+ Colors
79
+ </div>
80
80
  </div>);
81
81
  };
82
82
  export var Orientation = function (_a) {
83
83
  var args = __rest(_a, []);
84
- return (<div className="grid grid-cols-2 gap-2">
85
- <Separator orientation={'horizontal'} {...args}/>
86
- <Separator orientation={'vertical'} {...args}/>
84
+ return (<div className="grid grid-cols-2 gap-2">
85
+ <Separator orientation={'horizontal'} {...args}/>
86
+ <Separator orientation={'vertical'} {...args}/>
87
87
  </div>);
88
88
  };
89
89
  export var HorizontalSize = function (_a) {
90
90
  var args = __rest(_a, []);
91
- return (<div className="w-96 grid gap-4">
92
- <Separator orientation={'horizontal'} size={'small'} {...args}/>
93
- <Separator orientation={'horizontal'} size={'medium'} {...args}/>
94
- <Separator orientation={'horizontal'} size={'large'} {...args}/>
95
- <Separator orientation={'horizontal'} size={'fill-large'} {...args}/>
91
+ return (<div className="w-96 grid gap-4">
92
+ <Separator orientation={'horizontal'} size={'small'} {...args}/>
93
+ <Separator orientation={'horizontal'} size={'medium'} {...args}/>
94
+ <Separator orientation={'horizontal'} size={'large'} {...args}/>
95
+ <Separator orientation={'horizontal'} size={'fill-large'} {...args}/>
96
96
  </div>);
97
97
  };
98
98
  export var VerticalSize = function (_a) {
99
99
  var args = __rest(_a, []);
100
- return (<div className="h-60 grid grid-cols-4 gap-4">
101
- <Separator orientation={'vertical'} size={'small'} {...args}/>
102
- <Separator orientation={'vertical'} size={'medium'} {...args}/>
103
- <Separator orientation={'vertical'} size={'large'} {...args}/>
104
- <Separator orientation={'vertical'} size={'fill-large'} {...args}/>
100
+ return (<div className="h-60 grid grid-cols-4 gap-4">
101
+ <Separator orientation={'vertical'} size={'small'} {...args}/>
102
+ <Separator orientation={'vertical'} size={'medium'} {...args}/>
103
+ <Separator orientation={'vertical'} size={'large'} {...args}/>
104
+ <Separator orientation={'vertical'} size={'fill-large'} {...args}/>
105
105
  </div>);
106
106
  };
@@ -71,49 +71,49 @@ var meta = {
71
71
  export default meta;
72
72
  export var Default = function (_a) {
73
73
  var args = __rest(_a, []);
74
- return (<Skeleton {...args}>
75
- <div>Component</div>
74
+ return (<Skeleton {...args}>
75
+ <div>Component</div>
76
76
  </Skeleton>);
77
77
  };
78
78
  export var Loading = function (_a) {
79
79
  var args = __rest(_a, []);
80
- return (<div className="">
81
- <Skeleton loading={true} {...args}>
82
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque felis tellus, efficitur
83
- id convallis a, viverra eget libero. Nam magna erat, fringilla sed commodo sed, aliquet nec
84
- magna.
85
- </Skeleton>
86
- <Skeleton loading={false} {...args}>
87
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque felis tellus, efficitur
88
- id convallis a, viverra eget libero. Nam magna erat, fringilla sed commodo sed, aliquet nec
89
- magna.
90
- </Skeleton>
80
+ return (<div className="">
81
+ <Skeleton loading={true} {...args}>
82
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque felis tellus, efficitur
83
+ id convallis a, viverra eget libero. Nam magna erat, fringilla sed commodo sed, aliquet nec
84
+ magna.
85
+ </Skeleton>
86
+ <Skeleton loading={false} {...args}>
87
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque felis tellus, efficitur
88
+ id convallis a, viverra eget libero. Nam magna erat, fringilla sed commodo sed, aliquet nec
89
+ magna.
90
+ </Skeleton>
91
91
  </div>);
92
92
  };
93
93
  export var WithChildren = function (_a) {
94
94
  var args = __rest(_a, []);
95
- return (<div className="grid gap-4 grid-cols-2">
96
- <Skeleton loading={true}>
97
- <ToggleSwitch />
98
- </Skeleton>
99
- <Skeleton loading={false}>
100
- <ToggleSwitch />
101
- </Skeleton>
95
+ return (<div className="grid gap-4 grid-cols-2">
96
+ <Skeleton loading={true}>
97
+ <ToggleSwitch />
98
+ </Skeleton>
99
+ <Skeleton loading={false}>
100
+ <ToggleSwitch />
101
+ </Skeleton>
102
102
  </div>);
103
103
  };
104
104
  export var Radius = function (_a) {
105
105
  var args = __rest(_a, []);
106
- return (<div className="grid gap-5">
107
- {radiusOptions.map(function (radius) { return (<div key={radius}>
108
- <Skeleton loading={true} radius={radius} {...args}>
109
- <div>Component</div>
110
- </Skeleton>
111
- </div>); })}
106
+ return (<div className="grid gap-5">
107
+ {radiusOptions.map(function (radius) { return (<div key={radius}>
108
+ <Skeleton loading={true} radius={radius} {...args}>
109
+ <div>Component</div>
110
+ </Skeleton>
111
+ </div>); })}
112
112
  </div>);
113
113
  };
114
114
  export var Size = function (_a) {
115
115
  var args = __rest(_a, []);
116
- return (<div className="">
117
- <Skeleton loading={true} width="48px" height="48px" {...args}/>
116
+ return (<div className="">
117
+ <Skeleton loading={true} width="48px" height="48px" {...args}/>
118
118
  </div>);
119
119
  };