aplance-ui 1.0.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.
Files changed (132) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +29 -0
  3. package/dist/api.d.ts +175 -0
  4. package/dist/api.js +1954 -0
  5. package/dist/api.js.map +1 -0
  6. package/dist/frameworks/astro/astro.config.snippet.md +23 -0
  7. package/dist/frameworks/astro/postcss.config.mjs.template +20 -0
  8. package/dist/frameworks/astro/vite-inline.snippet.md +22 -0
  9. package/dist/frameworks/electron-vite/vite.config.snippet.md +44 -0
  10. package/dist/frameworks/next/layout-import.snippet.md +19 -0
  11. package/dist/frameworks/next/next.config.snippet.md +15 -0
  12. package/dist/frameworks/next/postcss.config.js.template +16 -0
  13. package/dist/frameworks/tanstack-start/postcss.config.ts.template +17 -0
  14. package/dist/frameworks/tanstack-start/vite-inline.snippet.md +22 -0
  15. package/dist/frameworks/vite-react/postcss.config.ts.template +16 -0
  16. package/dist/frameworks/vite-react/vite-inline.snippet.md +20 -0
  17. package/dist/frameworks/vite-react/vite.config.ts.template +48 -0
  18. package/dist/index.js +2047 -0
  19. package/dist/index.js.map +1 -0
  20. package/package.json +63 -0
  21. package/registry/components/primitives/icon/icon.module.css +63 -0
  22. package/registry/components/primitives/icon/icon.tsx +53 -0
  23. package/registry/components/primitives/modal/modal-context.ts +19 -0
  24. package/registry/components/primitives/modal/modal.module.css +415 -0
  25. package/registry/components/primitives/modal/modal.tsx +550 -0
  26. package/registry/components/primitives/popover/popover-context.ts +28 -0
  27. package/registry/components/primitives/popover/popover.module.css +28 -0
  28. package/registry/components/primitives/popover/popover.tsx +465 -0
  29. package/registry/components/ui/accordion/accordion.module.css +208 -0
  30. package/registry/components/ui/accordion/accordion.tsx +327 -0
  31. package/registry/components/ui/avatar/avatar.module.css +32 -0
  32. package/registry/components/ui/avatar/avatar.tsx +37 -0
  33. package/registry/components/ui/badge/badge.module.css +103 -0
  34. package/registry/components/ui/badge/badge.tsx +29 -0
  35. package/registry/components/ui/button/button.module.css +216 -0
  36. package/registry/components/ui/button/button.tsx +133 -0
  37. package/registry/components/ui/chart/chart.module.css +168 -0
  38. package/registry/components/ui/chart/chart.tsx +1293 -0
  39. package/registry/components/ui/chart/types.ts +210 -0
  40. package/registry/components/ui/chart/utils.ts +59 -0
  41. package/registry/components/ui/copy-button/copy-button.module.css +21 -0
  42. package/registry/components/ui/copy-button/copy-button.tsx +123 -0
  43. package/registry/components/ui/countdown/countdown.module.css +5 -0
  44. package/registry/components/ui/countdown/countdown.tsx +152 -0
  45. package/registry/components/ui/data-table/checkbox-column.tsx +59 -0
  46. package/registry/components/ui/data-table/data-table.module.css +594 -0
  47. package/registry/components/ui/data-table/data-table.tsx +1109 -0
  48. package/registry/components/ui/data-table/filter-bar.tsx +33 -0
  49. package/registry/components/ui/data-table/pagination-bar.tsx +125 -0
  50. package/registry/components/ui/data-table/types.ts +594 -0
  51. package/registry/components/ui/data-table/useDataTable.tsx +573 -0
  52. package/registry/components/ui/data-table/utils.ts +445 -0
  53. package/registry/components/ui/empty-state/empty-state.module.css +26 -0
  54. package/registry/components/ui/empty-state/empty-state.tsx +32 -0
  55. package/registry/components/ui/input-fields/color-picker/color-palette.module.css +102 -0
  56. package/registry/components/ui/input-fields/color-picker/color-palette.tsx +92 -0
  57. package/registry/components/ui/input-fields/color-picker/color-picker.module.css +29 -0
  58. package/registry/components/ui/input-fields/color-picker/color-picker.tsx +168 -0
  59. package/registry/components/ui/input-fields/common/field-message/field-message.module.css +28 -0
  60. package/registry/components/ui/input-fields/common/field-message/field-message.tsx +39 -0
  61. package/registry/components/ui/input-fields/common/input-field-common.module.css +318 -0
  62. package/registry/components/ui/input-fields/common/input-field-native.module.css +267 -0
  63. package/registry/components/ui/input-fields/common/picker-popover-common.module.css +40 -0
  64. package/registry/components/ui/input-fields/common/select-button/select-button.module.css +9 -0
  65. package/registry/components/ui/input-fields/common/select-button/select-button.tsx +171 -0
  66. package/registry/components/ui/input-fields/common/types.ts +38 -0
  67. package/registry/components/ui/input-fields/custom-select/custom-select.module.css +56 -0
  68. package/registry/components/ui/input-fields/custom-select/custom-select.tsx +403 -0
  69. package/registry/components/ui/input-fields/date-picker/calendar.module.css +311 -0
  70. package/registry/components/ui/input-fields/date-picker/calendar.tsx +186 -0
  71. package/registry/components/ui/input-fields/date-picker/date-picker.module.css +57 -0
  72. package/registry/components/ui/input-fields/date-picker/date-picker.tsx +945 -0
  73. package/registry/components/ui/input-fields/date-picker/types.ts +102 -0
  74. package/registry/components/ui/input-fields/date-picker/utils.ts +236 -0
  75. package/registry/components/ui/input-fields/emoji-picker/emoji-palette.module.css +90 -0
  76. package/registry/components/ui/input-fields/emoji-picker/emoji-palette.tsx +168 -0
  77. package/registry/components/ui/input-fields/emoji-picker/emoji-picker.module.css +8 -0
  78. package/registry/components/ui/input-fields/emoji-picker/emoji-picker.tsx +102 -0
  79. package/registry/components/ui/input-fields/emoji-picker/utils.ts +505 -0
  80. package/registry/components/ui/input-fields/field-group/field-group.module.css +86 -0
  81. package/registry/components/ui/input-fields/field-group/field-group.tsx +86 -0
  82. package/registry/components/ui/input-fields/input/input.tsx +319 -0
  83. package/registry/components/ui/input-fields/media-input/kind-icons.tsx +62 -0
  84. package/registry/components/ui/input-fields/media-input/media-input.module.css +294 -0
  85. package/registry/components/ui/input-fields/media-input/media-input.tsx +327 -0
  86. package/registry/components/ui/input-fields/media-input/media-preview.tsx +101 -0
  87. package/registry/components/ui/input-fields/media-input/types.ts +129 -0
  88. package/registry/components/ui/input-fields/media-input/useMediaUpload.tsx +302 -0
  89. package/registry/components/ui/input-fields/media-input/utils.ts +325 -0
  90. package/registry/components/ui/input-fields/otp-input/otp-input.module.css +24 -0
  91. package/registry/components/ui/input-fields/otp-input/otp-input.tsx +291 -0
  92. package/registry/components/ui/input-fields/select/select.tsx +118 -0
  93. package/registry/components/ui/input-fields/switch/switch.module.css +70 -0
  94. package/registry/components/ui/input-fields/switch/switch.tsx +59 -0
  95. package/registry/components/ui/input-fields/textarea/textarea.tsx +133 -0
  96. package/registry/components/ui/input-fields/time-picker/time-picker.module.css +57 -0
  97. package/registry/components/ui/input-fields/time-picker/time-picker.tsx +437 -0
  98. package/registry/components/ui/loader/loader.module.css +156 -0
  99. package/registry/components/ui/loader/loader.tsx +102 -0
  100. package/registry/components/ui/stepper/stepper.module.css +294 -0
  101. package/registry/components/ui/stepper/stepper.tsx +197 -0
  102. package/registry/components/ui/tabs/tabs.module.css +150 -0
  103. package/registry/components/ui/tabs/tabs.tsx +134 -0
  104. package/registry/components/ui/toast/toast.module.css +159 -0
  105. package/registry/components/ui/toast/toast.tsx +104 -0
  106. package/registry/components/ui/tooltip/tooltip.module.css +82 -0
  107. package/registry/components/ui/tooltip/tooltip.tsx +72 -0
  108. package/registry/global.d.ts +4 -0
  109. package/registry/hooks/useFocusOutside.tsx +33 -0
  110. package/registry/hooks/useResizeObserver.tsx +32 -0
  111. package/registry/lib/dom.ts +25 -0
  112. package/registry/lib/string.ts +23 -0
  113. package/registry/registry.json +719 -0
  114. package/registry/styles/app.css +240 -0
  115. package/registry/styles/components.css +78 -0
  116. package/registry/styles/fonts/geist-regular.woff2 +0 -0
  117. package/registry/styles/globals.css +7 -0
  118. package/registry/styles/media.css +25 -0
  119. package/registry/styles/utilities.css +90 -0
  120. package/registry/themes/colors/blue.css +37 -0
  121. package/registry/themes/colors/green.css +37 -0
  122. package/registry/themes/colors/rose.css +37 -0
  123. package/registry/themes/colors/slate.css +37 -0
  124. package/registry/themes/colors/stone.css +37 -0
  125. package/registry/themes/colors/violet.css +37 -0
  126. package/registry/themes/colors/zinc.css +37 -0
  127. package/registry/themes/radius/pill.css +8 -0
  128. package/registry/themes/radius/rounded.css +8 -0
  129. package/registry/themes/radius/sharp.css +8 -0
  130. package/registry/themes/spacing/compact.css +17 -0
  131. package/registry/themes/spacing/spacious.css +17 -0
  132. package/registry/tsconfig.json +25 -0
