@nattstack/ui 0.0.1 → 0.0.2

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 (58) hide show
  1. package/dist/colors/index.css +3 -0
  2. package/dist/colors/root-p3.css +904 -0
  3. package/dist/colors/root.css +906 -0
  4. package/dist/components/dialog-responsive-backdrop.module-UZSAJFQZ.module.css +28 -0
  5. package/dist/components/dialog-responsive-bar.module-QCLP4IUN.module.css +14 -0
  6. package/dist/components/dialog-responsive-content.module-NBSLRMHN.module.css +11 -0
  7. package/dist/components/dialog-responsive-popup.module-T3GCUCPZ.module.css +57 -0
  8. package/dist/components/dialog-responsive-portal.module-YFVKMKVT.module.css +5 -0
  9. package/dist/components/dialog-responsive-viewport.module-LT7MZPLD.module.css +16 -0
  10. package/dist/{index.d.ts → components/index.d.ts} +19 -2
  11. package/dist/{index.js → components/index.js} +258 -97
  12. package/dist/tailwind-colors/color.css +88 -0
  13. package/dist/tailwind-colors/gray.css +335 -0
  14. package/dist/tailwind-colors/index.css +6 -0
  15. package/dist/tailwind-colors/primary.css +1399 -0
  16. package/dist/tailwind-tokenless/10/container.css +16 -0
  17. package/dist/tailwind-tokenless/10/index.css +19 -0
  18. package/dist/tailwind-tokenless/10/radius.css +12 -0
  19. package/dist/tailwind-tokenless/10/spacing.css +38 -0
  20. package/dist/tailwind-tokenless/10/text.css +20 -0
  21. package/dist/tailwind-tokenless/16/container.css +16 -0
  22. package/dist/tailwind-tokenless/16/index.css +19 -0
  23. package/dist/tailwind-tokenless/16/radius.css +12 -0
  24. package/dist/tailwind-tokenless/16/spacing.css +38 -0
  25. package/dist/tailwind-tokenless/16/text.css +20 -0
  26. package/dist/tailwind-tokenless/aspect.css +7 -0
  27. package/dist/tailwind-tokenless/blur.css +11 -0
  28. package/dist/tailwind-tokenless/breakpoint.css +10 -0
  29. package/dist/tailwind-tokenless/drop-shadow.css +10 -0
  30. package/dist/tailwind-tokenless/font-weight.css +12 -0
  31. package/dist/tailwind-tokenless/inset-shadow.css +6 -0
  32. package/dist/tailwind-tokenless/leading.css +9 -0
  33. package/dist/tailwind-tokenless/perspective-dramatic.css +9 -0
  34. package/dist/tailwind-tokenless/shadow.css +11 -0
  35. package/dist/tailwind-tokenless/text-shadow.css +12 -0
  36. package/dist/tailwind-tokenless/tracking.css +7 -0
  37. package/package.json +11 -10
  38. /package/dist/{button-spinner.module-T3OGVJS4.module.css → components/button-spinner.module-T3OGVJS4.module.css} +0 -0
  39. /package/dist/{button.module-77AJOXGM.module.css → components/button.module-77AJOXGM.module.css} +0 -0
  40. /package/dist/{column.module-A7QCVPFC.module.css → components/column.module-A7QCVPFC.module.css} +0 -0
  41. /package/dist/{input.module-DOM3NIU5.module.css → components/input.module-DOM3NIU5.module.css} +0 -0
  42. /package/dist/{label.module-HUBUIUFV.module.css → components/label.module-HUBUIUFV.module.css} +0 -0
  43. /package/dist/{row.module-GYNANRAY.module.css → components/row.module-GYNANRAY.module.css} +0 -0
  44. /package/dist/{spacer.module-ZYYYWYEB.module.css → components/spacer.module-ZYYYWYEB.module.css} +0 -0
  45. /package/dist/{switch.module-TLJBHCSA.module.css → components/switch.module-TLJBHCSA.module.css} +0 -0
  46. /package/dist/{tabs-panel.module-VGH3G3KV.module.css → components/tabs-panel.module-VGH3G3KV.module.css} +0 -0
  47. /package/dist/{tabs-pill-indicator.module-533HMO7L.module.css → components/tabs-pill-indicator.module-533HMO7L.module.css} +0 -0
  48. /package/dist/{tabs-pill-list.module-KQW67ZSW.module.css → components/tabs-pill-list.module-KQW67ZSW.module.css} +0 -0
  49. /package/dist/{tabs-pill-tab.module-M5YIWTWX.module.css → components/tabs-pill-tab.module-M5YIWTWX.module.css} +0 -0
  50. /package/dist/{tabs-segmented-indicator.module-MB5GZJGW.module.css → components/tabs-segmented-indicator.module-MB5GZJGW.module.css} +0 -0
  51. /package/dist/{tabs-segmented-list.module-I3DSVFSP.module.css → components/tabs-segmented-list.module-I3DSVFSP.module.css} +0 -0
  52. /package/dist/{tabs-segmented-tab.module-GFCOY63Z.module.css → components/tabs-segmented-tab.module-GFCOY63Z.module.css} +0 -0
  53. /package/dist/{tabs-underline-indicator.module-6SHQHUH5.module.css → components/tabs-underline-indicator.module-6SHQHUH5.module.css} +0 -0
  54. /package/dist/{tabs-underline-list.module-72ZCIEAS.module.css → components/tabs-underline-list.module-72ZCIEAS.module.css} +0 -0
  55. /package/dist/{tabs-underline-tab.module-YGSM4IUK.module.css → components/tabs-underline-tab.module-YGSM4IUK.module.css} +0 -0
  56. /package/dist/{tabs.module-3Z5DRPPX.module.css → components/tabs.module-3Z5DRPPX.module.css} +0 -0
  57. /package/dist/{textarea.module-6GUVSFC7.module.css → components/textarea.module-6GUVSFC7.module.css} +0 -0
  58. /package/dist/{tooltip-content.module-5MWTMSBY.module.css → components/tooltip-content.module-5MWTMSBY.module.css} +0 -0
