@xjur-ui/react 1.0.0
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/.turbo/turbo-build.log +57 -0
- package/dist/components/resources/icons.d.ts +4 -0
- package/dist/components/resources/icons.js +133 -0
- package/dist/components/resources/logo/horizontal.d.ts +12 -0
- package/dist/components/resources/logo/horizontal.js +107 -0
- package/dist/components/resources/logo/icon.d.ts +12 -0
- package/dist/components/resources/logo/icon.js +79 -0
- package/dist/components/resources/logo/index.d.ts +4 -0
- package/dist/components/resources/logo/index.js +291 -0
- package/dist/components/resources/logo/vertical.d.ts +12 -0
- package/dist/components/resources/logo/vertical.js +107 -0
- package/dist/components/ui/accordion.d.ts +5 -0
- package/dist/components/ui/accordion.js +8 -0
- package/dist/components/ui/button.d.ts +16 -0
- package/dist/components/ui/button.js +95 -0
- package/dist/components/ui/icon.d.ts +12 -0
- package/dist/components/ui/icon.js +158 -0
- package/dist/components/ui/index.d.ts +17 -0
- package/dist/components/ui/index.js +788 -0
- package/dist/components/ui/input/content.d.ts +9 -0
- package/dist/components/ui/input/content.js +183 -0
- package/dist/components/ui/input/index.d.ts +12 -0
- package/dist/components/ui/input/index.js +335 -0
- package/dist/components/ui/input/label.d.ts +12 -0
- package/dist/components/ui/input/label.js +165 -0
- package/dist/components/ui/input/message.d.ts +10 -0
- package/dist/components/ui/input/message.js +128 -0
- package/dist/components/ui/input/root.d.ts +18 -0
- package/dist/components/ui/input/root.js +163 -0
- package/dist/components/ui/input/slot.d.ts +10 -0
- package/dist/components/ui/input/slot.js +20 -0
- package/dist/components/ui/input/text.d.ts +10 -0
- package/dist/components/ui/input/text.js +195 -0
- package/dist/components/ui/logo.d.ts +10 -0
- package/dist/components/ui/logo.js +324 -0
- package/dist/components/ui/otp-input.d.ts +13 -0
- package/dist/components/ui/otp-input.js +47 -0
- package/dist/components/ui/typography.d.ts +17 -0
- package/dist/components/ui/typography.js +78 -0
- package/dist/index.css +770 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +788 -0
- package/eslint.config.js +3 -0
- package/package.json +41 -0
- package/postcss.config.js +5 -0
- package/prettier.config.js +7 -0
- package/src/components/resources/icons.ts +131 -0
- package/src/components/resources/logo/horizontal.tsx +70 -0
- package/src/components/resources/logo/icon.tsx +54 -0
- package/src/components/resources/logo/index.ts +3 -0
- package/src/components/resources/logo/vertical.tsx +70 -0
- package/src/components/ui/accordion.tsx +3 -0
- package/src/components/ui/button.tsx +105 -0
- package/src/components/ui/icon.tsx +29 -0
- package/src/components/ui/index.ts +13 -0
- package/src/components/ui/input/content.tsx +59 -0
- package/src/components/ui/input/index.ts +6 -0
- package/src/components/ui/input/label.tsx +41 -0
- package/src/components/ui/input/message.tsx +37 -0
- package/src/components/ui/input/root.tsx +57 -0
- package/src/components/ui/input/slot.tsx +21 -0
- package/src/components/ui/input/text.tsx +69 -0
- package/src/components/ui/logo.tsx +39 -0
- package/src/components/ui/otp-input.tsx +45 -0
- package/src/components/ui/typography.tsx +85 -0
- package/src/index.css +2 -0
- package/src/index.ts +2 -0
- package/src/types.d.ts +4 -0
- package/tsconfig.json +4 -0
- package/tsup.config.ts +12 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
// src/components/ui/icon.tsx
|
|
2
|
+
import { cx } from "@xjur-ui/util";
|
|
3
|
+
|
|
4
|
+
// src/components/resources/icons.ts
|
|
5
|
+
var icons = [
|
|
6
|
+
"account_balance",
|
|
7
|
+
"ad_units",
|
|
8
|
+
"add_a_photo",
|
|
9
|
+
"add",
|
|
10
|
+
"adjust",
|
|
11
|
+
"archive",
|
|
12
|
+
"arrow_downward_alt",
|
|
13
|
+
"arrow_downward",
|
|
14
|
+
"arrow_drop_down",
|
|
15
|
+
"arrow_drop_up",
|
|
16
|
+
"arrow_split",
|
|
17
|
+
"arrow_upward_alt",
|
|
18
|
+
"arrow_upward",
|
|
19
|
+
"attach_file",
|
|
20
|
+
"attach_money",
|
|
21
|
+
"autorenew",
|
|
22
|
+
"brightness_1",
|
|
23
|
+
"calendar_today",
|
|
24
|
+
"call",
|
|
25
|
+
"chat_bubble",
|
|
26
|
+
"check_circle",
|
|
27
|
+
"check",
|
|
28
|
+
"chevron_left",
|
|
29
|
+
"chevron_right",
|
|
30
|
+
"close",
|
|
31
|
+
"collapse_all",
|
|
32
|
+
"contacts",
|
|
33
|
+
"content_copy",
|
|
34
|
+
"dangerous",
|
|
35
|
+
"dashboard",
|
|
36
|
+
"delete",
|
|
37
|
+
"download",
|
|
38
|
+
"draft",
|
|
39
|
+
"drafts",
|
|
40
|
+
"drag_handle",
|
|
41
|
+
"drag_indicator",
|
|
42
|
+
"edit_document",
|
|
43
|
+
"edit_square",
|
|
44
|
+
"edit",
|
|
45
|
+
"error",
|
|
46
|
+
"expand_all",
|
|
47
|
+
"file_export",
|
|
48
|
+
"filter_alt",
|
|
49
|
+
"filter_list",
|
|
50
|
+
"first_page",
|
|
51
|
+
"flag_2",
|
|
52
|
+
"folder_open",
|
|
53
|
+
"folder",
|
|
54
|
+
"format_bold",
|
|
55
|
+
"format_italic",
|
|
56
|
+
"format_italic",
|
|
57
|
+
"format_size",
|
|
58
|
+
"format_strikethrough",
|
|
59
|
+
"gavel",
|
|
60
|
+
"group",
|
|
61
|
+
"headphones",
|
|
62
|
+
"help",
|
|
63
|
+
"hourglass_bottom",
|
|
64
|
+
"imagesmode",
|
|
65
|
+
"import_contacts",
|
|
66
|
+
"inbox",
|
|
67
|
+
"info",
|
|
68
|
+
"inventory_2",
|
|
69
|
+
"keep",
|
|
70
|
+
"keep",
|
|
71
|
+
"keyboard_arrow_down",
|
|
72
|
+
"keyboard_arrow_up",
|
|
73
|
+
"keyboard_return",
|
|
74
|
+
"label_off",
|
|
75
|
+
"label",
|
|
76
|
+
"last_page",
|
|
77
|
+
"left_panel_close",
|
|
78
|
+
"left_panel_open",
|
|
79
|
+
"link_off",
|
|
80
|
+
"link",
|
|
81
|
+
"linked_services",
|
|
82
|
+
"list",
|
|
83
|
+
"location_on",
|
|
84
|
+
"lock",
|
|
85
|
+
"logout",
|
|
86
|
+
"mail",
|
|
87
|
+
"menu",
|
|
88
|
+
"mic",
|
|
89
|
+
"more_vert",
|
|
90
|
+
"notifications",
|
|
91
|
+
"numbers",
|
|
92
|
+
"person_add",
|
|
93
|
+
"person_off",
|
|
94
|
+
"person",
|
|
95
|
+
"play_circle",
|
|
96
|
+
"progress_activity",
|
|
97
|
+
"question_mark",
|
|
98
|
+
"radio_button_unchecked",
|
|
99
|
+
"refresh",
|
|
100
|
+
"remove",
|
|
101
|
+
"reply",
|
|
102
|
+
"right_panel_close",
|
|
103
|
+
"right_panel_open",
|
|
104
|
+
"schedule",
|
|
105
|
+
"search",
|
|
106
|
+
"sell",
|
|
107
|
+
"send",
|
|
108
|
+
"settings",
|
|
109
|
+
"share",
|
|
110
|
+
"smart_display",
|
|
111
|
+
"star",
|
|
112
|
+
"star",
|
|
113
|
+
"swap_vert",
|
|
114
|
+
"thumb_down",
|
|
115
|
+
"thumb_up",
|
|
116
|
+
"tune",
|
|
117
|
+
"unarchive",
|
|
118
|
+
"undo",
|
|
119
|
+
"upload",
|
|
120
|
+
"verified_user",
|
|
121
|
+
"videocam",
|
|
122
|
+
"view_list",
|
|
123
|
+
"view_module",
|
|
124
|
+
"view_object_track",
|
|
125
|
+
"visibility_off",
|
|
126
|
+
"visibility",
|
|
127
|
+
"warning",
|
|
128
|
+
"wifi_2_bar",
|
|
129
|
+
"wifi_off",
|
|
130
|
+
"wifi",
|
|
131
|
+
"work",
|
|
132
|
+
"workspaces"
|
|
133
|
+
];
|
|
134
|
+
|
|
135
|
+
// src/components/ui/icon.tsx
|
|
136
|
+
import { jsx } from "react/jsx-runtime";
|
|
137
|
+
function Icon({ className, filled = false, name, ...props }) {
|
|
138
|
+
return /* @__PURE__ */ jsx(
|
|
139
|
+
"span",
|
|
140
|
+
{
|
|
141
|
+
...props,
|
|
142
|
+
className: cx(
|
|
143
|
+
"material-symbols-outlined",
|
|
144
|
+
"text-size-body-lg text-icon-neutral-3",
|
|
145
|
+
className
|
|
146
|
+
),
|
|
147
|
+
style: {
|
|
148
|
+
fontVariationSettings: `'FILL' ${filled ? 1 : 0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,
|
|
149
|
+
...props.style
|
|
150
|
+
},
|
|
151
|
+
children: name
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
export {
|
|
156
|
+
Icon,
|
|
157
|
+
icons
|
|
158
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { Button, ButtonProps } from './button.js';
|
|
2
|
+
export { Icon, IconProps } from './icon.js';
|
|
3
|
+
export { Typography, TypographyProps } from './typography.js';
|
|
4
|
+
export { Logo, LogoProps } from './logo.js';
|
|
5
|
+
export { InputRoot, InputRootProps } from './input/root.js';
|
|
6
|
+
export { InputText, InputTextProps } from './input/text.js';
|
|
7
|
+
export { InputContent, InputContentProps } from './input/content.js';
|
|
8
|
+
export { InputSlot, InputSlotProps } from './input/slot.js';
|
|
9
|
+
export { OTPInput } from './otp-input.js';
|
|
10
|
+
export { Accordion } from './accordion.js';
|
|
11
|
+
import 'react/jsx-runtime';
|
|
12
|
+
import 'class-variance-authority/types';
|
|
13
|
+
import 'react';
|
|
14
|
+
import '@xjur-ui/util';
|
|
15
|
+
import '../resources/icons.js';
|
|
16
|
+
import '@react-input/mask';
|
|
17
|
+
import '@radix-ui/react-one-time-password-field';
|