hlmnhkl-ui 0.20.2 → 0.21.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hlmnhkl-ui",
3
- "version": "0.20.2",
3
+ "version": "0.21.1",
4
4
  "description": "React components in a monochrome style. Copy them into your app with npx hlmnhkl-ui add <name>.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://ui.hlmnhkl.my",
@@ -3,12 +3,15 @@
3
3
  "AudioPlayer",
4
4
  "BottomTabBar",
5
5
  "Calendar",
6
+ "CalendarHeatmap",
6
7
  "Carousel",
7
8
  "Chart",
8
9
  "ChatThread",
10
+ "ColorPicker",
9
11
  "Combobox",
10
12
  "CommandPalette",
11
13
  "CommentThread",
14
+ "CompareSlider",
12
15
  "ContextMenu",
13
16
  "Countdown",
14
17
  "CurrencyInput",
@@ -16,14 +19,17 @@
16
19
  "DateRangePicker",
17
20
  "DescriptionList",
18
21
  "Drawer",
22
+ "EmojiPicker",
19
23
  "FileUpload",
20
24
  "HoverCard",
21
25
  "IcInput",
22
26
  "Image",
27
+ "ImageCropper",
23
28
  "InlineEdit",
24
29
  "KanbanBoard",
25
30
  "Lightbox",
26
31
  "Marquee",
32
+ "MasonryGrid",
27
33
  "MentionInput",
28
34
  "Menubar",
29
35
  "MultiSelect",
@@ -33,6 +39,7 @@
33
39
  "PhoneInput",
34
40
  "PinInput",
35
41
  "ProgressRing",
42
+ "PullToRefresh",
36
43
  "QrCode",
37
44
  "RangeSlider",
38
45
  "Rating",
@@ -42,9 +49,12 @@
42
49
  "RichTextEditor",
43
50
  "Route",
44
51
  "Sidebar",
52
+ "SignaturePad",
53
+ "SortableList",
45
54
  "Sparkline",
46
55
  "Stat",
47
56
  "Stepper",
57
+ "SwipeActions",
48
58
  "TagInput",
49
59
  "TimePicker",
50
60
  "Timeline",
@@ -52,5 +62,7 @@
52
62
  "Toolbar",
53
63
  "Tour",
54
64
  "TreeView",
55
- "VideoPlayer"
65
+ "VideoPlayer",
66
+ "VirtualList",
67
+ "WeekSchedule"
56
68
  ]
@@ -100,6 +100,7 @@ export const TrashIcon = (p: IconProps) => (
100
100
  </Svg>
101
101
  )
102
102
  export const EditIcon = (p: IconProps) => <Svg {...p}><path d="M4 20h4L19 9l-4-4L4 16v4z" /></Svg>
103
+ export const UndoIcon = (p: IconProps) => <Svg {...p}><path d="M9 14L4 9l5-5M4 9h10.5a5.5 5.5 0 0 1 0 11H11" /></Svg>
103
104
  export const ShareIcon = (p: IconProps) => (
104
105
  <Svg {...p}>
105
106
  <path d="M12 15V4M8 8l4-4 4 4" />
@@ -175,3 +176,8 @@ export const RetryIcon = (p: IconProps) => (
175
176
  <path d="M19.5 4.5v4h-4" />
176
177
  </Svg>
177
178
  )
179
+ export const GripIcon = (p: IconProps) => (
180
+ <Svg {...p}>
181
+ <path d="M5 9h14M5 15h14" />
182
+ </Svg>
183
+ )
package/src/tokens.css CHANGED
@@ -320,6 +320,20 @@
320
320
  /* How far each row tilts per row away from the middle, so a wheel reads as a drum. */
321
321
  --hl-wheel-tilt: 18deg;
322
322
  --hl-wheel-w: 64px;
323
+ /* CalendarHeatmap: one day's square, the gap, the weekday column, and four shades as a share of the text colour */
324
+ --hl-heatmap-cell: 12px;
325
+ --hl-heatmap-gap: 3px;
326
+ --hl-heatmap-label: 32px;
327
+ --hl-heatmap-1: 22%;
328
+ --hl-heatmap-2: 45%;
329
+ --hl-heatmap-3: 70%;
330
+ --hl-heatmap-4: 100%;
331
+ /* WeekSchedule: one hour's height, the time column, and the width below which it shows one day at a time */
332
+ --hl-schedule-hour: 56px;
333
+ --hl-schedule-gutter: 56px;
334
+ --hl-schedule-min-w: 520px;
335
+ /* How far a later, overlapping event steps in, so the one under it keeps its title in view */
336
+ --hl-schedule-indent: 16px;
323
337
 
324
338
  /* Smarter inputs */
325
339
  --hl-pin-w: 44px;
@@ -329,6 +343,15 @@
329
343
  --hl-number-w: 168px;
330
344
  --hl-motion-repeat-delay: 400ms;
331
345
  --hl-motion-repeat: 70ms;
346
+ /* Colour picker. White and black are colour maths, so they stay pure in both themes. */
347
+ --hl-picker-area-h: 168px;
348
+ --hl-picker-hue-h: 12px;
349
+ --hl-swatch: 28px;
350
+ --hl-picker-white: #ffffff;
351
+ --hl-picker-black: #000000;
352
+ /* Signature pad: its height, and the ink's base width (a pen's pressure makes it thinner or bolder) */
353
+ --hl-signature-h: 180px;
354
+ --hl-ink-w: 2.5px;
332
355
 
333
356
  /* Media */
334
357
  --hl-blur: 16px;
@@ -498,4 +521,8 @@
498
521
  /* Countdown: min width of one number column */
499
522
  --hl-countdown-cell: 72px;
500
523
  --hl-countdown-cell-sm: 52px;
524
+
525
+ /* Touch lists: one swipe action's width, and how far a pull must go before it refreshes */
526
+ --hl-swipe-action-w: 80px;
527
+ --hl-pull-distance: 72px;
501
528
  }