@@ -0,0 +1,28 @@
1
+ .dialog_responsive_backdrop {
2
+ --backdrop-opacity: 0.25;
3
+
4
+ background-color: black;
5
+ inset: 0;
6
+ opacity: calc(var(--backdrop-opacity) * (1 - var(--drawer-swipe-progress)));
7
+ outline-color: var(--color-primary-9);
8
+ position: fixed;
9
+ transition-duration: 150ms;
10
+ transition-property: opacity;
11
+ }
12
+
13
+ .dialog_responsive_backdrop[data-ending-style],
14
+ .dialog_responsive_backdrop[data-starting-style] {
15
+ opacity: 0;
16
+ }
17
+
18
+ .dialog_responsive_backdrop[data-ending-style] {
19
+ transition-duration: calc(var(--drawer-swipe-strength) * 400ms);
20
+ }
21
+
22
+ .dialog_responsive_backdrop[data-swiping] {
23
+ transition-duration: 0ms;
24
+ }
25
+
26
+ :global(.dark) .dialog_responsive_backdrop {
27
+ --backdrop-opacity: 0.75;
28
+ }
@@ -0,0 +1,14 @@
1
+ .dialog_responsive_bar {
2
+ background-color: var(--color-gray-4);
3
+ border-radius: 9999px;
4
+ display: none;
5
+ height: 4px;
6
+ margin: 12px auto;
7
+ width: 48px;
8
+ }
9
+
10
+ @media (max-width: 640px) {
11
+ .dialog_responsive_bar {
12
+ display: block;
13
+ }
14
+ }
@@ -0,0 +1,11 @@
1
+ .dialog_responsive_content {
2
+ display: flex;
3
+ flex-direction: column;
4
+ padding: 16px;
5
+ }
6
+
7
+ @media (max-width: 640px) {
8
+ .dialog_responsive_content {
9
+ padding-top: 0;
10
+ }
11
+ }
@@ -0,0 +1,57 @@
1
+ .dialog_responsive_popup {
2
+ background-color: var(--color-gray-1);
3
+ border-radius: 16px;
4
+ cursor: auto;
5
+ display: flex;
6
+ flex-direction: column;
7
+ max-width: 640px;
8
+ outline-color: var(--color-primary-9);
9
+ outline-offset: -4px;
10
+ outline-style: solid;
11
+ outline-width: 0;
12
+ transition-duration: 150ms;
13
+ transition-property: opacity, transform;
14
+ width: 100%;
15
+ will-change: opacity, transform;
16
+ }
17
+
18
+ .dialog_responsive_popup:focus-visible {
19
+ outline-width: 2px;
20
+ }
21
+
22
+ /* Desktop */
23
+ .dialog_responsive_popup[data-ending-style],
24
+ .dialog_responsive_popup[data-starting-style] {
25
+ opacity: 0;
26
+ transform: scale(0.975);
27
+ }
28
+
29
+ .dialog_responsive_popup[data-swiping] {
30
+ user-select: none;
31
+ }
32
+
33
+ /* Mobile */
34
+ @media (max-width: 640px) {
35
+ .dialog_responsive_popup {
36
+ --radius-mobile: 24px;
37
+
38
+ border-bottom-left-radius: 0;
39
+ border-bottom-right-radius: 0;
40
+ border-top-left-radius: var(--radius-mobile);
41
+ border-top-right-radius: var(--radius-mobile);
42
+ transform: translateY(var(--drawer-swipe-movement-y));
43
+ transition-duration: 450ms;
44
+ transition-property: transform;
45
+ transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
46
+ }
47
+
48
+ .dialog_responsive_popup[data-ending-style],
49
+ .dialog_responsive_popup[data-starting-style] {
50
+ opacity: 1;
51
+ transform: scale(1) translateY(100%);
52
+ }
53
+
54
+ .dialog_responsive_popup[data-ending-style] {
55
+ transition-duration: calc(var(--drawer-swipe-strength) * 300ms);
56
+ }
57
+ }
@@ -0,0 +1,5 @@
1
+ .dialog_responsive_portal {
2
+ isolation: isolate;
3
+ position: relative;
4
+ z-index: 30;
5
+ }
@@ -0,0 +1,16 @@
1
+ .dialog_responsive_viewport {
2
+ align-items: safe center;
3
+ cursor: pointer;
4
+ display: flex;
5
+ inset: 0;
6
+ justify-content: safe center;
7
+ padding: 24px;
8
+ position: fixed;
9
+ }
10
+
11
+ @media (max-width: 640px) {
12
+ .dialog_responsive_viewport {
13
+ align-items: safe flex-end;
14
+ padding: 48px 0 0;
15
+ }
16
+ }
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps, ReactNode, JSX, ElementType, CSSProperties } from 'react';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { Switch as Switch$1, Tabs as Tabs$1, Tooltip as Tooltip$1 } from '@base-ui/react';
3
+ import { Drawer, Switch as Switch$1, Tabs as Tabs$1, Tooltip as Tooltip$1 } from '@base-ui/react';
4
4
 
