@balikjs/mobile 0.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 (104) hide show
  1. package/README.md +33 -0
  2. package/dist/mobile.js +3062 -0
  3. package/dist/styles.css +1 -0
  4. package/package.json +49 -0
  5. package/src/Alert/Alert.jsx +67 -0
  6. package/src/Alert/Alert.module.css +87 -0
  7. package/src/Alert/index.js +1 -0
  8. package/src/Avatar/Avatar.jsx +77 -0
  9. package/src/Avatar/Avatar.module.css +74 -0
  10. package/src/Avatar/index.js +1 -0
  11. package/src/Badge/Badge.jsx +83 -0
  12. package/src/Badge/Badge.module.css +141 -0
  13. package/src/Badge/index.js +1 -0
  14. package/src/BottomNavigation/BottomNavigation.jsx +61 -0
  15. package/src/BottomNavigation/BottomNavigation.module.css +53 -0
  16. package/src/BottomNavigation/index.js +1 -0
  17. package/src/BottomSheet/BottomSheet.jsx +51 -0
  18. package/src/BottomSheet/BottomSheet.module.css +56 -0
  19. package/src/BottomSheet/index.js +1 -0
  20. package/src/Button/Button.jsx +77 -0
  21. package/src/Button/Button.module.css +124 -0
  22. package/src/Button/index.js +1 -0
  23. package/src/Card/Card.jsx +31 -0
  24. package/src/Card/Card.module.css +4 -0
  25. package/src/Card/index.js +1 -0
  26. package/src/Checkbox/Checkbox.jsx +64 -0
  27. package/src/Checkbox/Checkbox.module.css +146 -0
  28. package/src/Checkbox/index.js +1 -0
  29. package/src/Clipboard/Clipboard.jsx +82 -0
  30. package/src/Clipboard/Clipboard.module.css +126 -0
  31. package/src/Clipboard/index.js +1 -0
  32. package/src/CloseButton/CloseButton.jsx +51 -0
  33. package/src/CloseButton/CloseButton.module.css +94 -0
  34. package/src/Confirm/Confirm.jsx +52 -0
  35. package/src/Confirm/Confirm.module.css +5 -0
  36. package/src/Confirm/index.js +1 -0
  37. package/src/Dialog/Dialog.jsx +63 -0
  38. package/src/Dialog/Dialog.module.css +111 -0
  39. package/src/Dialog/index.js +1 -0
  40. package/src/Divider/Divider.jsx +38 -0
  41. package/src/Divider/Divider.module.css +16 -0
  42. package/src/Divider/index.js +1 -0
  43. package/src/Drawer/Drawer.jsx +55 -0
  44. package/src/Drawer/Drawer.module.css +68 -0
  45. package/src/Drawer/index.js +1 -0
  46. package/src/Empty/Empty.jsx +35 -0
  47. package/src/Empty/Empty.module.css +17 -0
  48. package/src/Empty/index.js +1 -0
  49. package/src/Fab/Fab.jsx +91 -0
  50. package/src/Fab/Fab.module.css +94 -0
  51. package/src/Fab/index.js +1 -0
  52. package/src/Input/Input.jsx +53 -0
  53. package/src/Input/Input.module.css +97 -0
  54. package/src/Input/index.js +1 -0
  55. package/src/Link/Link.jsx +31 -0
  56. package/src/Link/Link.module.css +18 -0
  57. package/src/Link/index.js +1 -0
  58. package/src/Popover/Popover.jsx +162 -0
  59. package/src/Popover/Popover.module.css +63 -0
  60. package/src/Popover/index.js +1 -0
  61. package/src/RadioGroup/Radio.jsx +52 -0
  62. package/src/RadioGroup/Radio.module.css +133 -0
  63. package/src/RadioGroup/RadioGroup.jsx +36 -0
  64. package/src/RadioGroup/RadioGroup.module.css +23 -0
  65. package/src/RadioGroup/index.js +2 -0
  66. package/src/SearchInput/SearchInput.jsx +89 -0
  67. package/src/SearchInput/SearchInput.module.css +169 -0
  68. package/src/SearchInput/index.js +1 -0
  69. package/src/Select/Select.jsx +101 -0
  70. package/src/Select/Select.module.css +174 -0
  71. package/src/Select/index.js +1 -0
  72. package/src/SelectPc/Select.jsx +88 -0
  73. package/src/SelectPc/SelectPc.module.css +132 -0
  74. package/src/SelectPc/index.js +1 -0
  75. package/src/Skeleton/Skeleton.jsx +55 -0
  76. package/src/Skeleton/Skeleton.module.css +33 -0
  77. package/src/Skeleton/index.js +1 -0
  78. package/src/Slider/Slider.jsx +50 -0
  79. package/src/Slider/Slider.module.css +77 -0
  80. package/src/Slider/index.js +1 -0
  81. package/src/Spinner/Spinner.jsx +45 -0
  82. package/src/Spinner/Spinner.module.css +35 -0
  83. package/src/Spinner/index.js +1 -0
  84. package/src/Switch/Switch.jsx +51 -0
  85. package/src/Switch/Switch.module.css +156 -0
  86. package/src/Switch/index.js +1 -0
  87. package/src/Tabs/Tabs.jsx +75 -0
  88. package/src/Tabs/Tabs.module.css +45 -0
  89. package/src/Tabs/index.js +1 -0
  90. package/src/Tag/Tag.jsx +74 -0
  91. package/src/Tag/Tag.module.css +128 -0
  92. package/src/Tag/index.js +1 -0
  93. package/src/Textarea/Textarea.jsx +52 -0
  94. package/src/Textarea/Textarea.module.css +89 -0
  95. package/src/Textarea/index.js +1 -0
  96. package/src/Toast/Toast.jsx +169 -0
  97. package/src/Toast/Toast.module.css +152 -0
  98. package/src/Toast/index.js +1 -0
  99. package/src/Tooltip/Tooltip.jsx +42 -0
  100. package/src/Tooltip/Tooltip.module.css +41 -0
  101. package/src/Tooltip/index.js +1 -0
  102. package/src/index.js +34 -0
  103. package/src/styles/index.css +90 -0
  104. package/src/styles/tokens.css +227 -0
