@leef-l/macos-ui-kit 0.0.0-stage → 0.1.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/README.md +215 -2
- package/dist/assets/Inter Font License.txt +93 -0
- package/dist/assets/Inter-Medium.ttf +0 -0
- package/dist/component.d.ts +47 -0
- package/dist/controls/badge.d.ts +27 -0
- package/dist/controls/button.d.ts +41 -0
- package/dist/controls/checkbox.d.ts +40 -0
- package/dist/controls/combobox.d.ts +105 -0
- package/dist/controls/datepicker.d.ts +42 -0
- package/dist/controls/disclosure.d.ts +40 -0
- package/dist/controls/numberfield.d.ts +60 -0
- package/dist/controls/progress.d.ts +33 -0
- package/dist/controls/segmented.d.ts +64 -0
- package/dist/controls/select.d.ts +42 -0
- package/dist/controls/slider.d.ts +49 -0
- package/dist/controls/spinner.d.ts +24 -0
- package/dist/controls/splitview.d.ts +76 -0
- package/dist/controls/switch.d.ts +47 -0
- package/dist/controls/table.d.ts +103 -0
- package/dist/controls/textarea.d.ts +49 -0
- package/dist/controls/textfield.d.ts +63 -0
- package/dist/dom.d.ts +35 -0
- package/dist/index.d.ts +85 -0
- package/dist/index.js +2053 -0
- package/dist/index.js.map +1 -0
- package/dist/layout/sidebar.d.ts +47 -0
- package/dist/layout/statusbar.d.ts +30 -0
- package/dist/layout/tabview.d.ts +74 -0
- package/dist/layout/titlebar.d.ts +49 -0
- package/dist/layout/toolbar.d.ts +54 -0
- package/dist/layout/traffic-lights.d.ts +37 -0
- package/dist/macos-ui-kit.css +2 -0
- package/dist/macos-ui-kit.iife.js +2 -0
- package/dist/macos-ui-kit.iife.js.map +1 -0
- package/dist/mobile/shell.d.ts +59 -0
- package/dist/overlay.d.ts +41 -0
- package/dist/overlays/dialog.d.ts +46 -0
- package/dist/overlays/menu.d.ts +58 -0
- package/dist/overlays/popover.d.ts +90 -0
- package/dist/overlays/sheet.d.ts +56 -0
- package/dist/overlays/toast.d.ts +37 -0
- package/dist/overlays/tooltip.d.ts +48 -0
- package/dist/style.css.d.ts +2 -0
- package/dist/theme.d.ts +100 -0
- package/package.json +55 -4
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* macOS UI Kit — public surface.
|
|
3
|
+
*
|
|
4
|
+
* The foundation stylesheets are imported here as a side effect, before any
|
|
5
|
+
* component: every component stylesheet reads `--mac-*` custom properties, and a
|
|
6
|
+
* variable that is never declared resolves to nothing, which silently strips an
|
|
7
|
+
* entire design system down to unstyled boxes.
|
|
8
|
+
*
|
|
9
|
+
* Relying on the *app* to import tokens first would make the kit fragile — any
|
|
10
|
+
* other entry point (a test page, a second window, a component demo) would get
|
|
11
|
+
* broken styling. Importing them here means `import {...} from "./ui"` is always
|
|
12
|
+
* sufficient.
|
|
13
|
+
*/
|
|
14
|
+
import "./tokens.css";
|
|
15
|
+
import "./base.css";
|
|
16
|
+
import "./fonts.css";
|
|
17
|
+
import "./scrollbars.css";
|
|
18
|
+
import "./touch.css";
|
|
19
|
+
export { Component } from "./component";
|
|
20
|
+
export { el, append, clear, svgIcon, rafThrottle, uid } from "./dom";
|
|
21
|
+
export type { Child, Attrs } from "./dom";
|
|
22
|
+
export { positionOverlay, trackOverlay, nextZIndex, focusableWithin, trapFocus, } from "./overlay";
|
|
23
|
+
export type { Placement, PositionOptions } from "./overlay";
|
|
24
|
+
export { ThemeManager, themeManager, setDensity, getDensity, BUILTIN_THEMES } from "./theme";
|
|
25
|
+
export type { ThemeDefinition, Appearance } from "./theme";
|
|
26
|
+
export { Button } from "./controls/button";
|
|
27
|
+
export type { ButtonOptions, ButtonVariant, ButtonSize } from "./controls/button";
|
|
28
|
+
export { TextField } from "./controls/textfield";
|
|
29
|
+
export type { TextFieldOptions } from "./controls/textfield";
|
|
30
|
+
export { NumberField } from "./controls/numberfield";
|
|
31
|
+
export type { NumberFieldOptions } from "./controls/numberfield";
|
|
32
|
+
export { Slider } from "./controls/slider";
|
|
33
|
+
export type { SliderOptions } from "./controls/slider";
|
|
34
|
+
export { Progress } from "./controls/progress";
|
|
35
|
+
export type { ProgressOptions } from "./controls/progress";
|
|
36
|
+
export { Badge } from "./controls/badge";
|
|
37
|
+
export type { BadgeOptions, BadgeVariant } from "./controls/badge";
|
|
38
|
+
export { Switch } from "./controls/switch";
|
|
39
|
+
export type { SwitchOptions } from "./controls/switch";
|
|
40
|
+
export { Checkbox } from "./controls/checkbox";
|
|
41
|
+
export type { CheckboxOptions } from "./controls/checkbox";
|
|
42
|
+
export { SegmentedControl } from "./controls/segmented";
|
|
43
|
+
export type { SegmentedControlOptions, SegmentedOption } from "./controls/segmented";
|
|
44
|
+
export { Select } from "./controls/select";
|
|
45
|
+
export type { SelectOptions, SelectOption } from "./controls/select";
|
|
46
|
+
export { Spinner } from "./controls/spinner";
|
|
47
|
+
export type { SpinnerOptions, SpinnerSize } from "./controls/spinner";
|
|
48
|
+
export { TextArea } from "./controls/textarea";
|
|
49
|
+
export type { TextAreaOptions } from "./controls/textarea";
|
|
50
|
+
export { Disclosure } from "./controls/disclosure";
|
|
51
|
+
export type { DisclosureOptions } from "./controls/disclosure";
|
|
52
|
+
export { Table } from "./controls/table";
|
|
53
|
+
export type { TableOptions, TableColumn } from "./controls/table";
|
|
54
|
+
export { SplitView } from "./controls/splitview";
|
|
55
|
+
export type { SplitViewOptions } from "./controls/splitview";
|
|
56
|
+
export { ComboBox } from "./controls/combobox";
|
|
57
|
+
export type { ComboBoxOptions, ComboBoxOption } from "./controls/combobox";
|
|
58
|
+
export { DatePicker } from "./controls/datepicker";
|
|
59
|
+
export type { DatePickerOptions } from "./controls/datepicker";
|
|
60
|
+
export { TitleBar } from "./layout/titlebar";
|
|
61
|
+
export type { TitleBarOptions } from "./layout/titlebar";
|
|
62
|
+
export { TrafficLights } from "./layout/traffic-lights";
|
|
63
|
+
export type { TrafficLightsOptions } from "./layout/traffic-lights";
|
|
64
|
+
export { Sidebar } from "./layout/sidebar";
|
|
65
|
+
export type { SidebarOptions, SidebarItem } from "./layout/sidebar";
|
|
66
|
+
export { StatusBar } from "./layout/statusbar";
|
|
67
|
+
export type { StatusBarOptions, StatusDotState } from "./layout/statusbar";
|
|
68
|
+
export { Toolbar } from "./layout/toolbar";
|
|
69
|
+
export type { ToolbarOptions } from "./layout/toolbar";
|
|
70
|
+
export { TabView } from "./layout/tabview";
|
|
71
|
+
export type { TabViewOptions, TabItem } from "./layout/tabview";
|
|
72
|
+
export { Menu, showMenu } from "./overlays/menu";
|
|
73
|
+
export type { MenuOptions, MenuItem } from "./overlays/menu";
|
|
74
|
+
export { Tooltip } from "./overlays/tooltip";
|
|
75
|
+
export type { TooltipOptions } from "./overlays/tooltip";
|
|
76
|
+
export { Dialog } from "./overlays/dialog";
|
|
77
|
+
export type { DialogOptions } from "./overlays/dialog";
|
|
78
|
+
export { Popover } from "./overlays/popover";
|
|
79
|
+
export type { PopoverOptions } from "./overlays/popover";
|
|
80
|
+
export { Sheet } from "./overlays/sheet";
|
|
81
|
+
export type { SheetOptions } from "./overlays/sheet";
|
|
82
|
+
export { Toast, showToast } from "./overlays/toast";
|
|
83
|
+
export type { ToastOptions, ToastVariant } from "./overlays/toast";
|
|
84
|
+
export { MobileShell, looksLikeMobile } from "./mobile/shell";
|
|
85
|
+
export type { MobileShellOptions, MobileTab } from "./mobile/shell";
|