5
5
  interface ButtonIconProps extends ButtonInternalProps {
6
6
  children?: ReactNode;
@@ -73,6 +73,23 @@ declare const COLUMN_CLASS_NAME: {
73
73
  readonly BASE: string;
74
74
  };
75
75
 
76
+ interface DialogResponsiveProps extends Omit<Drawer.Root.Props, "onOpenChange" | "open"> {
77
+ isOpen?: Drawer.Root.Props["open"];
78
+ onIsOpenChange?: Drawer.Root.Props["onOpenChange"];
79
+ }
80
+ declare function DialogResponsive(props: DialogResponsiveProps): react_jsx_runtime.JSX.Element;
81
+
82
+ interface DialogResponsiveContentProps extends Drawer.Content.Props {
83
+ }
84
+ declare function DialogResponsiveContent(props: DialogResponsiveContentProps): react_jsx_runtime.JSX.Element;
85
+ declare const DIALOG_RESPONSIVE_CONTENT_CLASS_NAME: {
86
+ readonly BASE: string;
87
+ };
88
+
89
+ interface DialogResponsiveTriggerProps extends Drawer.Trigger.Props {
90
+ }
91
+ declare function DialogResponsiveTrigger(props: DialogResponsiveTriggerProps): react_jsx_runtime.JSX.Element;
92
+
76
93
  interface InputProps extends Omit<ComponentProps<"input">, "aria-pressed" | "disabled" | "readOnly" | "required"> {
77
94
  isActive?: boolean;
78
95
  isDisabled?: boolean;
@@ -247,4 +264,4 @@ interface TooltipTriggerProps extends Tooltip$1.Trigger.Props {
247
264
  }
248
265
  declare function TooltipTrigger(props: TooltipTriggerProps): react_jsx_runtime.JSX.Element;
249
266
 
250
- export { BUTTON_CLASS_NAME, Button, type ButtonIconProps, ButtonLink, type ButtonLinkProps, type ButtonProps, COLUMN_CLASS_NAME, Column, type ColumnProps, INPUT_CLASS_NAME, Input, type InputProps, LABEL_CLASS_NAME, Label, type LabelProps, ROW_CLASS_NAME, Row, type RowProps, SPACER_CLASS_NAME, SWITCH_CLASS_NAME, Spacer, type SpacerProps, Switch, type SwitchProps, TABS_CLASS_NAME, TABS_PANEL_CLASS_NAME, TABS_PILL_LIST_CLASS_NAME, TABS_PILL_TAB_CLASS_NAME, TABS_SEGMENTED_LIST_CLASS_NAME, TABS_SEGMENTED_TAB_CLASS_NAME, TABS_UNDERLINE_LIST_CLASS_NAME, TABS_UNDERLINE_TAB_CLASS_NAME, TEXTAREA_CLASS_NAME, TOOLTIP_CONTENT_CLASS_NAME, Tabs, TabsPanel, type TabsPanelProps, TabsPillList, type TabsPillListProps, TabsPillTab, type TabsPillTabProps, type TabsProps, TabsSegmentedList, type TabsSegmentedListProps, TabsSegmentedTab, type TabsSegmentedTabProps, TabsUnderlineList, type TabsUnderlineListProps, TabsUnderlineTab, type TabsUnderlineTabProps, Textarea, type TextareaProps, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps };
267
+ export { BUTTON_CLASS_NAME, Button, type ButtonIconProps, ButtonLink, type ButtonLinkProps, type ButtonProps, COLUMN_CLASS_NAME, Column, type ColumnProps, DIALOG_RESPONSIVE_CONTENT_CLASS_NAME, DialogResponsive, DialogResponsiveContent, type DialogResponsiveContentProps, type DialogResponsiveProps, DialogResponsiveTrigger, type DialogResponsiveTriggerProps, INPUT_CLASS_NAME, Input, type InputProps, LABEL_CLASS_NAME, Label, type LabelProps, ROW_CLASS_NAME, Row, type RowProps, SPACER_CLASS_NAME, SWITCH_CLASS_NAME, Spacer, type SpacerProps, Switch, type SwitchProps, TABS_CLASS_NAME, TABS_PANEL_CLASS_NAME, TABS_PILL_LIST_CLASS_NAME, TABS_PILL_TAB_CLASS_NAME, TABS_SEGMENTED_LIST_CLASS_NAME, TABS_SEGMENTED_TAB_CLASS_NAME, TABS_UNDERLINE_LIST_CLASS_NAME, TABS_UNDERLINE_TAB_CLASS_NAME, TEXTAREA_CLASS_NAME, TOOLTIP_CONTENT_CLASS_NAME, Tabs, TabsPanel, type TabsPanelProps, TabsPillList, type TabsPillListProps, TabsPillTab, type TabsPillTabProps, type TabsProps, TabsSegmentedList, type TabsSegmentedListProps, TabsSegmentedTab, type TabsSegmentedTabProps, TabsUnderlineList, type TabsUnderlineListProps, TabsUnderlineTab, type TabsUnderlineTabProps, Textarea, type TextareaProps, Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps };