@ryanhelsing/ry-ui 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 (63) hide show
  1. package/README.md +223 -0
  2. package/dist/components/ry-accordion.d.ts +24 -0
  3. package/dist/components/ry-accordion.d.ts.map +1 -0
  4. package/dist/components/ry-alert.d.ts +19 -0
  5. package/dist/components/ry-alert.d.ts.map +1 -0
  6. package/dist/components/ry-button.d.ts +19 -0
  7. package/dist/components/ry-button.d.ts.map +1 -0
  8. package/dist/components/ry-code.d.ts +27 -0
  9. package/dist/components/ry-code.d.ts.map +1 -0
  10. package/dist/components/ry-color-input.d.ts +28 -0
  11. package/dist/components/ry-color-input.d.ts.map +1 -0
  12. package/dist/components/ry-color-picker.d.ts +52 -0
  13. package/dist/components/ry-color-picker.d.ts.map +1 -0
  14. package/dist/components/ry-drawer.d.ts +28 -0
  15. package/dist/components/ry-drawer.d.ts.map +1 -0
  16. package/dist/components/ry-dropdown.d.ts +24 -0
  17. package/dist/components/ry-dropdown.d.ts.map +1 -0
  18. package/dist/components/ry-example.d.ts +23 -0
  19. package/dist/components/ry-example.d.ts.map +1 -0
  20. package/dist/components/ry-field.d.ts +18 -0
  21. package/dist/components/ry-field.d.ts.map +1 -0
  22. package/dist/components/ry-icon.d.ts +27 -0
  23. package/dist/components/ry-icon.d.ts.map +1 -0
  24. package/dist/components/ry-knob.d.ts +27 -0
  25. package/dist/components/ry-knob.d.ts.map +1 -0
  26. package/dist/components/ry-modal.d.ts +23 -0
  27. package/dist/components/ry-modal.d.ts.map +1 -0
  28. package/dist/components/ry-select.d.ts +29 -0
  29. package/dist/components/ry-select.d.ts.map +1 -0
  30. package/dist/components/ry-slider.d.ts +30 -0
  31. package/dist/components/ry-slider.d.ts.map +1 -0
  32. package/dist/components/ry-switch.d.ts +22 -0
  33. package/dist/components/ry-switch.d.ts.map +1 -0
  34. package/dist/components/ry-tabs.d.ts +21 -0
  35. package/dist/components/ry-tabs.d.ts.map +1 -0
  36. package/dist/components/ry-theme-toggle.d.ts +21 -0
  37. package/dist/components/ry-theme-toggle.d.ts.map +1 -0
  38. package/dist/components/ry-toast.d.ts +31 -0
  39. package/dist/components/ry-toast.d.ts.map +1 -0
  40. package/dist/components/ry-toggle-button.d.ts +31 -0
  41. package/dist/components/ry-toggle-button.d.ts.map +1 -0
  42. package/dist/components/ry-tooltip.d.ts +23 -0
  43. package/dist/components/ry-tooltip.d.ts.map +1 -0
  44. package/dist/core/ry-element.d.ts +66 -0
  45. package/dist/core/ry-element.d.ts.map +1 -0
  46. package/dist/core/ry-icons.d.ts +38 -0
  47. package/dist/core/ry-icons.d.ts.map +1 -0
  48. package/dist/core/ry-transform.d.ts +35 -0
  49. package/dist/core/ry-transform.d.ts.map +1 -0
  50. package/dist/css/ry-base.css +155 -0
  51. package/dist/css/ry-components.css +1195 -0
  52. package/dist/css/ry-layout.css +240 -0
  53. package/dist/css/ry-structure.css +1737 -0
  54. package/dist/css/ry-theme.css +1433 -0
  55. package/dist/css/ry-tokens.css +145 -0
  56. package/dist/css/ry-ui.css +1207 -0
  57. package/dist/ry-ui.d.ts +54 -0
  58. package/dist/ry-ui.d.ts.map +1 -0
  59. package/dist/ry-ui.js +2433 -0
  60. package/dist/ry-ui.js.map +1 -0
  61. package/dist/types.d.ts +33 -0
  62. package/dist/types.d.ts.map +1 -0
  63. package/package.json +40 -0
