@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.
Files changed (70) hide show
  1. package/.turbo/turbo-build.log +57 -0
  2. package/dist/components/resources/icons.d.ts +4 -0
  3. package/dist/components/resources/icons.js +133 -0
  4. package/dist/components/resources/logo/horizontal.d.ts +12 -0
  5. package/dist/components/resources/logo/horizontal.js +107 -0
  6. package/dist/components/resources/logo/icon.d.ts +12 -0
  7. package/dist/components/resources/logo/icon.js +79 -0
  8. package/dist/components/resources/logo/index.d.ts +4 -0
  9. package/dist/components/resources/logo/index.js +291 -0
  10. package/dist/components/resources/logo/vertical.d.ts +12 -0
  11. package/dist/components/resources/logo/vertical.js +107 -0
  12. package/dist/components/ui/accordion.d.ts +5 -0
  13. package/dist/components/ui/accordion.js +8 -0
  14. package/dist/components/ui/button.d.ts +16 -0
  15. package/dist/components/ui/button.js +95 -0
  16. package/dist/components/ui/icon.d.ts +12 -0
  17. package/dist/components/ui/icon.js +158 -0
  18. package/dist/components/ui/index.d.ts +17 -0
  19. package/dist/components/ui/index.js +788 -0
  20. package/dist/components/ui/input/content.d.ts +9 -0
  21. package/dist/components/ui/input/content.js +183 -0
  22. package/dist/components/ui/input/index.d.ts +12 -0
  23. package/dist/components/ui/input/index.js +335 -0
  24. package/dist/components/ui/input/label.d.ts +12 -0
  25. package/dist/components/ui/input/label.js +165 -0
  26. package/dist/components/ui/input/message.d.ts +10 -0
  27. package/dist/components/ui/input/message.js +128 -0
  28. package/dist/components/ui/input/root.d.ts +18 -0
  29. package/dist/components/ui/input/root.js +163 -0
  30. package/dist/components/ui/input/slot.d.ts +10 -0
  31. package/dist/components/ui/input/slot.js +20 -0
  32. package/dist/components/ui/input/text.d.ts +10 -0
  33. package/dist/components/ui/input/text.js +195 -0
  34. package/dist/components/ui/logo.d.ts +10 -0
  35. package/dist/components/ui/logo.js +324 -0
  36. package/dist/components/ui/otp-input.d.ts +13 -0
  37. package/dist/components/ui/otp-input.js +47 -0
  38. package/dist/components/ui/typography.d.ts +17 -0
  39. package/dist/components/ui/typography.js +78 -0
  40. package/dist/index.css +770 -0
  41. package/dist/index.d.ts +17 -0
  42. package/dist/index.js +788 -0
  43. package/eslint.config.js +3 -0
  44. package/package.json +41 -0
  45. package/postcss.config.js +5 -0
  46. package/prettier.config.js +7 -0
  47. package/src/components/resources/icons.ts +131 -0
  48. package/src/components/resources/logo/horizontal.tsx +70 -0
  49. package/src/components/resources/logo/icon.tsx +54 -0
  50. package/src/components/resources/logo/index.ts +3 -0
  51. package/src/components/resources/logo/vertical.tsx +70 -0
  52. package/src/components/ui/accordion.tsx +3 -0
  53. package/src/components/ui/button.tsx +105 -0
  54. package/src/components/ui/icon.tsx +29 -0
  55. package/src/components/ui/index.ts +13 -0
  56. package/src/components/ui/input/content.tsx +59 -0
  57. package/src/components/ui/input/index.ts +6 -0
  58. package/src/components/ui/input/label.tsx +41 -0
  59. package/src/components/ui/input/message.tsx +37 -0
  60. package/src/components/ui/input/root.tsx +57 -0
  61. package/src/components/ui/input/slot.tsx +21 -0
  62. package/src/components/ui/input/text.tsx +69 -0
  63. package/src/components/ui/logo.tsx +39 -0
  64. package/src/components/ui/otp-input.tsx +45 -0
  65. package/src/components/ui/typography.tsx +85 -0
  66. package/src/index.css +2 -0
  67. package/src/index.ts +2 -0
  68. package/src/types.d.ts +4 -0
  69. package/tsconfig.json +4 -0
  70. 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';