@@ -0,0 +1,111 @@
1
+ .backdrop {
2
+ position: fixed;
3
+ inset: 0;
4
+ z-index: var(--b-z-index-modal);
5
+ background-color: rgba(0, 0, 0, 0.4);
6
+ opacity: 0;
7
+ pointer-events: none;
8
+ transition: opacity var(--b-transition-normal);
9
+ }
10
+
11
+ .backdrop[data-state="open"] {
12
+ opacity: 1;
13
+ pointer-events: auto;
14
+ }
15
+
16
+ .backdrop[data-state="closed"] {
17
+ opacity: 0;
18
+ pointer-events: none;
19
+ }
20
+
21
+ .positioner {
22
+ position: fixed;
23
+ inset: 0;
24
+ z-index: var(--b-z-index-modal);
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ padding: var(--b-spacing-lg);
29
+ pointer-events: none;
30
+ }
31
+
32
+ .content {
33
+ --_dialog-padding: 16px;
34
+
35
+ position: relative;
36
+ display: flex;
37
+ flex-direction: column;
38
+ max-height: calc(100vh - var(--b-spacing-lg) * 2);
39
+ width: 100%;
40
+ max-width: 440px;
41
+ background-color: var(--base-bg);
42
+ border-radius: var(--b-radius-l3-md);
43
+ box-shadow: var(--b-shadow-lg);
44
+ pointer-events: auto;
45
+ opacity: 0;
46
+ transform: scale(0.95);
47
+ transition:
48
+ opacity var(--b-transition-normal),
49
+ transform var(--b-transition-normal);
50
+ overflow-y: auto;
51
+ }
52
+
53
+ .content[data-state="open"] {
54
+ opacity: 1;
55
+ transform: scale(1);
56
+ }
57
+
58
+ .content[data-state="closed"] {
59
+ opacity: 0;
60
+ transform: scale(0.95);
61
+ }
62
+
63
+ .title {
64
+ margin: 0;
65
+ padding:
66
+ var(--_dialog-padding)
67
+ var(--_dialog-padding)
68
+ 0;
69
+ font-size: var(--b-font-size-lg);
70
+ font-weight: 600;
71
+ color: var(--base-fg);
72
+ }
73
+
74
+ .description {
75
+ margin: 0;
76
+ padding:
77
+ var(--b-spacing-sm)
78
+ var(--_dialog-padding)
79
+ 0;
80
+ font-size: var(--b-font-size-md);
81
+ line-height: var(--b-line-height);
82
+ color: color-mix(in oklch, var(--base-fg) 55%, transparent);
83
+ }
84
+
85
+ .body {
86
+ padding: var(--_dialog-padding);
87
+ }
88
+
89
+ .close {
90
+ position: absolute;
91
+ top: var(--_dialog-padding);
92
+ right: var(--_dialog-padding);
93
+ display: flex;
94
+ align-items: center;
95
+ justify-content: center;
96
+ width: 32px;
97
+ height: 32px;
98
+ padding: 0;
99
+ border: none;
100
+ border-radius: var(--b-radius-l1-md);
101
+ background: transparent;
102
+ color: color-mix(in oklch, var(--base-fg) 40%, transparent);
103
+ cursor: pointer;
104
+ }
105
+
106
+ .close svg {
107
+ display: block;
108
+ width: 16px;
109
+ height: 16px;
110
+ pointer-events: none;
111
+ }
@@ -0,0 +1 @@
1
+ export { Dialog } from './Dialog.jsx'
@@ -0,0 +1,38 @@
1
+ import { splitProps, mergeProps } from 'solid-js'
2
+ import styles from './Divider.module.css'
3
+
4
+ const orientations = {
5
+ horizontal: styles.horizontal,
6
+ vertical: styles.vertical,
7
+ }
8
+
9
+ const DEFAULT_PROPS = {
10
+ orientation: 'horizontal',
11
+ }
12
+
13
+ /**
14
+ * @param {import('solid-js').JSX.HTMLAttributes<HTMLHRElement> & {
15
+ * orientation?: 'horizontal' | 'vertical'
16
+ * class?: string
17
+ * }} props
18
+ */
19
+ export function Divider(props) {
20
+ const [local, rest] = splitProps(
21
+ mergeProps(DEFAULT_PROPS, props),
22
+ ['orientation', 'class'],
23
+ )
24
+
25
+ return (
26
+ <hr
27
+ {...rest}
28
+ class={[
29
+ 'balik-divider',
30
+ `balik-divider--${local.orientation}`,
31
+ orientations[local.orientation],
32
+ local.class,
33
+ ]
34
+ .filter(Boolean)
35
+ .join(' ')}
36
+ />
37
+ )
38
+ }
@@ -0,0 +1,16 @@
1
+ .horizontal {
2
+ width: 100%;
3
+ height: 1px;
4
+ flex-shrink: 0;
5
+ border: none;
6
+ background-color: color-mix(in oklch, var(--base-fg) 10%, var(--base-bg));
7
+ }
8
+
9
+ .vertical {
10
+ width: 1px;
11
+ height: 100%;
12
+ min-height: 1em;
13
+ flex-shrink: 0;
14
+ border: none;
15
+ background-color: color-mix(in oklch, var(--base-fg) 10%, var(--base-bg));
16
+ }
@@ -0,0 +1 @@
1
+ export { Divider } from './Divider.jsx'
@@ -0,0 +1,55 @@
1
+ import { splitProps, mergeProps } from 'solid-js'
2
+ import { Portal } from 'solid-js/web'
3
+ import styles from './Drawer.module.css'
4
+
5
+ const DEFAULT_PROPS = {
6
+ side: 'right',
7
+ }
8
+
9
+ /**
10
+ * @param {{
11
+ * open: boolean
12
+ * onOpenChange?: (open: boolean) => void
13
+ * title?: string
14
+ * side?: 'left' | 'right'
15
+ * class?: string
16
+ * children?: import('solid-js').JSX.Element
17
+ * }} props
18
+ */
19
+ export function Drawer(props) {
20
+ const [local] = splitProps(
21
+ mergeProps(DEFAULT_PROPS, props),
22
+ ['open', 'onOpenChange', 'title', 'side', 'class', 'children'],
23
+ )
24
+
25
+ return (
26
+ <Portal mount={document.body}>
27
+ <div
28
+ class={styles.backdrop}
29
+ data-open={local.open ? '' : undefined}
30
+ onClick={() => local.onOpenChange?.(false)}
31
+ />
32
+ <div
33
+ class={[
34
+ 'balik-drawer',
35
+ styles.panel,
36
+ local.side === 'left' ? styles.sideLeft : styles.sideRight,
37
+ local.class,
38
+ ]
39
+ .filter(Boolean)
40
+ .join(' ')}
41
+ data-open={local.open ? '' : undefined}
42
+ role="dialog"
43
+ aria-modal="true"
44
+ aria-label={local.title || 'Drawer'}
45
+ >
46
+ {local.title && (
47
+ <div class={styles.header}>
48
+ <h2 class={styles.title}>{local.title}</h2>
49
+ </div>
50
+ )}
51
+ <div class={styles.body}>{local.children}</div>
52
+ </div>
53
+ </Portal>
54
+ )
55
+ }
@@ -0,0 +1,68 @@
1
+ .backdrop {
2
+ position: fixed;
3
+ inset: 0;
4
+ z-index: var(--b-z-index-modal);
5
+ background-color: rgba(0, 0, 0, 0.35);
6
+ opacity: 0;
7
+ pointer-events: none;
8
+ transition: opacity 0.25s ease;
9
+ }
10
+
11
+ .backdrop[data-open] {
12
+ opacity: 1;
13
+ pointer-events: auto;
14
+ }
15
+
16
+ .panel {
17
+ position: fixed;
18
+ top: 0;
19
+ bottom: 0;
20
+ z-index: var(--b-z-index-modal);
21
+ display: flex;
22
+ flex-direction: column;
23
+ width: 260px;
24
+ max-width: 80vw;
25
+ background-color: var(--base-bg);
26
+ overflow-y: auto;
27
+ transition: transform 0.25s ease;
28
+ }
29
+
30
+ .sideLeft {
31
+ left: 0;
32
+ border-right: 1px solid color-mix(in oklch, var(--base-fg) 8%, var(--base-bg));
33
+ transform: translateX(-100%);
34
+ }
35
+
36
+ .sideLeft[data-open] {
37
+ transform: translateX(0);
38
+ }
39
+
40
+ .sideRight {
41
+ right: 0;
42
+ border-left: 1px solid color-mix(in oklch, var(--base-fg) 8%, var(--base-bg));
43
+ transform: translateX(100%);
44
+ }
45
+
46
+ .sideRight[data-open] {
47
+ transform: translateX(0);
48
+ }
49
+
50
+ .header {
51
+ display: flex;
52
+ align-items: center;
53
+ padding: 16px;
54
+ border-bottom: 1px solid color-mix(in oklch, var(--base-fg) 6%, var(--base-bg));
55
+ flex-shrink: 0;
56
+ }
57
+
58
+ .title {
59
+ margin: 0;
60
+ font-size: var(--b-comp-font-size-lg);
61
+ font-weight: 600;
62
+ color: var(--base-fg);
63
+ }
64
+
65
+ .body {
66
+ padding: 16px;
67
+ flex: 1;
68
+ }
@@ -0,0 +1 @@
1
+ export { Drawer } from './Drawer.jsx'
@@ -0,0 +1,35 @@
1
+ import { splitProps, mergeProps } from 'solid-js'
2
+ import styles from './Empty.module.css'
3
+
4
+ const DEFAULT_PROPS = {
5
+ title: 'No data',
6
+ }
7
+
8
+ /**
9
+ * @param {{
10
+ * title?: string
11
+ * icon?: import('solid-js').JSX.Element
12
+ * class?: string
13
+ * }} props
14
+ */
15
+ export function Empty(props) {
16
+ const [local] = splitProps(
17
+ mergeProps(DEFAULT_PROPS, props),
18
+ ['title', 'icon', 'class'],
19
+ )
20
+
21
+ return (
22
+ <div
23
+ class={[
24
+ 'balik-empty',
25
+ styles.base,
26
+ local.class,
27
+ ]
28
+ .filter(Boolean)
29
+ .join(' ')}
30
+ >
31
+ {local.icon}
32
+ <p class={styles.title}>{local.title}</p>
33
+ </div>
34
+ )
35
+ }
@@ -0,0 +1,17 @@
1
+ .base {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ justify-content: center;
6
+ text-align: center;
7
+ width: 100%;
8
+ padding: 40px 16px;
9
+ gap: 12px;
10
+ }
11
+
12
+ .title {
13
+ font-weight: 600;
14
+ font-size: 16px;
15
+ line-height: 24px;
16
+ color: var(--base-fg);
17
+ }
@@ -0,0 +1 @@
1
+ export { Empty } from './Empty.jsx'
@@ -0,0 +1,91 @@
1
+ import { splitProps, mergeProps } from 'solid-js'
2
+ import { Popover } from '../Popover/Popover.jsx'
3
+ import styles from './Fab.module.css'
4
+
5
+ const DEFAULT_PROPS = {}
6
+
7
+ /**
8
+ * @param {import('solid-js').JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
9
+ * icon: import('solid-js').JSX.Element
10
+ * class?: string
11
+ * }} props
12
+ */
13
+ export function Fab(props) {
14
+ const [local, rest] = splitProps(
15
+ mergeProps(DEFAULT_PROPS, props),
16
+ ['icon', 'class'],
17
+ )
18
+
19
+ return (
20
+ <button
21
+ {...rest}
22
+ type="button"
23
+ class={[
24
+ 'balik-fab',
25
+ styles.base,
26
+ local.class,
27
+ ]
28
+ .filter(Boolean)
29
+ .join(' ')}
30
+ >
31
+ <span class={styles.icon}>{local.icon}</span>
32
+ </button>
33
+ )
34
+ }
35
+
36
+ /**
37
+ * @param {import('solid-js').JSX.ButtonHTMLAttributes<HTMLButtonElement> & {
38
+ * icon: import('solid-js').JSX.Element
39
+ * label?: string
40
+ * class?: string
41
+ * }} props
42
+ */
43
+ function FabItem(props) {
44
+ const [local, rest] = splitProps(props, ['icon', 'label', 'class'])
45
+
46
+ return (
47
+ <button
48
+ {...rest}
49
+ type="button"
50
+ class={[
51
+ styles.item,
52
+ local.class,
53
+ ]
54
+ .filter(Boolean)
55
+ .join(' ')}
56
+ >
57
+ <span class={styles.itemIcon}>{local.icon}</span>
58
+ {local.label && <span class={styles.itemLabel}>{local.label}</span>}
59
+ </button>
60
+ )
61
+ }
62
+
63
+ /**
64
+ * @param {{
65
+ * icon: import('solid-js').JSX.Element
66
+ * 'aria-label'?: string
67
+ * class?: string
68
+ * style?: string | import('solid-js').JSX.CSSProperties
69
+ * children?: import('solid-js').JSX.Element
70
+ * }} props
71
+ */
72
+ function FabGroup(props) {
73
+ const [local] = splitProps(
74
+ mergeProps(DEFAULT_PROPS, props),
75
+ ['icon', 'aria-label', 'class', 'style', 'children'],
76
+ )
77
+
78
+ return (
79
+ <Popover positioning={{ placement: 'top-end', gutter: 16 }}>
80
+ <Popover.Trigger>
81
+ <Fab icon={local.icon} aria-label={local['aria-label']} class={styles.trigger} />
82
+ </Popover.Trigger>
83
+ <Popover.Content class={styles.groupContent}>
84
+ <div class={styles.items}>{local.children}</div>
85
+ </Popover.Content>
86
+ </Popover>
87
+ )
88
+ }
89
+
90
+ Fab.Group = FabGroup
91
+ Fab.Group.Item = FabItem
@@ -0,0 +1,94 @@
1
+ .base {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ width: 56px;
6
+ height: 56px;
7
+ border: none;
8
+ border-radius: 50%;
9
+ background-color: var(--base-edge);
10
+ color: var(--base-bg);
11
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
12
+ cursor: pointer;
13
+ user-select: none;
14
+ touch-action: manipulation;
15
+ transition: box-shadow var(--b-transition-fast);
16
+ }
17
+
18
+ .base:active {
19
+ transform: scale(0.95);
20
+ }
21
+
22
+ .base:focus-visible {
23
+ outline: 2px solid var(--color-focus-border);
24
+ outline-offset: 2px;
25
+ }
26
+
27
+ .icon {
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ width: 24px;
32
+ height: 24px;
33
+ }
34
+
35
+ .icon svg {
36
+ width: 100%;
37
+ height: 100%;
38
+ }
39
+
40
+ .groupContent {
41
+ padding: 8px;
42
+ border: none;
43
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
44
+ background-color: transparent;
45
+ animation: none;
46
+ }
47
+
48
+ .items {
49
+ display: flex;
50
+ flex-direction: column;
51
+ gap: 8px;
52
+ }
53
+
54
+ .item {
55
+ display: inline-flex;
56
+ align-items: center;
57
+ gap: 8px;
58
+ padding: 8px 16px;
59
+ border: none;
60
+ border-radius: 24px;
61
+ background-color: color-mix(in oklch, var(--base-fg) 90%, var(--base-bg));
62
+ color: var(--base-bg);
63
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
64
+ font-family: inherit;
65
+ font-size: 14px;
66
+ font-weight: 500;
67
+ white-space: nowrap;
68
+ cursor: pointer;
69
+ user-select: none;
70
+ touch-action: manipulation;
71
+ transition: transform var(--b-transition-fast);
72
+ }
73
+
74
+ .item:active {
75
+ transform: scale(0.95);
76
+ }
77
+
78
+ .itemIcon {
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+ width: 20px;
83
+ height: 20px;
84
+ }
85
+
86
+ .itemIcon svg {
87
+ width: 100%;
88
+ height: 100%;
89
+ }
90
+
91
+ .itemLabel {
92
+ font-size: 14px;
93
+ line-height: 20px;
94
+ }
@@ -0,0 +1 @@
1
+ export { Fab } from './Fab.jsx'
@@ -0,0 +1,53 @@
1
+ import { splitProps, mergeProps } from 'solid-js'
2
+ import { ark } from '@ark-ui/solid/factory'
3
+ import styles from './Input.module.css'
4
+
5
+ const variants = {
6
+ solid: styles.solid,
7
+ outline: styles.outline,
8
+ singleline: styles.singleline,
9
+ }
10
+
11
+ const sizes = {
12
+ xs: styles.sizeXs,
13
+ sm: styles.sizeSm,
14
+ md: styles.sizeMd,
15
+ lg: styles.sizeLg,
16
+ xl: styles.sizeXl,
17
+ }
18
+
19
+ const DEFAULT_PROPS = {
20
+ variant: 'outline',
21
+ size: 'md',
22
+ disabled: false,
23
+ }
24
+
25
+ /**
26
+ * @param {import('solid-js').JSX.InputHTMLAttributes<HTMLInputElement> & {
27
+ * variant?: 'solid' | 'outline' | 'singleline'
28
+ * size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
29
+ * }} props
30
+ */
31
+ export function Input(props) {
32
+ const [local, rest] = splitProps(
33
+ mergeProps(DEFAULT_PROPS, props),
34
+ ['variant', 'size', 'class'],
35
+ )
36
+
37
+ return (
38
+ <ark.input
39
+ {...rest}
40
+ class={[
41
+ 'balik-input',
42
+ `balik-input--${local.variant}`,
43
+ `balik-input--${local.size}`,
44
+ styles.base,
45
+ variants[local.variant],
46
+ sizes[local.size],
47
+ local.class,
48
+ ]
49
+ .filter(Boolean)
50
+ .join(' ')}
51
+ />
52
+ )
53
+ }
@@ -0,0 +1,97 @@
1
+ .base {
2
+ display: block;
3
+ width: 100%;
4
+ border: 1px solid transparent;
5
+ border-radius: var(--_border-radius);
6
+ font-family: inherit;
7
+ outline: none;
8
+ box-shadow: none;
9
+ appearance: none;
10
+ touch-action: manipulation;
11
+ transition: background-color var(--b-transition-fast),
12
+ border-color var(--b-transition-fast),
13
+ color var(--b-transition-fast);
14
+
15
+ --_current-intent: var(--base-edge);
16
+ }
17
+
18
+ .base::placeholder {
19
+ color: var(--color-disabled-fg);
20
+ }
21
+
22
+ .base:disabled {
23
+ background-color: var(--color-disabled-bg);
24
+ border-color: var(--color-disabled-border);
25
+ color: var(--color-disabled-fg);
26
+ }
27
+
28
+ .solid {
29
+ background-color: color-mix(in oklch, var(--base-fg) 2%, var(--base-bg));
30
+ border-color: transparent;
31
+ }
32
+
33
+ .solid:focus {
34
+ background-color: var(--color-focus-bg);
35
+ }
36
+
37
+ .outline {
38
+ background-color: var(--base-bg);
39
+ border-color: var(--_current-intent);
40
+ }
41
+
42
+ .outline:focus {
43
+ background-color: var(--color-focus-bg);
44
+ border-color: var(--color-focus-border);
45
+ }
46
+
47
+ .singleline {
48
+ background-color: transparent;
49
+ border-color: transparent;
50
+ border-bottom-color: var(--_current-intent);
51
+ border-radius: 0;
52
+ }
53
+
54
+ .singleline:focus {
55
+ background-color: var(--color-focus-bg);
56
+ border-bottom-color: var(--color-focus-border);
57
+ }
58
+
59
+ .sizeXs {
60
+ height: var(--b-comp-height-xs);
61
+ line-height: var(--b-comp-line-height-xs);
62
+ padding: var(--b-comp-padding-y-xs) var(--b-comp-padding-x-xs);
63
+ font-size: var(--b-comp-font-size-xs);
64
+ --_border-radius: var(--b-radius-l1-xs);
65
+ }
66
+
67
+ .sizeSm {
68
+ height: var(--b-comp-height-sm);
69
+ line-height: var(--b-comp-line-height-sm);
70
+ padding: var(--b-comp-padding-y-sm) var(--b-comp-padding-x-sm);
71
+ font-size: var(--b-comp-font-size-sm);
72
+ --_border-radius: var(--b-radius-l1-sm);
73
+ }
74
+
75
+ .sizeMd {
76
+ height: var(--b-comp-height-md);
77
+ line-height: var(--b-comp-line-height-md);
78
+ padding: var(--b-comp-padding-y-md) var(--b-comp-padding-x-md);
79
+ font-size: var(--b-comp-font-size-md);
80
+ --_border-radius: var(--b-radius-l1-md);
81
+ }
82
+
83
+ .sizeLg {
84
+ height: var(--b-comp-height-lg);
85
+ line-height: var(--b-comp-line-height-lg);
86
+ padding: var(--b-comp-padding-y-lg) var(--b-comp-padding-x-lg);
87
+ font-size: var(--b-comp-font-size-lg);
88
+ --_border-radius: var(--b-radius-l1-lg);
89
+ }
90
+
91
+ .sizeXl {
92
+ height: var(--b-comp-height-xl);
93
+ line-height: var(--b-comp-line-height-xl);
94
+ padding: var(--b-comp-padding-y-xl) var(--b-comp-padding-x-xl);
95
+ font-size: var(--b-comp-font-size-xl);
96
+ --_border-radius: var(--b-radius-l1-xl);
97
+ }
@@ -0,0 +1 @@
1
+ export { Input } from './Input.jsx'