package/README.md ADDED
@@ -0,0 +1,223 @@
1
+ # ry-ui
2
+
3
+ Framework-agnostic, Light DOM web components. CSS is the source of truth.
4
+
5
+ ## North Star
6
+
7
+ There are only so many types of things we do in any app. There should be one opinionated default way to do each of them. Invent all the wheels once, then never again.
8
+
9
+ Every app is a composition of the same finite primitives: layout, navigation, data display, data entry, feedback, actions, auth, state. The patterns are solved. The industry just keeps re-solving them because engineers enjoy the puzzle.
10
+
11
+ ry-ui normalizes this. No decisions to make. No architecture to debate. An LLM can leverage these primitives to build any app, anywhere, with a structure that is grokkable, dumb, and repeatable. Over-engineering becomes irrelevant when there's nothing left to over-engineer.
12
+
13
+ **The goal:** Write once in HTML/CSS/JS. Deploy to web, iOS, Android, desktop. The primitives are portable because they're universal.
14
+
15
+ ---
16
+
17
+ - [x] separate the css minimal structure from the theme
18
+ - [x] separate the component behavior from the design (see `docs/arch/behavior-style-separation.md`)
19
+
20
+ - [ ] Slider, Knob, Menu, Placeholder, Step/Wizard, Loader/Progress, Breadcrumb, Comment/Feed, Statistic/Graph, Hero, Calendar, Rating , Search, Shape, Sticky, color-picker, dialog/alert, tree, carousel, qr-code, diff, split-panel, format-bytes-number-currency(rails things), mutation-observer and resize observer,
21
+
22
+ - [ ] bring in examples and extract and normalize - Flat Clean (accord/tailwind) / Flat Fun Waves (zevo) / Game (mario/astrobot/stardew/animal crossing) / Brute (square game) / Skeuomorphic / Glass ( dark and light, color sets 1,2,3 )
23
+ - [ ] cross-platform transpiler - Swift/SwiftUI (see `docs/arch/cross-platform-transpiler.md`)
24
+ - [ ] animation system with GSAP (see `docs/plans/animation-system.md`)
25
+ - [ ] could use to write apps on ry-os lol.. rust based linux DE with html/js/css -> Dioxus -> rust apps / with an llm on device
26
+
27
+ ## Quick Start
28
+
29
+ ```html
30
+ <link rel="stylesheet" href="https://cdn.example.com/ry-ui.css">
31
+ <script type="module" src="https://cdn.example.com/ry-ui.js"></script>
32
+ ```
33
+
34
+ ## Components
35
+
36
+ ### Layout (CSS-only)
37
+ - `<ry-page>` - Page container
38
+ - `<ry-header>` / `<ry-footer>` - Page sections
39
+ - `<ry-main>` / `<ry-section>` - Content areas
40
+ - `<ry-grid cols="3">` - Responsive grid
41
+ - `<ry-stack>` / `<ry-cluster>` - Flex layouts
42
+
43
+ ### Interactive
44
+ - `<ry-button>` - Buttons with variants
45
+ - `<ry-modal>` - Modal dialogs
46
+ - `<ry-drawer>` - Slide-out panels
47
+ - `<ry-accordion>` - Collapsible sections
48
+ - `<ry-tabs>` - Tabbed content
49
+ - `<ry-dropdown>` - Dropdown menus
50
+ - `<ry-select>` - Custom select
51
+ - `<ry-switch>` - Toggle switch
52
+ - `<ry-tooltip>` - Hover tooltips
53
+ - `<ry-toast>` - Notifications
54
+
55
+ ### Display
56
+ - `<ry-card>` - Card containers
57
+ - `<ry-badge>` - Status badges
58
+ - `<ry-alert>` - Alert messages
59
+
60
+ ## Clean Syntax
61
+
62
+ Use `<ry>` wrapper to write unprefixed markup:
63
+
64
+ ```html
65
+ <ry>
66
+ <accordion>
67
+ <accordion-item title="FAQ" open>
68
+ No ry- prefix needed inside the wrapper.
69
+ </accordion-item>
70
+ </accordion>
71
+ </ry>
72
+ ```
73
+
74
+ ## Examples
75
+
76
+ ```html
77
+ <!-- Modal -->
78
+ <ry-button modal="demo">Open Modal</ry-button>
79
+ <ry-modal id="demo" title="Hello">Content here</ry-modal>
80
+
81
+ <!-- Drawer -->
82
+ <ry-button drawer="menu">Open</ry-button>
83
+ <ry-drawer id="menu" side="left">Menu content</ry-drawer>
84
+
85
+ <!-- Select -->
86
+ <ry-select placeholder="Country" name="country">
87
+ <ry-option value="us">United States</ry-option>
88
+ <ry-option value="uk">United Kingdom</ry-option>
89
+ </ry-select>
90
+
91
+ <!-- Toast (programmatic) -->
92
+ <script>
93
+ RyToast.success('Saved!');
94
+ RyToast.error('Failed');
95
+ </script>
96
+ ```
97
+
98
+ ## Themes
99
+
100
+ ```html
101
+ <html data-ry-theme="dark">
102
+ ```
103
+
104
+ Available: `light`, `dark`, `ocean`
105
+
106
+ ## CSS Architecture
107
+
108
+ ry-ui separates **structure** (layout/behavior) from **theme** (visual styling):
109
+
110
+ ```
111
+ ry-tokens.css # Design tokens (CSS variables)
112
+ ry-structure.css # Pure layout - no colors, shadows, or borders
113
+ ry-theme.css # All visual styling
114
+ ry-ui.css # Bundled (all three combined)
115
+ ```
116
+
117
+ ### Custom Themes
118
+
119
+ For completely custom styling, load only structure + your own theme:
120
+
121
+ ```html
122
+ <!-- Use default look -->
123
+ <link rel="stylesheet" href="ry-ui.css">
124
+
125
+ <!-- OR: Custom theme -->
126
+ <link rel="stylesheet" href="ry-structure.css">
127
+ <link rel="stylesheet" href="your-tokens.css">
128
+ <link rel="stylesheet" href="your-theme.css">
129
+ ```
130
+
131
+ Structure CSS contains only:
132
+ - Display modes, positioning, flexbox, grid
133
+ - Sizing, padding, margins, gaps
134
+ - State transitions (opacity, visibility, transform)
135
+
136
+ Theme CSS contains:
137
+ - Colors, backgrounds, borders
138
+ - Shadows, border-radius
139
+ - Typography styling
140
+ - Focus rings
141
+
142
+ ---
143
+
144
+ ## Development
145
+
146
+ ```bash
147
+ npm install
148
+ npm run dev # Dev server with HMR
149
+ npm run build # Production build
150
+ npm run typecheck
151
+ ```
152
+
153
+ ## TypeScript Philosophy
154
+
155
+ ry-ui is written in strict TypeScript with a "vanilla-first" approach:
156
+
157
+ ### No Decorators, No Magic
158
+ We use plain class syntax with private fields (`#field`) instead of decorators. The code reads like standard JavaScript with type annotations.
159
+
160
+ ```typescript
161
+ // What we do
162
+ class RySelect extends RyElement {
163
+ #highlightedIndex = -1;
164
+ #typeahead = '';
165
+
166
+ setup(): void { ... }
167
+ }
168
+
169
+ // What we avoid
170
+ @customElement('ry-select')
171
+ class RySelect extends LitElement {
172
+ @property() value = '';
173
+ @state() private _open = false;
174
+ }
175
+ ```
176
+
177
+ ### Strict Mode, No Exceptions
178
+ ```json
179
+ {
180
+ "strict": true,
181
+ "noUncheckedIndexedAccess": true,
182
+ "noImplicitReturns": true
183
+ }
184
+ ```
185
+
186
+ ### Type Patterns
187
+
188
+ **Explicit over inferred for public APIs:**
189
+ ```typescript
190
+ get value(): string { return this.getAttribute('value') ?? ''; }
191
+ emit<T = void>(name: string, detail?: T): boolean { ... }
192
+ ```
193
+
194
+ **Union types for constrained values:**
195
+ ```typescript
196
+ type ToastVariant = 'info' | 'success' | 'warning' | 'error';
197
+ static observedAttributes = ['value', 'disabled'] as const;
198
+ ```
199
+
200
+ **Extend globals for custom events:**
201
+ ```typescript
202
+ declare global {
203
+ interface HTMLElementEventMap {
204
+ 'ry:change': CustomEvent<{ value: string }>;
205
+ }
206
+ }
207
+ ```
208
+
209
+ ### Build Output
210
+
211
+ Single bundled ESM file for CDN simplicity:
212
+ ```
213
+ dist/
214
+ ├── ry-ui.js # 32KB (7KB gzip)
215
+ ├── ry-ui.js.map # Source maps
216
+ └── ry-ui.d.ts # Type declarations
217
+ ```
218
+
219
+ Vite builds with esbuild for speed, Rollup for optimization, and generates `.d.ts` for library consumers.
220
+
221
+ ---
222
+
223
+ See [CLAUDE.md](CLAUDE.md) for component development guide.
@@ -0,0 +1,24 @@
1
+ /**
2
+ * <ry-accordion>
3
+ *
4
+ * Collapsible accordion component.
5
+ *
6
+ * Minimal markup (recommended):
7
+ * <ry-accordion>
8
+ * <ry-accordion-item title="Title" open>Content</ry-accordion-item>
9
+ * </ry-accordion>
10
+ *
11
+ * JS uses data-ry-target for queries, CSS uses classes for styling.
12
+ * This decouples behavior from visual design.
13
+ */
14
+ import { RyElement } from '../core/ry-element.js';
15
+ export declare class RyAccordion extends RyElement {
16
+ #private;
17
+ setup(): void;
18
+ toggle(item: HTMLElement): void;
19
+ open(item: HTMLElement): void;
20
+ close(item: HTMLElement): void;
21
+ openAll(): void;
22
+ closeAll(): void;
23
+ }
24
+ //# sourceMappingURL=ry-accordion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ry-accordion.d.ts","sourceRoot":"","sources":["../../src/ts/components/ry-accordion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAMlD,qBAAa,WAAY,SAAQ,SAAS;;IACxC,KAAK,IAAI,IAAI;IAqGb,MAAM,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI;IAU/B,IAAI,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI;IAkB7B,KAAK,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI;IAS9B,OAAO,IAAI,IAAI;IAIf,QAAQ,IAAI,IAAI;CAGjB"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * <ry-alert>
3
+ *
4
+ * Alert message component.
5
+ *
6
+ * Usage:
7
+ * <ry-alert>Default info alert</ry-alert>
8
+ * <ry-alert variant="success">Success!</ry-alert>
9
+ * <ry-alert variant="warning" dismissible>Warning with close button</ry-alert>
10
+ *
11
+ * JS uses data-ry-target for queries, CSS uses classes for styling.
12
+ */
13
+ import { RyElement } from '../core/ry-element.js';
14
+ export declare class RyAlert extends RyElement {
15
+ #private;
16
+ setup(): void;
17
+ dismiss(): void;
18
+ }
19
+ //# sourceMappingURL=ry-alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ry-alert.d.ts","sourceRoot":"","sources":["../../src/ts/components/ry-alert.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,OAAQ,SAAQ,SAAS;;IACpC,KAAK,IAAI,IAAI;IA6Bb,OAAO,IAAI,IAAI;CAUhB"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * <ry-button>
3
+ *
4
+ * Button component that renders as a native button.
5
+ * Supports variant and size attributes.
6
+ *
7
+ * Usage:
8
+ * <ry-button>Click me</ry-button>
9
+ * <ry-button variant="ghost" size="sm">Small ghost</ry-button>
10
+ * <ry-button modal="my-modal">Open modal</ry-button>
11
+ *
12
+ * No data-ry-target needed - button has no internal structure.
13
+ */
14
+ import { RyElement } from '../core/ry-element.js';
15
+ export declare class RyButton extends RyElement {
16
+ #private;
17
+ setup(): void;
18
+ }
19
+ //# sourceMappingURL=ry-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ry-button.d.ts","sourceRoot":"","sources":["../../src/ts/components/ry-button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,QAAS,SAAQ,SAAS;;IACrC,KAAK,IAAI,IAAI;CA+Bd"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * <ry-code>
3
+ *
4
+ * Code display component with syntax highlighting.
5
+ *
6
+ * Usage:
7
+ * <ry-code language="css" title="styles.css">
8
+ * .button {
9
+ * background: #3b82f6;
10
+ * border-radius: 8px;
11
+ * }
12
+ * </ry-code>
13
+ *
14
+ * Attributes:
15
+ * - language: css | js | html | json (for syntax highlighting)
16
+ * - title: optional title shown in header
17
+ * - line-numbers: show line numbers
18
+ */
19
+ import { RyElement } from '../core/ry-element.js';
20
+ export declare class RyCode extends RyElement {
21
+ #private;
22
+ static get observedAttributes(): string[];
23
+ setup(): void;
24
+ get code(): string;
25
+ set code(value: string);
26
+ }
27
+ //# sourceMappingURL=ry-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ry-code.d.ts","sourceRoot":"","sources":["../../src/ts/components/ry-code.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAWlD,qBAAa,MAAO,SAAQ,SAAS;;IAGnC,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,KAAK,IAAI,IAAI;IA8db,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAGrB;CACF"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * <ry-color-input>
3
+ *
4
+ * Input-style color picker with swatch preview and editable hex value.
5
+ * Composes ry-color-picker internally for the picker panel.
6
+ *
7
+ * Usage:
8
+ * <ry-color-input value="#ff0000"></ry-color-input>
9
+ * <ry-color-input value="#ff0000" opacity></ry-color-input>
10
+ */
11
+ import { RyElement } from '../core/ry-element.js';
12
+ import type { RGB, HSL, HSV } from './ry-color-picker.js';
13
+ export declare class RyColorInput extends RyElement {
14
+ #private;
15
+ static observedAttributes: readonly ["value", "format", "opacity", "disabled", "placeholder"];
16
+ setup(): void;
17
+ open(): void;
18
+ close(): void;
19
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
20
+ get value(): string;
21
+ set value(val: string);
22
+ get disabled(): boolean;
23
+ set disabled(val: boolean);
24
+ get rgb(): RGB;
25
+ get hsl(): HSL;
26
+ get hsv(): HSV;
27
+ }
28
+ //# sourceMappingURL=ry-color-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ry-color-input.d.ts","sourceRoot":"","sources":["../../src/ts/components/ry-color-input.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,KAAK,EAAiB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAEzE,qBAAa,YAAa,SAAQ,SAAS;;IAMzC,MAAM,CAAC,kBAAkB,qEAAsE;IAE/F,KAAK,IAAI,IAAI;IAoMb,IAAI,IAAI,IAAI;IAKZ,KAAK,IAAI,IAAI;IAoDb,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IA0B9F,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,GAAG,EAAE,MAAM,EAQpB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,QAAQ,CAAC,GAAG,EAAE,OAAO,EAMxB;IAED,IAAI,GAAG,IAAI,GAAG,CAEb;IAED,IAAI,GAAG,IAAI,GAAG,CAEb;IAED,IAAI,GAAG,IAAI,GAAG,CAEb;CACF"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * <ry-color-picker>
3
+ *
4
+ * Color picker component with HSV grid, hue slider, and optional alpha slider.
5
+ * Shows as a dropdown trigger by default; add `inline` for always-visible picker.
6
+ *
7
+ * Usage:
8
+ * <ry-color-picker value="#ff0000"></ry-color-picker>
9
+ * <ry-color-picker value="#ff0000" inline></ry-color-picker>
10
+ * <ry-color-picker value="hsl(200, 100%, 50%)" format="hsl" opacity></ry-color-picker>
11
+ */
12
+ import { RyElement } from '../core/ry-element.js';
13
+ export interface HSV {
14
+ h: number;
15
+ s: number;
16
+ v: number;
17
+ }
18
+ export interface RGB {
19
+ r: number;
20
+ g: number;
21
+ b: number;
22
+ }
23
+ export interface HSL {
24
+ h: number;
25
+ s: number;
26
+ l: number;
27
+ }
28
+ export type ColorFormat = 'hex' | 'rgb' | 'hsl';
29
+ export declare class RyColorPicker extends RyElement {
30
+ #private;
31
+ static observedAttributes: readonly ["value", "format", "opacity", "disabled", "swatches", "inline"];
32
+ setup(): void;
33
+ open(): void;
34
+ close(): void;
35
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
36
+ get value(): string;
37
+ set value(val: string);
38
+ get format(): ColorFormat;
39
+ set format(val: ColorFormat);
40
+ get disabled(): boolean;
41
+ set disabled(val: boolean);
42
+ get hsv(): HSV;
43
+ get rgb(): RGB;
44
+ get hsl(): HSL;
45
+ get alpha(): number;
46
+ set alpha(val: number);
47
+ /** Set color from any valid color string */
48
+ setColor(colorString: string): boolean;
49
+ /** Get color in specific format */
50
+ getFormattedValue(format: ColorFormat): string;
51
+ }
52
+ //# sourceMappingURL=ry-color-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ry-color-picker.d.ts","sourceRoot":"","sources":["../../src/ts/components/ry-color-picker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAMlD,MAAM,WAAW,GAAG;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,GAAG;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,GAAG;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAoKD,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAEhD,qBAAa,aAAc,SAAQ,SAAS;;IAqB1C,MAAM,CAAC,kBAAkB,4EAA6E;IAEtG,KAAK,IAAI,IAAI;IA+Kb,IAAI,IAAI,IAAI;IAOZ,KAAK,IAAI,IAAI;IAqYb,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IA6B9F,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,GAAG,EAAE,MAAM,EAWpB;IAED,IAAI,MAAM,IAAI,WAAW,CAExB;IAED,IAAI,MAAM,CAAC,GAAG,EAAE,WAAW,EAE1B;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,QAAQ,CAAC,GAAG,EAAE,OAAO,EAMxB;IAED,IAAI,GAAG,IAAI,GAAG,CAEb;IAED,IAAI,GAAG,IAAI,GAAG,CAEb;IAED,IAAI,GAAG,IAAI,GAAG,CAEb;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,GAAG,EAAE,MAAM,EAGpB;IAED,4CAA4C;IAC5C,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO;IAetC,mCAAmC;IACnC,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM;CAO/C"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * <ry-drawer>
3
+ *
4
+ * Slide-out drawer/panel component.
5
+ *
6
+ * Usage:
7
+ * <ry-button drawer="menu">Open Menu</ry-button>
8
+ * <ry-drawer id="menu" side="left">
9
+ * <h2>Menu</h2>
10
+ * <nav>...</nav>
11
+ * </ry-drawer>
12
+ *
13
+ * Attributes:
14
+ * - id: Required for trigger binding
15
+ * - side: left (default), right, bottom
16
+ * - open: Initially open
17
+ *
18
+ * JS uses data-ry-target for queries, CSS uses classes for styling.
19
+ */
20
+ import { RyElement } from '../core/ry-element.js';
21
+ export declare class RyDrawer extends RyElement {
22
+ #private;
23
+ setup(): void;
24
+ open(): void;
25
+ close(): void;
26
+ toggle(): void;
27
+ }
28
+ //# sourceMappingURL=ry-drawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ry-drawer.d.ts","sourceRoot":"","sources":["../../src/ts/components/ry-drawer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,QAAS,SAAQ,SAAS;;IAIrC,KAAK,IAAI,IAAI;IAiEb,IAAI,IAAI,IAAI;IAwBZ,KAAK,IAAI,IAAI;IAmBb,MAAM,IAAI,IAAI;CAOf"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * <ry-dropdown>
3
+ *
4
+ * Dropdown menu with click-outside handling.
5
+ *
6
+ * Minimal markup (recommended):
7
+ * <ry-dropdown>
8
+ * <ry-button slot="trigger">Options</ry-button>
9
+ * <ry-menu>
10
+ * <ry-menu-item>Edit</ry-menu-item>
11
+ * </ry-menu>
12
+ * </ry-dropdown>
13
+ *
14
+ * JS uses data-ry-target for queries, CSS uses classes for styling.
15
+ */
16
+ import { RyElement } from '../core/ry-element.js';
17
+ export declare class RyDropdown extends RyElement {
18
+ #private;
19
+ setup(): void;
20
+ open(): void;
21
+ close(): void;
22
+ toggle(): void;
23
+ }
24
+ //# sourceMappingURL=ry-dropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ry-dropdown.d.ts","sourceRoot":"","sources":["../../src/ts/components/ry-dropdown.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,UAAW,SAAQ,SAAS;;IACvC,KAAK,IAAI,IAAI;IAmFb,IAAI,IAAI,IAAI;IAgBZ,KAAK,IAAI,IAAI;IAUb,MAAM,IAAI,IAAI;CAOf"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * <ry-example>
3
+ *
4
+ * Displays code and live rendered output side-by-side from a single source.
5
+ * Code is shown on the left using ry-code, live preview on the right.
6
+ *
7
+ * Usage:
8
+ * <ry-example title="Accordion">
9
+ * <template>
10
+ * <accordion>
11
+ * <accordion-item title="FAQ" open>
12
+ * Content here
13
+ * </accordion-item>
14
+ * </accordion>
15
+ * </template>
16
+ * </ry-example>
17
+ */
18
+ import { RyElement } from '../core/ry-element.js';
19
+ export declare class RyExample extends RyElement {
20
+ #private;
21
+ setup(): void;
22
+ }
23
+ //# sourceMappingURL=ry-example.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ry-example.d.ts","sourceRoot":"","sources":["../../src/ts/components/ry-example.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGlD,qBAAa,SAAU,SAAQ,SAAS;;IACtC,KAAK,IAAI,IAAI;CA8Dd"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * <ry-field>
3
+ *
4
+ * Form field wrapper with label.
5
+ *
6
+ * Usage:
7
+ * <ry-field label="Email">
8
+ * <input type="email" placeholder="you@example.com">
9
+ * </ry-field>
10
+ *
11
+ * JS uses data-ry-target for queries, CSS uses classes for styling.
12
+ */
13
+ import { RyElement } from '../core/ry-element.js';
14
+ export declare class RyField extends RyElement {
15
+ #private;
16
+ setup(): void;
17
+ }
18
+ //# sourceMappingURL=ry-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ry-field.d.ts","sourceRoot":"","sources":["../../src/ts/components/ry-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,OAAQ,SAAQ,SAAS;;IACpC,KAAK,IAAI,IAAI;CA2Bd"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * <ry-icon>
3
+ *
4
+ * Renders an icon from the icon registry.
5
+ *
6
+ * Usage:
7
+ * <ry-icon name="close"></ry-icon>
8
+ * <ry-icon name="check" size="16"></ry-icon>
9
+ * <ry-icon name="heart" size="32"></ry-icon>
10
+ *
11
+ * Attributes:
12
+ * - name: icon name from registry (required)
13
+ * - size: icon size in pixels (default: 24)
14
+ * - label: accessible label (for screen readers)
15
+ */
16
+ import { RyElement } from '../core/ry-element.js';
17
+ export declare class RyIcon extends RyElement {
18
+ #private;
19
+ static get observedAttributes(): string[];
20
+ setup(): void;
21
+ attributeChangedCallback(_name: string, oldValue: string | null, newValue: string | null): void;
22
+ get name(): string;
23
+ set name(value: string);
24
+ get size(): number;
25
+ set size(value: number);
26
+ }
27
+ //# sourceMappingURL=ry-icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ry-icon.d.ts","sourceRoot":"","sources":["../../src/ts/components/ry-icon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGlD,qBAAa,MAAO,SAAQ,SAAS;;IACnC,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,KAAK,IAAI,IAAI;IAIb,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAoC/F,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAErB;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAErB;CACF"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * <ry-knob>
3
+ *
4
+ * Rotary knob component with drag/wheel interaction.
5
+ *
6
+ * Usage:
7
+ * <ry-knob min="0" max="100" value="50" label="Volume"></ry-knob>
8
+ * <ry-knob min="0" max="3" step="1" labels="Off,Low,Med,High"></ry-knob>
9
+ */
10
+ import { RyElement } from '../core/ry-element.js';
11
+ export declare class RyKnob extends RyElement {
12
+ #private;
13
+ static observedAttributes: readonly ["min", "max", "step", "value", "disabled", "label", "labels", "description"];
14
+ setup(): void;
15
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
16
+ get min(): number;
17
+ set min(val: number);
18
+ get max(): number;
19
+ set max(val: number);
20
+ get step(): number;
21
+ set step(val: number);
22
+ get value(): number;
23
+ set value(val: number);
24
+ get disabled(): boolean;
25
+ set disabled(val: boolean);
26
+ }
27
+ //# sourceMappingURL=ry-knob.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ry-knob.d.ts","sourceRoot":"","sources":["../../src/ts/components/ry-knob.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,MAAO,SAAQ,SAAS;;IAQnC,MAAM,CAAC,kBAAkB,yFAA0F;IAEnH,KAAK,IAAI,IAAI;IAkNb,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAS9F,IAAI,GAAG,IAAI,MAAM,CAEhB;IACD,IAAI,GAAG,CAAC,GAAG,EAAE,MAAM,EAElB;IAED,IAAI,GAAG,IAAI,MAAM,CAEhB;IACD,IAAI,GAAG,CAAC,GAAG,EAAE,MAAM,EAElB;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;IACD,IAAI,IAAI,CAAC,GAAG,EAAE,MAAM,EAEnB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IACD,IAAI,KAAK,CAAC,GAAG,EAAE,MAAM,EAEpB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IACD,IAAI,QAAQ,CAAC,GAAG,EAAE,OAAO,EAMxB;CACF"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * <ry-modal>
3
+ *
4
+ * Modal dialog with focus trapping and backdrop.
5
+ *
6
+ * Minimal markup (recommended):
7
+ * <ry-button modal="my-modal">Open</ry-button>
8
+ * <ry-modal id="my-modal" title="Title">
9
+ * Content
10
+ * <ry-actions slot="footer">...</ry-actions>
11
+ * </ry-modal>
12
+ *
13
+ * JS uses data-ry-target for queries, CSS uses classes for styling.
14
+ */
15
+ import { RyElement } from '../core/ry-element.js';
16
+ export declare class RyModal extends RyElement {
17
+ #private;
18
+ setup(): void;
19
+ open(): void;
20
+ close(): void;
21
+ toggle(): void;
22
+ }
23
+ //# sourceMappingURL=ry-modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ry-modal.d.ts","sourceRoot":"","sources":["../../src/ts/components/ry-modal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,OAAQ,SAAQ,SAAS;;IAIpC,KAAK,IAAI,IAAI;IA0Eb,IAAI,IAAI,IAAI;IAwBZ,KAAK,IAAI,IAAI;IAmBb,MAAM,IAAI,IAAI;CAOf"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * <ry-select>
3
+ *
4
+ * Custom select dropdown component.
5
+ *
6
+ * Usage:
7
+ * <ry-select placeholder="Choose country" name="country">
8
+ * <ry-option value="us">United States</ry-option>
9
+ * <ry-option value="uk">United Kingdom</ry-option>
10
+ * <ry-option value="ca" disabled>Canada</ry-option>
11
+ * </ry-select>
12
+ *
13
+ * JS uses data-ry-target for queries, CSS uses classes for styling.
14
+ */
15
+ import { RyElement } from '../core/ry-element.js';
16
+ import type { SelectOption } from '../types.js';
17
+ export declare class RySelect extends RyElement {
18
+ #private;
19
+ _options: SelectOption[];
20
+ static observedAttributes: readonly ["value", "disabled"];
21
+ setup(): void;
22
+ open(): void;
23
+ close(): void;
24
+ toggle(): void;
25
+ get value(): string;
26
+ set value(val: string);
27
+ teardown(): void;
28
+ }
29
+ //# sourceMappingURL=ry-select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ry-select.d.ts","sourceRoot":"","sources":["../../src/ts/components/ry-select.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAgB,MAAM,aAAa,CAAC;AAI9D,qBAAa,QAAS,SAAQ,SAAS;;IAOrC,QAAQ,EAAE,YAAY,EAAE,CAAM;IAE9B,MAAM,CAAC,kBAAkB,iCAAkC;IAE3D,KAAK,IAAI,IAAI;IA6Qb,IAAI,IAAI,IAAI;IA+CZ,KAAK,IAAI,IAAI;IAmBb,MAAM,IAAI,IAAI;IAQd,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,GAAG,EAAE,MAAM,EAKpB;IAED,QAAQ,IAAI,IAAI;CAKjB"}