@@ -0,0 +1,37 @@
1
+ /* Color theme: zinc - neutral gray with a cool bias. */
2
+
3
+ :root {
4
+ --color-background: oklch(99% 0 0);
5
+ --color-foreground: oklch(14% 0 0);
6
+ --color-muted: oklch(96% 0 0);
7
+ --color-muted-foreground: oklch(55% 0.005 280);
8
+
9
+ --color-primary: oklch(21% 0.006 285);
10
+ --color-primary-muted: oklch(36% 0.01 285);
11
+ --color-primary-foreground: oklch(98% 0 0);
12
+ --color-secondary: oklch(96% 0.002 285);
13
+ --color-secondary-muted: oklch(90% 0.003 285);
14
+ --color-secondary-foreground: oklch(21% 0.006 285);
15
+
16
+ --color-border: oklch(89% 0.003 285);
17
+ --color-ring: oklch(70% 0.01 285);
18
+ --color-selection: oklch(72% 0.02 285);
19
+ }
20
+
21
+ [data-theme="dark"] {
22
+ --color-background: oklch(14% 0 0);
23
+ --color-foreground: oklch(98% 0 0);
24
+ --color-muted: oklch(26% 0.002 285);
25
+ --color-muted-foreground: oklch(70% 0.005 280);
26
+
27
+ --color-primary: oklch(98% 0 0);
28
+ --color-primary-muted: oklch(78% 0.005 285);
29
+ --color-primary-foreground: oklch(21% 0.006 285);
30
+ --color-secondary: oklch(27% 0.004 285);
31
+ --color-secondary-muted: oklch(34% 0.005 285);
32
+ --color-secondary-foreground: oklch(98% 0 0);
33
+
34
+ --color-border: oklch(32% 0.005 285);
35
+ --color-ring: oklch(55% 0.01 285);
36
+ --color-selection: oklch(45% 0.015 285);
37
+ }
@@ -0,0 +1,8 @@
1
+ /* Radius variant: pill - aggressive rounding for pill-shaped controls. */
2
+
3
+ :root {
4
+ --radius-sm: 0.5rem;
5
+ --radius-md: 0.75rem;
6
+ --radius-lg: 1.25rem;
7
+ --radius-xl: 9999px;
8
+ }
@@ -0,0 +1,8 @@
1
+ /* Radius variant: rounded - softer, more generous corners. */
2
+
3
+ :root {
4
+ --radius-sm: 0.375rem;
5
+ --radius-md: 0.5rem;
6
+ --radius-lg: 0.75rem;
7
+ --radius-xl: 1rem;
8
+ }
@@ -0,0 +1,8 @@
1
+ /* Radius variant: sharp - flat, zero-radius surfaces. */
2
+
3
+ :root {
4
+ --radius-sm: 0;
5
+ --radius-md: 0;
6
+ --radius-lg: 0;
7
+ --radius-xl: 0;
8
+ }
@@ -0,0 +1,17 @@
1
+ /* Spacing scale: compact - tighter gutters, roughly 80% of the default step. */
2
+
3
+ :root {
4
+ --spacing-1: 0.1rem;
5
+ --spacing-2: 0.2rem;
6
+ --spacing-3: 0.3rem;
7
+ --spacing-4: 0.4rem;
8
+ --spacing-5: 0.5rem;
9
+ --spacing-6: 0.6rem;
10
+ --spacing-7: 0.7rem;
11
+ --spacing-8: 0.8rem;
12
+ --spacing-9: 1rem;
13
+ --spacing-10: 1.2rem;
14
+ --spacing-11: 1.6rem;
15
+ --spacing-12: 2rem;
16
+ --spacing-14: 2.75rem;
17
+ }
@@ -0,0 +1,17 @@
1
+ /* Spacing scale: spacious - airy gutters, roughly 120% of the default step. */
2
+
3
+ :root {
4
+ --spacing-1: 0.15rem;
5
+ --spacing-2: 0.3rem;
6
+ --spacing-3: 0.45rem;
7
+ --spacing-4: 0.6rem;
8
+ --spacing-5: 0.75rem;
9
+ --spacing-6: 0.9rem;
10
+ --spacing-7: 1.05rem;
11
+ --spacing-8: 1.2rem;
12
+ --spacing-9: 1.5rem;
13
+ --spacing-10: 1.8rem;
14
+ --spacing-11: 2.4rem;
15
+ --spacing-12: 3rem;
16
+ --spacing-14: 4.25rem;
17
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "lib": [
5
+ "ES2022",
6
+ "DOM",
7
+ "DOM.Iterable"
8
+ ],
9
+ "module": "ESNext",
10
+ "moduleResolution": "bundler",
11
+ "jsx": "react-jsx",
12
+ "esModuleInterop": true,
13
+ "resolveJsonModule": true,
14
+ "allowImportingTsExtensions": false,
15
+ "verbatimModuleSyntax": false,
16
+ "noEmit": true,
17
+ "skipLibCheck": true,
18
+ "strict": true
19
+ },
20
+ "include": [
21
+ "components/**/*.ts",
22
+ "components/**/*.tsx",
23
+ "global.d.ts"
24
+ ]
25
+ }